Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Development #1879

Merged
merged 87 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
4b5817b
Adds more bg contrast for Accordions in dashboard
mghenciu Sep 1, 2023
d00f775
3px bottom margin; hover for top navigation panels
mghenciu Sep 1, 2023
5dcf302
Fixes links, focus and secondary button
mghenciu Sep 1, 2023
7668614
Focus state fix
mghenciu Sep 1, 2023
0f3965d
chore(deps-dev): bump php-stubs/acf-pro-stubs from 6.0.6 to 6.1.7
dependabot[bot] Sep 2, 2023
3ea5252
chore(deps-dev): bump php-stubs/woocommerce-stubs from 7.9.0 to 8.0.1
dependabot[bot] Sep 2, 2023
108a699
Fixes based on the code review
mghenciu Sep 12, 2023
e5a8a59
fix: enhance dashboard experience
Soare-Robert-Daniel Sep 13, 2023
e19da4b
fix: improve widget asset loading
Soare-Robert-Daniel Sep 14, 2023
5c430ab
feat: editable tab header
Soare-Robert-Daniel Sep 15, 2023
d287a24
chore: add e2e for editable tabs header
Soare-Robert-Daniel Sep 15, 2023
ecaa389
chore: wrap live-search deps with an action
Soare-Robert-Daniel Sep 19, 2023
1c9a6b3
chore: licence check for live-search deps action
Soare-Robert-Daniel Sep 19, 2023
398497e
fix: inherit text color during typiing anim
Soare-Robert-Daniel Sep 19, 2023
7dc8400
chore: add e2e for animation
Soare-Robert-Daniel Sep 19, 2023
50ba79e
feat: add RankMath for Posts block
Soare-Robert-Daniel Sep 20, 2023
d337122
chore: move RankMath posts detection to Editor
Soare-Robert-Daniel Sep 20, 2023
3a4a1d1
chore: formating
Soare-Robert-Daniel Sep 20, 2023
20d107b
Sync branch [skip ci]
pirate-bot Sep 21, 2023
b0ace38
Sync branch [skip ci]
pirate-bot Sep 21, 2023
73ef096
Merge branch 'development' into fix/dashboard-options
HardeepAsrani Sep 25, 2023
2b0ba62
Merge pull request #1866 from Codeinwp/fix/dashboard-options
HardeepAsrani Sep 25, 2023
ce82c78
Merge pull request #1867 from Codeinwp/fix/widget-assets-loading
HardeepAsrani Sep 25, 2023
3a1754a
Merge pull request #1869 from Codeinwp/feat/tabs-tab-title
HardeepAsrani Sep 25, 2023
af75ed1
Merge pull request #1858 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Sep 25, 2023
c9472fc
Merge pull request #1863 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Sep 25, 2023
a9b7491
fix: phpstan issues
Soare-Robert-Daniel Sep 25, 2023
41d6615
fix: inherit parent color for typing caret
Soare-Robert-Daniel Sep 25, 2023
ac14b74
Merge pull request #1844 from Codeinwp/fix/hover-and-link-styles-mino…
HardeepAsrani Sep 25, 2023
9788022
Merge pull request #1873 from Codeinwp/fix/typing-color
HardeepAsrani Sep 25, 2023
92f1ba8
Merge pull request #1872 from Codeinwp/feat/live-search-hook
HardeepAsrani Sep 25, 2023
c815809
Merge pull request #1881 from Codeinwp/fix/phpstan-update
HardeepAsrani Sep 25, 2023
5699665
chore: minor
Soare-Robert-Daniel Sep 25, 2023
e14821a
Merge branch 'development' into feat/posts-rank-math
Soare-Robert-Daniel Sep 25, 2023
7a797dd
chore: remove extra files from build
Soare-Robert-Daniel Sep 29, 2023
8d14c42
chore: remove extra files from blocks & pro folders
Soare-Robert-Daniel Sep 29, 2023
f14d382
chore: migrate head typo component
Soare-Robert-Daniel Sep 29, 2023
36219c0
Sync branch [skip ci]
pirate-bot Sep 30, 2023
b267bed
chore(deps-dev): bump phpstan/phpstan from 1.10.32 to 1.10.36
dependabot[bot] Oct 1, 2023
f8d21b0
chore(deps-dev): bump php-stubs/woocommerce-stubs from 8.0.1 to 8.1.0
dependabot[bot] Oct 1, 2023
ab66103
chore(deps): bump stripe/stripe-php from 12.1.0 to 12.5.0
dependabot[bot] Oct 1, 2023
81ef3cd
chore(deps-dev): bump @wordpress/data from 9.11.0 to 9.12.0
dependabot[bot] Oct 1, 2023
b454ea3
chore(deps): bump @wordpress/icons from 9.32.0 to 9.33.0
dependabot[bot] Oct 1, 2023
cd3e66f
chore: minor
Soare-Robert-Daniel Oct 2, 2023
186e0bc
chore: css
Soare-Robert-Daniel Oct 2, 2023
4962f53
chore: e2e test
Soare-Robert-Daniel Oct 2, 2023
1c60b54
chore: upload entire artifacts folder
Soare-Robert-Daniel Oct 2, 2023
1a8f1ca
chore: better selector
Soare-Robert-Daniel Oct 2, 2023
0db65be
chore: e2e font family selector
Soare-Robert-Daniel Oct 2, 2023
b14c6b5
chore: add missing string verification
Soare-Robert-Daniel Oct 5, 2023
c2143ff
chore: console.log
Soare-Robert-Daniel Oct 9, 2023
d5f0cb8
Merge pull request #1905 from Codeinwp/feat/heading-typo
HardeepAsrani Oct 9, 2023
6b995ac
Merge pull request #1874 from Codeinwp/feat/posts-rank-math
HardeepAsrani Oct 9, 2023
83eddd8
Merge pull request #1888 from Codeinwp/fix/css-deploy
HardeepAsrani Oct 9, 2023
55f2073
Merge pull request #1902 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Oct 9, 2023
74e4c02
Merge pull request #1899 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Oct 9, 2023
33db7fd
Merge pull request #1895 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Oct 9, 2023
960717d
chore(deps-dev): bump @wordpress/components from 25.7.0 to 25.9.0
dependabot[bot] Oct 9, 2023
4942424
chore(deps-dev): bump @wordpress/element from 5.19.0 to 5.20.0
dependabot[bot] Oct 9, 2023
67be32f
chore(deps): bump codeinwp/themeisle-sdk from 3.3.3 to 3.3.6
dependabot[bot] Oct 9, 2023
5f65a3f
chore(deps-dev): bump @wordpress/dom-ready from 3.41.0 to 3.43.0
dependabot[bot] Oct 9, 2023
002a968
Merge pull request #1913 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Oct 9, 2023
0d6573b
Merge pull request #1912 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Oct 9, 2023
afacb46
Merge pull request #1914 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Oct 9, 2023
bd4e959
Merge pull request #1915 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Oct 9, 2023
eb238c6
chore(deps): bump uuid from 8.3.2 to 9.0.1
dependabot[bot] Oct 9, 2023
576b97b
Merge pull request #1893 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Oct 9, 2023
357759a
Merge pull request #1894 from Codeinwp/dependabot/npm_and_yarn/develo…
HardeepAsrani Oct 9, 2023
c2602e3
Merge pull request #1896 from Codeinwp/dependabot/composer/developmen…
HardeepAsrani Oct 9, 2023
80677f9
chore: prepare BF event
Soare-Robert-Daniel Oct 16, 2023
9d5968f
chore: add bf event
Soare-Robert-Daniel Oct 17, 2023
e7adc5b
chore: improve bf deal
Soare-Robert-Daniel Oct 17, 2023
e4d0684
chore: missing priority check
Soare-Robert-Daniel Oct 18, 2023
3eb2edb
chore: cleanup
Soare-Robert-Daniel Oct 18, 2023
478f443
chore: use timelines
Soare-Robert-Daniel Oct 18, 2023
4759c1b
chore: responsive banner
Soare-Robert-Daniel Oct 18, 2023
dfd0900
chore: func name
Soare-Robert-Daniel Oct 18, 2023
122887c
chore: pro condition
Soare-Robert-Daniel Oct 19, 2023
cf8d29a
chore: show only for free users
Soare-Robert-Daniel Oct 19, 2023
cd6e49d
chore: clean up
Soare-Robert-Daniel Oct 19, 2023
6ecc575
chore: change notice init location
Soare-Robert-Daniel Oct 19, 2023
5982dd5
chore: bf hotfix
Soare-Robert-Daniel Oct 23, 2023
95cfe3f
chore: phpcs
Soare-Robert-Daniel Oct 23, 2023
21eeb8e
Merge pull request #1922 from Codeinwp/feat/limited-offers
HardeepAsrani Oct 23, 2023
11d562b
fix: release
Soare-Robert-Daniel Oct 25, 2023
8a9fbdd
chore: phpcs
Soare-Robert-Daniel Oct 25, 2023
95ea4a0
Merge pull request #1928 from Codeinwp/fix/release
HardeepAsrani Oct 25, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 12 additions & 12 deletions .github/workflows/e2e-js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
e2e:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name

steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2

- name: Get Composer Cache Directory
id: composer-cache
run: |
Expand All @@ -40,11 +40,11 @@ jobs:
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-cache-

- name: npm ci
run: |
npm ci

- name: Make dev build
run: |
npm run build-dev
Expand All @@ -60,11 +60,11 @@ jobs:
- name: Install Playwright
run: |
npm install -g playwright-cli
npx playwright install
npx playwright install

- name: Playwright Blocks
- name: Playwright Blocks
run: |
npm run test:e2e:playwright
npm run test:e2e:playwright

# run the node.js puppeteer script (which takes the screenshots and controls chrome)
- name: Performance check
Expand All @@ -80,9 +80,9 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: artifact
path: ./artifacts/tests/
path: ./artifacts
retention-days: 1

- name: Print the results
run: |
echo "::set-output name=TYPING_AVG::$(jq '.summary.type.average' ./artifacts/performance.spec.performance-results.json)"
Expand All @@ -91,7 +91,7 @@ jobs:
echo "::set-output name=TYPING_QR60::$(jq '.summary.type.quantileRank60' ./artifacts/performance.spec.performance-results.json)"
echo "::set-output name=TYPING_ABOVE_60::$(jq -c '.summary.type.above60' ./artifacts/performance.spec.performance-results.json)"
echo "::set-output name=TYPING_QR80::$(jq '.summary.type.quantileRank80' ./artifacts/performance.spec.performance-results.json)"
id: summary
id: summary

- name: Comment
uses: NejcZdovc/comment-pr@v1
Expand All @@ -107,5 +107,5 @@ jobs:
TYPING_QR80: ${{ steps.summary.outputs.TYPING_QR80 }}
TYPING_ABOVE_60: ${{ steps.summary.outputs.TYPING_ABOVE_60 }}



Binary file modified assets/images/black-friday-banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"yoast/phpunit-polyfills": "^2.0",
"phpstan/phpstan": "^1.10",
"szepeviktor/phpstan-wordpress": "^1.3",
"php-stubs/woocommerce-stubs": "^7.7",
"php-stubs/woocommerce-stubs": "^8.0",
"php-stubs/acf-pro-stubs": "^6.0",
"spaze/phpstan-stripe": "^2.4"
},
Expand Down
80 changes: 39 additions & 41 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion inc/class-blocks-css.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ function_exists( 'wp_is_block_theme' ) &&
$templates_parts = get_block_templates( array( 'slugs__in' => $slugs ), 'wp_template_part' );

foreach ( $templates_parts as $templates_part ) {
if ( isset( $templates_part->content ) && isset( $templates_part->slug ) && in_array( $templates_part->slug, $slugs ) ) {
if ( ! empty( $templates_part->content ) && ! empty( $templates_part->slug ) && in_array( $templates_part->slug, $slugs ) ) {
$content .= $templates_part->content;
}
}
Expand Down
2 changes: 2 additions & 0 deletions inc/class-main.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

namespace ThemeIsle\GutenbergBlocks;

use ThemeIsle\GutenbergBlocks\Plugins\LimitedOffers;
use ThemeIsle\GutenbergBlocks\Server\Dashboard_Server;

/**
Expand Down Expand Up @@ -44,6 +45,7 @@ public function init() {
}

add_filter( 'otter_blocks_about_us_metadata', array( $this, 'about_page' ) );

}

/**
Expand Down
24 changes: 24 additions & 0 deletions inc/class-pro.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@

namespace ThemeIsle\GutenbergBlocks;

use ThemeIsle\GutenbergBlocks\Plugins\LimitedOffers;

/**
* Class Pro
*/
Expand Down Expand Up @@ -51,6 +53,8 @@ public function init_upsells() {
add_action( 'otter_montly_scheduled_events', array( $this, 'reset_dashboard_notice' ) );
add_action( 'admin_init', array( $this, 'should_show_dashboard_upsell' ), 11 );
add_filter( 'plugin_action_links_' . plugin_basename( OTTER_BLOCKS_BASEFILE ), array( $this, 'add_pro_link' ) );

add_action( 'admin_init', array( $this, 'load_offers' ), 11 );
}

/**
Expand Down Expand Up @@ -180,6 +184,12 @@ public function should_show_dashboard_upsell() {
$show_upsell = true;
}

$offers = new LimitedOffers();

if ( $offers->is_active() ) {
$show_upsell = false;
}

if ( $show_upsell ) {
add_action( 'admin_notices', array( $this, 'dashboard_upsell_notice' ) );
add_action( 'wp_ajax_dismiss_otter_notice', array( $this, 'dismiss_dashboard_notice' ) );
Expand Down Expand Up @@ -416,6 +426,20 @@ public function add_pro_link( $links ) {
return $links;
}

/**
* Load offers.
*
* @return void
*/
public function load_offers() {
if ( ! self::is_pro_installed() ) {
$offer = new LimitedOffers();
if ( $offer->can_show_dashboard_banner() && $offer->is_active() ) {
$offer->load_dashboard_hooks();
}
}
}

/**
* Singleton method.
*
Expand Down
Loading
Loading