From fb5823e309c7387fe9f921b9cd95c4e6bfe53577 Mon Sep 17 00:00:00 2001 From: ajayadav09 Date: Mon, 22 Apr 2024 12:15:52 +0530 Subject: [PATCH 01/23] added critical path --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index 3790dc6..ca4a18c 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,19 @@ height="42" /> # WordPress Onboarding Data Module A non-toggleable module containing a standardized interface for interacting with Onboarding data. +## Module Responsibilities + +- **Data and Configuration Storage**: Acts as a common central repository for configurations and default data, facilitating accessibility and reuse across diverse modules. It provides essential configurations, data, and services that are reusable across various other modules. +- **Service Provisioning**: Offers common services that support, update and streamline processes in other modules, particularly focusing on user onboarding and ecommerce functionalities. + +## Critical Paths + +- **Flow Service Integration**: Modules utilizing the Flow Service must be capable of setting and manipulating default flow data effectively. Examples of flow being default onboarding, ai site generation or ecommerce +- **Theme Generation**: The Theme Generator Service should support the creation and activation of new themes, ensuring seamless theme management. +- **Block Rendering**: The Block Render Service is responsible for rendering and capturing screenshots of blocks, aiding in block grammar visualization. +- **Site Generation**: Upon activation, the Site Gen Service should fetch AI-generated site metadata and facilitate the generation or regeneration of homepages and other site pages. +- **Default Value Accessibility**: Ensures that all modules can access and utilize default values related to brands, themes, data patterns, and other critical elements seamlessly. + ## Installation ### 1. Add the Newfold Satis to your `composer.json`. From b8f1a6fbc05c2a271502276667d829cc5346098e Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Jul 2024 14:09:32 +0530 Subject: [PATCH 02/23] update the ai generated product page to woocommerce page --- includes/Services/SiteGenService.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 67a94d2..62872be 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -940,9 +940,12 @@ public static function publish_sitemap_pages( $site_description, $content_style, 'nf_dc_page' => $page['slug'], ) ); - if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); + if( $page['slug'] == 'products' || $page['slug'] == 'shop' ){ + update_option( 'woocommerce_shop_page_id', $post_id ); + update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); + } } } From e5c9e5240ef0bde02b2ed704188578e1e54aa5a3 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Jul 2024 14:38:09 +0530 Subject: [PATCH 03/23] linting fixes --- composer.lock | 89 ++++++++++++++++------------ includes/Services/SiteGenService.php | 2 +- 2 files changed, 51 insertions(+), 40 deletions(-) diff --git a/composer.lock b/composer.lock index 0abd6cb..9d1ac77 100644 --- a/composer.lock +++ b/composer.lock @@ -345,16 +345,16 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.5.3", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "6c0941bc9ac3d18820f924de8c4afe58bb421782" + "reference": "6af57da8765a4db2d89e7ee737726f797945de0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/6c0941bc9ac3d18820f924de8c4afe58bb421782", - "reference": "6c0941bc9ac3d18820f924de8c4afe58bb421782", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/6af57da8765a4db2d89e7ee737726f797945de0b", + "reference": "6af57da8765a4db2d89e7ee737726f797945de0b", "shasum": "" }, "require": { @@ -373,6 +373,7 @@ "kporras07/composer-symlinks": "^1.2", "lucatume/wp-browser": "^3", "newfold-labs/wp-php-standards": "^1.2", + "phpunit/phpcov": "^5.0", "wpackagist-plugin/woocommerce": "*" }, "type": "library", @@ -413,6 +414,16 @@ "create-symlinks": [ "Kporras07\\ComposerSymlinks\\ScriptHandler::createSymlinks" ], + "test": [ + "phpunit --bootstrap tests/phpunit/bootstrap.php", + "codecept run wpunit" + ], + "test-coverage": [ + "phpunit --bootstrap tests/phpunit/bootstrap.php --coverage-php tests/_output/unit.cov --coverage-text", + "codecept run wpunit --coverage wpunit.cov", + "phpcov merge --php tests/_output/merged.cov --html tests/_output/html tests/_output;", + "echo \"open tests/_output/html/index.html\" to view the report" + ], "post-install-cmd": [ "@create-symlinks" ], @@ -425,10 +436,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.5.3", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.0", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-06-19T17:34:08+00:00" + "time": "2024-07-16T23:30:45+00:00" }, { "name": "newfold-labs/wp-module-features", @@ -616,16 +627,16 @@ }, { "name": "newfold-labs/wp-module-patterns", - "version": "2.1.0", + "version": "2.2.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "383fccab930655790d149e17987ef450265b5c3b" + "reference": "dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/383fccab930655790d149e17987ef450265b5c3b", - "reference": "383fccab930655790d149e17987ef450265b5c3b", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c", + "reference": "dd99ac0f9aeb8fd5f21481b6c119e348fa51c63c", "shasum": "" }, "require": { @@ -663,10 +674,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.1.0", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.2.0", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-06-26T15:45:31+00:00" + "time": "2024-07-24T11:13:40+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -1367,16 +1378,16 @@ }, { "name": "mck89/peast", - "version": "v1.16.2", + "version": "v1.16.3", "source": { "type": "git", "url": "https://github.com/mck89/peast.git", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe" + "reference": "645ec21b650bc2aced18285c85f220d22afc1430" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/mck89/peast/zipball/2791b08ffcc1862fe18eef85675da3aa58c406fe", - "reference": "2791b08ffcc1862fe18eef85675da3aa58c406fe", + "url": "https://api.github.com/repos/mck89/peast/zipball/645ec21b650bc2aced18285c85f220d22afc1430", + "reference": "645ec21b650bc2aced18285c85f220d22afc1430", "shasum": "" }, "require": { @@ -1389,7 +1400,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.16.2-dev" + "dev-master": "1.16.3-dev" } }, "autoload": { @@ -1410,22 +1421,22 @@ "description": "Peast is PHP library that generates AST for JavaScript code", "support": { "issues": "https://github.com/mck89/peast/issues", - "source": "https://github.com/mck89/peast/tree/v1.16.2" + "source": "https://github.com/mck89/peast/tree/v1.16.3" }, - "time": "2024-03-05T09:16:03+00:00" + "time": "2024-07-23T14:00:32+00:00" }, { "name": "newfold-labs/wp-php-standards", - "version": "1.2.3", + "version": "1.2.4", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-php-standards.git", - "reference": "a486fb541e890ee87dc387eaea0644101e728464" + "reference": "7ef8833b93f8bcdf52c6006f3adb53972d0799a6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-php-standards/zipball/a486fb541e890ee87dc387eaea0644101e728464", - "reference": "a486fb541e890ee87dc387eaea0644101e728464", + "url": "https://api.github.com/repos/newfold-labs/wp-php-standards/zipball/7ef8833b93f8bcdf52c6006f3adb53972d0799a6", + "reference": "7ef8833b93f8bcdf52c6006f3adb53972d0799a6", "shasum": "" }, "require": { @@ -1446,10 +1457,10 @@ ], "description": "PHP Code Sniffer Standards for Newfold WordPress projects.", "support": { - "source": "https://github.com/newfold-labs/wp-php-standards/tree/1.2.3", + "source": "https://github.com/newfold-labs/wp-php-standards/tree/1.2.4", "issues": "https://github.com/newfold-labs/wp-php-standards/issues" }, - "time": "2024-04-22T20:09:45+00:00" + "time": "2024-07-22T23:16:21+00:00" }, { "name": "phpcompatibility/php-compatibility", @@ -1823,16 +1834,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.1", + "version": "3.10.2", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877" + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/8f90f7a53ce271935282967f53d0894f8f1ff877", - "reference": "8f90f7a53ce271935282967f53d0894f8f1ff877", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", "shasum": "" }, "require": { @@ -1899,27 +1910,27 @@ "type": "open_collective" } ], - "time": "2024-05-22T21:24:41+00:00" + "time": "2024-07-21T23:26:44+00:00" }, { "name": "symfony/finder", - "version": "v6.4.8", + "version": "v7.1.1", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "3ef977a43883215d560a2cecb82ec8e62131471c" + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/3ef977a43883215d560a2cecb82ec8e62131471c", - "reference": "3ef977a43883215d560a2cecb82ec8e62131471c", + "url": "https://api.github.com/repos/symfony/finder/zipball/fbb0ba67688b780efbc886c1a0a0948dcf7205d6", + "reference": "fbb0ba67688b780efbc886c1a0a0948dcf7205d6", "shasum": "" }, "require": { - "php": ">=8.1" + "php": ">=8.2" }, "require-dev": { - "symfony/filesystem": "^6.0|^7.0" + "symfony/filesystem": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -1947,7 +1958,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v6.4.8" + "source": "https://github.com/symfony/finder/tree/v7.1.1" }, "funding": [ { @@ -1963,7 +1974,7 @@ "type": "tidelift" } ], - "time": "2024-05-31T14:49:08+00:00" + "time": "2024-05-31T14:57:53+00:00" }, { "name": "wp-cli/i18n-command", @@ -2292,5 +2303,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 62872be..af33e46 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,7 +942,7 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if( $page['slug'] == 'products' || $page['slug'] == 'shop' ){ + if ( 'products' === $page['slug'] || 'shop' === $page['slug'] ) { update_option( 'woocommerce_shop_page_id', $post_id ); update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); } From c72eafda0415642ad0dddd3b96e4222b483f01cc Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Thu, 25 Jul 2024 14:44:27 +0530 Subject: [PATCH 04/23] linting fixes --- includes/Services/SiteGenService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 62872be..af33e46 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,7 +942,7 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if( $page['slug'] == 'products' || $page['slug'] == 'shop' ){ + if ( 'products' === $page['slug'] || 'shop' === $page['slug'] ) { update_option( 'woocommerce_shop_page_id', $post_id ); update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); } From 9de1712100ed97abd1df1e56cf67e061be1ce73c Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Jul 2024 15:26:02 +0530 Subject: [PATCH 05/23] addressed the comments --- includes/Services/SiteGenService.php | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index af33e46..6a65433 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,9 +942,8 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if ( 'products' === $page['slug'] || 'shop' === $page['slug'] ) { - update_option( 'woocommerce_shop_page_id', $post_id ); - update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); + if ( self::is_products_or_shop_page( $page['slug'] ) ) { + self::set_woo_shop_page( $post_id ); } } } @@ -972,6 +971,29 @@ public static function publish_sitemap_pages( $site_description, $content_style, return true; } + /** + * Checks if it is a products or shop slug + * + * @param string $slug Slug of the page being generated. + * @return boolean + */ + public static function is_products_or_shop_page( $slug ) { + return ( 'products' === $slug || 'shop' === $slug ); + } + + /** + * Sets the products page generated by AI to woocommerce shop page + * + * @param integer $page_id Id of the page + */ + public static function set_woo_shop_page( $page_id ) { + $prev_page_id = Options::get_option_name( 'woocommerce_shop_page_id', false ); + if ( $prev_page_id !== $page_id ) { + update_option( 'woocommerce_shop_page_id', $page_id ); + update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); + } + } + /** * Trash the "Sample Page" generated for all new sites. * From b17026861d27891fa142064470e42e1ee51e1e9b Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Jul 2024 17:30:55 +0530 Subject: [PATCH 06/23] add the woocommerce shop page id to options --- includes/Options.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Options.php b/includes/Options.php index b554f07..552450e 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -57,6 +57,7 @@ final class Options { 'filter_active_plugins' => 'filter_active_plugins', 'sitegen_regenerated_homepages' => 'sitegen_regenerated_homepages', 'status' => 'status', + 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', ); /** From 43f35dfdd815b60c029e289ee48ef011932b23b5 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Fri, 26 Jul 2024 17:33:01 +0530 Subject: [PATCH 07/23] linting fixes --- includes/Options.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Options.php b/includes/Options.php index 552450e..07c03ec 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -57,7 +57,7 @@ final class Options { 'filter_active_plugins' => 'filter_active_plugins', 'sitegen_regenerated_homepages' => 'sitegen_regenerated_homepages', 'status' => 'status', - 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', + 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', ); /** From fb8e1b5383949a7dfeb62f0d5b48bb5390bec9d3 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Jul 2024 12:49:01 +0530 Subject: [PATCH 08/23] changes --- includes/Options.php | 3 ++- includes/Services/SiteGenService.php | 9 ++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/includes/Options.php b/includes/Options.php index 07c03ec..0d631a0 100644 --- a/includes/Options.php +++ b/includes/Options.php @@ -57,7 +57,8 @@ final class Options { 'filter_active_plugins' => 'filter_active_plugins', 'sitegen_regenerated_homepages' => 'sitegen_regenerated_homepages', 'status' => 'status', - 'woocommerce_shop_page_id' => 'woocommerce_shop_page_id', + 'wc_shop_page_id' => 'woocommerce_shop_page_id', + 'wc_queue_flush_rewrite_rules' => 'woocommerce_queue_flush_rewrite_rules', ); /** diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 6a65433..0e679d1 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -987,11 +987,10 @@ public static function is_products_or_shop_page( $slug ) { * @param integer $page_id Id of the page */ public static function set_woo_shop_page( $page_id ) { - $prev_page_id = Options::get_option_name( 'woocommerce_shop_page_id', false ); - if ( $prev_page_id !== $page_id ) { - update_option( 'woocommerce_shop_page_id', $page_id ); - update_option( 'woocommerce_queue_flush_rewrite_rules', 'yes' ); - } + $option_shop_page_id = Options::get_option_name( 'wc_shop_page_id', false ); + $option_wc_queue_flush_rewrite_rules = Options::get_option_name( 'wc_queue_flush_rewrite_rules', false ); + update_option( $option_shop_page_id, $page_id ); + update_option( $option_wc_queue_flush_rewrite_rules, 'yes' ); } /** From ee38cdda5f3bde7aec0b2cb9cf2240f0a1a2025e Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Jul 2024 16:26:33 +0530 Subject: [PATCH 09/23] `menu` added --- includes/Services/SiteGenService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 0e679d1..e4b2a88 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -978,7 +978,7 @@ public static function publish_sitemap_pages( $site_description, $content_style, * @return boolean */ public static function is_products_or_shop_page( $slug ) { - return ( 'products' === $slug || 'shop' === $slug ); + return ( 'products' === $slug || 'shop' === $slug || 'menu' === $slug ); } /** From 734b0d206206125c4af95dbd6f164640e6d0d9a8 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Mon, 29 Jul 2024 16:42:47 +0530 Subject: [PATCH 10/23] changes --- includes/Services/SiteGenService.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index e4b2a88..fde2d88 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -978,7 +978,12 @@ public static function publish_sitemap_pages( $site_description, $content_style, * @return boolean */ public static function is_products_or_shop_page( $slug ) { - return ( 'products' === $slug || 'shop' === $slug || 'menu' === $slug ); + $product_page_slug = array( + 'products' => true, + 'shop' => true, + 'menu' => true, + ); + return array_key_exists( $slug, $product_page_slug ); } /** @@ -989,8 +994,8 @@ public static function is_products_or_shop_page( $slug ) { public static function set_woo_shop_page( $page_id ) { $option_shop_page_id = Options::get_option_name( 'wc_shop_page_id', false ); $option_wc_queue_flush_rewrite_rules = Options::get_option_name( 'wc_queue_flush_rewrite_rules', false ); - update_option( $option_shop_page_id, $page_id ); - update_option( $option_wc_queue_flush_rewrite_rules, 'yes' ); + update_option( $option_shop_page_id, $page_id ); + update_option( $option_wc_queue_flush_rewrite_rules, 'yes' ); } /** From 3ab9c302b501097dc91524a654878f73209e2983 Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Tue, 30 Jul 2024 10:16:11 +0530 Subject: [PATCH 11/23] removing menu --- includes/Services/SiteGenService.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index fde2d88..74adbf4 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -981,7 +981,6 @@ public static function is_products_or_shop_page( $slug ) { $product_page_slug = array( 'products' => true, 'shop' => true, - 'menu' => true, ); return array_key_exists( $slug, $product_page_slug ); } From 0ea406b805b7831df00f13febb03dcbe016f420c Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Tue, 30 Jul 2024 12:54:14 +0530 Subject: [PATCH 12/23] moving it outside of nav menu logic --- includes/Services/SiteGenService.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/Services/SiteGenService.php b/includes/Services/SiteGenService.php index 74adbf4..acf06fb 100644 --- a/includes/Services/SiteGenService.php +++ b/includes/Services/SiteGenService.php @@ -942,9 +942,9 @@ public static function publish_sitemap_pages( $site_description, $content_style, ); if ( $update_nav_menu && ! is_wp_error( $post_id ) ) { $navigation_links_grammar .= self::get_nav_link_grammar_from_post_data( $post_id, $page['title'], get_permalink( $post_id ) ); - if ( self::is_products_or_shop_page( $page['slug'] ) ) { - self::set_woo_shop_page( $post_id ); - } + } + if ( ! is_wp_error( $post_id ) && self::is_products_or_shop_page( $page['slug'] ) ) { + self::set_woo_shop_page( $post_id ); } } From c39d816991b8392ce36471163579e490be0dc0b7 Mon Sep 17 00:00:00 2001 From: Allen Benny <48691514+officiallygod@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:26:53 +0530 Subject: [PATCH 13/23] Update lint-check-php.yml --- .github/workflows/lint-check-php.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint-check-php.yml b/.github/workflows/lint-check-php.yml index 1ef8d6a..e783a6d 100644 --- a/.github/workflows/lint-check-php.yml +++ b/.github/workflows/lint-check-php.yml @@ -26,7 +26,7 @@ jobs: - name: Setup PHP uses: shivammathur/setup-php@v2 with: - php-version: '8.1' + php-version: '8.4' coverage: none tools: composer, cs2pr From 0cf14a781419686230637b1396340f1143131e19 Mon Sep 17 00:00:00 2001 From: Allen Benny <48691514+officiallygod@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:27:43 +0530 Subject: [PATCH 14/23] Update Data.php --- includes/Data.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Data.php b/includes/Data.php index 04f5713..ac5783c 100644 --- a/includes/Data.php +++ b/includes/Data.php @@ -11,6 +11,7 @@ * CRUD methods for Onboarding config for use in API, CLI and runtime. */ final class Data { + /** * Runtime data for Onboarding application */ From 3f6ddb36cd7d193ed031e3d18a69917435309cad Mon Sep 17 00:00:00 2001 From: Ramya krishna Date: Tue, 24 Sep 2024 12:28:16 +0530 Subject: [PATCH 15/23] lock files updated --- composer.lock | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/composer.lock b/composer.lock index 2631af1..68cd88a 100644 --- a/composer.lock +++ b/composer.lock @@ -192,16 +192,16 @@ }, { "name": "newfold-labs/wp-module-ai", - "version": "1.1.11", + "version": "1.1.12", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ai.git", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761" + "reference": "3836a576e83e068b53de1d850bcb60aac471656d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/523fe373a723b2336e3043cbcaeac058734ed761", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/3836a576e83e068b53de1d850bcb60aac471656d", + "reference": "3836a576e83e068b53de1d850bcb60aac471656d", "shasum": "" }, "require": { @@ -231,10 +231,10 @@ ], "description": "A module for providing artificial intelligence capabilities.", "support": { - "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.11", + "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.12", "issues": "https://github.com/newfold-labs/wp-module-ai/issues" }, - "time": "2024-08-28T15:18:10+00:00" + "time": "2024-09-19T07:47:50+00:00" }, { "name": "newfold-labs/wp-module-coming-soon", @@ -1835,16 +1835,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.2", + "version": "3.10.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", "shasum": "" }, "require": { @@ -1911,7 +1911,7 @@ "type": "open_collective" } ], - "time": "2024-07-21T23:26:44+00:00" + "time": "2024-09-18T10:38:58+00:00" }, { "name": "symfony/finder", @@ -2304,5 +2304,5 @@ "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.6.0" + "plugin-api-version": "2.3.0" } From 2fb3a098d20df90a0ddba15cb5f6cbdfda830f35 Mon Sep 17 00:00:00 2001 From: Allen Benny <48691514+officiallygod@users.noreply.github.com> Date: Tue, 24 Sep 2024 12:29:19 +0530 Subject: [PATCH 16/23] Update Data.php --- includes/Data.php | 1 - 1 file changed, 1 deletion(-) diff --git a/includes/Data.php b/includes/Data.php index ac5783c..04f5713 100644 --- a/includes/Data.php +++ b/includes/Data.php @@ -11,7 +11,6 @@ * CRUD methods for Onboarding config for use in API, CLI and runtime. */ final class Data { - /** * Runtime data for Onboarding application */ From cb8197921717fe01721153786898d0c591495fbd Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 25 Sep 2024 12:13:53 +0530 Subject: [PATCH 17/23] Update Packages --- composer.json | 6 +- composer.lock | 211 +++++++++++++++++++++++++++++++++++++++++++------- 2 files changed, 184 insertions(+), 33 deletions(-) diff --git a/composer.json b/composer.json index 71bfd0d..df663ad 100644 --- a/composer.json +++ b/composer.json @@ -26,13 +26,13 @@ }, "require": { "newfold-labs/wp-module-installer": "^1.1", - "newfold-labs/wp-module-patterns": "^2.0", + "newfold-labs/wp-module-patterns": "^2.4", "newfold-labs/wp-module-ai": "^1.1", "wp-forge/wp-upgrade-handler": "^1.0", "mustache/mustache": "^2.14", - "newfold-labs/wp-module-data": "^2.0", + "newfold-labs/wp-module-data": "^2.6", "newfold-labs/wp-module-coming-soon": "^1.2", - "newfold-labs/wp-module-performance": "^1.4", + "newfold-labs/wp-module-performance": "^2.0", "newfold-labs/wp-module-install-checker": "^1.0", "newfold-labs/wp-module-survey": "^1.0" }, diff --git a/composer.lock b/composer.lock index 2631af1..cdc5347 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "2d41d466ff3bc1d1e41ba66ccf71bf00", + "content-hash": "0a9f8fb749a3f28acf8597c3525fa01b", "packages": [ { "name": "doctrine/inflector", @@ -192,16 +192,16 @@ }, { "name": "newfold-labs/wp-module-ai", - "version": "1.1.11", + "version": "1.1.12", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-ai.git", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761" + "reference": "3836a576e83e068b53de1d850bcb60aac471656d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/523fe373a723b2336e3043cbcaeac058734ed761", - "reference": "523fe373a723b2336e3043cbcaeac058734ed761", + "url": "https://api.github.com/repos/newfold-labs/wp-module-ai/zipball/3836a576e83e068b53de1d850bcb60aac471656d", + "reference": "3836a576e83e068b53de1d850bcb60aac471656d", "shasum": "" }, "require": { @@ -231,10 +231,10 @@ ], "description": "A module for providing artificial intelligence capabilities.", "support": { - "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.11", + "source": "https://github.com/newfold-labs/wp-module-ai/tree/1.1.12", "issues": "https://github.com/newfold-labs/wp-module-ai/issues" }, - "time": "2024-08-28T15:18:10+00:00" + "time": "2024-09-19T07:47:50+00:00" }, { "name": "newfold-labs/wp-module-coming-soon", @@ -682,23 +682,27 @@ }, { "name": "newfold-labs/wp-module-performance", - "version": "1.4.1", + "version": "2.0.1", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-performance.git", - "reference": "5e4c87d404788c61ea55e3c62e29e5df48c36340" + "reference": "ed7db2ce699d1ab6c61db28080b4f13f8511cc0d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-performance/zipball/5e4c87d404788c61ea55e3c62e29e5df48c36340", - "reference": "5e4c87d404788c61ea55e3c62e29e5df48c36340", + "url": "https://api.github.com/repos/newfold-labs/wp-module-performance/zipball/ed7db2ce699d1ab6c61db28080b4f13f8511cc0d", + "reference": "ed7db2ce699d1ab6c61db28080b4f13f8511cc0d", "shasum": "" }, "require": { "newfold-labs/wp-module-context": "^1.0", - "wp-forge/collection": "^1.0", + "newfold-labs/wp-module-features": "^1.3", + "wp-forge/collection": "^1.0.2", "wp-forge/wp-htaccess-manager": "^1.0", - "wpscholar/url": "^1.2" + "wpscholar/url": "^1.2.2" + }, + "require-dev": { + "newfold-labs/wp-php-standards": "^1.2.3" }, "type": "library", "autoload": { @@ -706,6 +710,7 @@ "NewfoldLabs\\WP\\Module\\Performance\\": "includes" }, "files": [ + "includes/PerformanceFeature.php", "includes/functions.php", "bootstrap.php" ] @@ -721,10 +726,10 @@ ], "description": "A module for managing caching functionality.", "support": { - "source": "https://github.com/newfold-labs/wp-module-performance/tree/1.4.1", + "source": "https://github.com/newfold-labs/wp-module-performance/tree/2.0.1", "issues": "https://github.com/newfold-labs/wp-module-performance/issues" }, - "time": "2024-04-22T22:30:42+00:00" + "time": "2024-08-15T22:17:47+00:00" }, { "name": "newfold-labs/wp-module-survey", @@ -1835,16 +1840,16 @@ }, { "name": "squizlabs/php_codesniffer", - "version": "3.10.2", + "version": "3.10.3", "source": { "type": "git", "url": "https://github.com/PHPCSStandards/PHP_CodeSniffer.git", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017" + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/86e5f5dd9a840c46810ebe5ff1885581c42a3017", - "reference": "86e5f5dd9a840c46810ebe5ff1885581c42a3017", + "url": "https://api.github.com/repos/PHPCSStandards/PHP_CodeSniffer/zipball/62d32998e820bddc40f99f8251958aed187a5c9c", + "reference": "62d32998e820bddc40f99f8251958aed187a5c9c", "shasum": "" }, "require": { @@ -1911,27 +1916,93 @@ "type": "open_collective" } ], - "time": "2024-07-21T23:26:44+00:00" + "time": "2024-09-18T10:38:58+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v2.5.3", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", + "reference": "80d075412b557d41002320b96a096ca65aa2c98d", + "shasum": "" + }, + "require": { + "php": ">=7.1" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.5-dev" + }, + "thanks": { + "name": "symfony/contracts", + "url": "https://github.com/symfony/contracts" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2023-01-24T14:02:46+00:00" }, { "name": "symfony/finder", - "version": "v7.1.4", + "version": "v5.4.43", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823" + "reference": "ae25a9145a900764158d439653d5630191155ca0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/d95bbf319f7d052082fb7af147e0f835a695e823", - "reference": "d95bbf319f7d052082fb7af147e0f835a695e823", + "url": "https://api.github.com/repos/symfony/finder/zipball/ae25a9145a900764158d439653d5630191155ca0", + "reference": "ae25a9145a900764158d439653d5630191155ca0", "shasum": "" }, "require": { - "php": ">=8.2" - }, - "require-dev": { - "symfony/filesystem": "^6.4|^7.0" + "php": ">=7.2.5", + "symfony/deprecation-contracts": "^2.1|^3", + "symfony/polyfill-php80": "^1.16" }, "type": "library", "autoload": { @@ -1959,7 +2030,87 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v7.1.4" + "source": "https://github.com/symfony/finder/tree/v5.4.43" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-08-13T14:03:51+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.31.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "name": "symfony/polyfill", + "url": "https://github.com/symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" }, "funding": [ { @@ -1975,7 +2126,7 @@ "type": "tidelift" } ], - "time": "2024-08-13T14:28:19+00:00" + "time": "2024-09-09T11:45:10+00:00" }, { "name": "wp-cli/i18n-command", From 5569948a87b9c2066be6332646edad907ac56f22 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 9 Oct 2024 12:04:27 +0530 Subject: [PATCH 18/23] Update Plugins.php --- includes/Plugins.php | 44 +------------------------------------------- 1 file changed, 1 insertion(+), 43 deletions(-) diff --git a/includes/Plugins.php b/includes/Plugins.php index c7aae6f..ad23d49 100644 --- a/includes/Plugins.php +++ b/includes/Plugins.php @@ -55,55 +55,13 @@ final class Plugins { ), ), 'site-capabilities' => array( - 'hasEcomdash' => array( + 'hasEcomdash' => array( array( 'slug' => 'nfd_slug_ecomdash_wordpress_plugin', 'activate' => true, 'priority' => 220, ), ), - 'hasYithExtended' => array( - array( - 'slug' => 'woocommerce', - 'activate' => true, - 'priority' => 300, - ), - array( - 'slug' => 'nfd_slug_yith_woocommerce_booking', - 'activate' => true, - 'priority' => 100, - ), - array( - 'slug' => 'yith-woocommerce-ajax-search', - 'activate' => true, - 'priority' => 120, - ), - array( - 'slug' => 'nfd_slug_yith_woocommerce_gift_cards', - 'activate' => true, - 'priority' => 140, - ), - array( - 'slug' => 'nfd_slug_yith_woocommerce_wishlist', - 'activate' => true, - 'priority' => 160, - ), - array( - 'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page', - 'activate' => true, - 'priority' => 180, - ), - array( - 'slug' => 'nfd_slug_yith_woocommerce_ajax_product_filter', - 'activate' => true, - 'priority' => 200, - ), - array( - 'slug' => 'nfd_slug_wonder_cart', - 'activate' => true, - 'priority' => 210, - ), - ), ), 'ecommerce' => array( 'default' => array( From 6b4c3f5deb699440bd121d7618cf16ec32b3a840 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 9 Oct 2024 14:53:05 +0530 Subject: [PATCH 19/23] Update Composer --- composer.json | 4 +-- composer.lock | 88 +++++++++++++++++++++++++++++++++++++++++---------- 2 files changed, 73 insertions(+), 19 deletions(-) diff --git a/composer.json b/composer.json index df663ad..353cb8b 100644 --- a/composer.json +++ b/composer.json @@ -25,8 +25,8 @@ } }, "require": { - "newfold-labs/wp-module-installer": "^1.1", - "newfold-labs/wp-module-patterns": "^2.4", + "newfold-labs/wp-module-installer": "^1.2.0-beta", + "newfold-labs/wp-module-patterns": "^2.5", "newfold-labs/wp-module-ai": "^1.1", "wp-forge/wp-upgrade-handler": "^1.0", "mustache/mustache": "^2.14", diff --git a/composer.lock b/composer.lock index c64785d..c272d8c 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "0a9f8fb749a3f28acf8597c3525fa01b", + "content-hash": "837c81fe2ee7e029194ed202cd9cc0e4", "packages": [ { "name": "doctrine/inflector", @@ -540,20 +540,24 @@ }, { "name": "newfold-labs/wp-module-installer", - "version": "1.1.5", + "version": "1.2.0-beta", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-installer.git", - "reference": "b418c3aa8c192e805930abd9871b301d16671ba8" + "reference": "ac8d961df8e6826df952d08eeb3f5a7f9b171db0" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-installer/zipball/b418c3aa8c192e805930abd9871b301d16671ba8", - "reference": "b418c3aa8c192e805930abd9871b301d16671ba8", + "url": "https://api.github.com/repos/newfold-labs/wp-module-installer/zipball/ac8d961df8e6826df952d08eeb3f5a7f9b171db0", + "reference": "ac8d961df8e6826df952d08eeb3f5a7f9b171db0", "shasum": "" }, + "require": { + "newfold-labs/wp-module-pls": "^0.1.0" + }, "require-dev": { - "newfold-labs/wp-php-standards": "^1.2" + "newfold-labs/wp-php-standards": "^1.2", + "wp-cli/wp-cli": "^2.11" }, "type": "library", "autoload": { @@ -575,10 +579,10 @@ ], "description": "An installer for WordPress plugins and themes.", "support": { - "source": "https://github.com/newfold-labs/wp-module-installer/tree/1.1.5", + "source": "https://github.com/newfold-labs/wp-module-installer/tree/1.2.0-beta", "issues": "https://github.com/newfold-labs/wp-module-installer/issues" }, - "time": "2024-08-28T06:37:38+00:00" + "time": "2024-10-09T08:34:34+00:00" }, { "name": "newfold-labs/wp-module-loader", @@ -628,21 +632,22 @@ }, { "name": "newfold-labs/wp-module-patterns", - "version": "2.4.1", + "version": "2.5.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "2d8bb11201123adc6505afd89af6494490f929ed" + "reference": "d5e37c1b9ac7290e117001c40fe33ac2f95af094" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/2d8bb11201123adc6505afd89af6494490f929ed", - "reference": "2d8bb11201123adc6505afd89af6494490f929ed", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/d5e37c1b9ac7290e117001c40fe33ac2f95af094", + "reference": "d5e37c1b9ac7290e117001c40fe33ac2f95af094", "shasum": "" }, "require": { "newfold-labs/wp-module-data": "^2.5.1", - "newfold-labs/wp-module-features": "^1.4" + "newfold-labs/wp-module-features": "^1.4", + "newfold-labs/wp-module-installer": "^1.1" }, "require-dev": { "newfold-labs/wp-php-standards": "^1.2.2" @@ -675,10 +680,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.4.1", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.5.0", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-09-04T13:49:43+00:00" + "time": "2024-09-26T18:04:12+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -731,6 +736,53 @@ }, "time": "2024-08-15T22:17:47+00:00" }, + { + "name": "newfold-labs/wp-module-pls", + "version": "0.1.0", + "source": { + "type": "git", + "url": "https://github.com/newfold-labs/wp-module-pls.git", + "reference": "ffa1517c18da067dd830c809f74aee597f05dc17" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/newfold-labs/wp-module-pls/zipball/ffa1517c18da067dd830c809f74aee597f05dc17", + "reference": "ffa1517c18da067dd830c809f74aee597f05dc17", + "shasum": "" + }, + "require": { + "newfold-labs/wp-module-data": "^2.0" + }, + "require-dev": { + "newfold-labs/wp-php-standards": "^1.2", + "wp-cli/i18n-command": "^2.4.3", + "wp-cli/wp-cli": "^2.11" + }, + "type": "library", + "autoload": { + "psr-4": { + "NewfoldLabs\\WP\\Module\\PLS\\": "includes" + }, + "files": [ + "bootstrap.php" + ] + }, + "license": [ + "GPL-3.0-or-later" + ], + "authors": [ + { + "name": "arunshenoy99", + "email": "devarunshenoy99@gmail.com" + } + ], + "description": "A Newfold module that handles license key provisioning, validation, and other lifecycle events for registered plugins using the PLS API via Hiive.", + "support": { + "source": "https://github.com/newfold-labs/wp-module-pls/tree/0.1.0", + "issues": "https://github.com/newfold-labs/wp-module-pls/issues" + }, + "time": "2024-10-09T08:23:27+00:00" + }, { "name": "newfold-labs/wp-module-survey", "version": "1.0.1", @@ -2450,10 +2502,12 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": [], + "stability-flags": { + "newfold-labs/wp-module-installer": 10 + }, "prefer-stable": false, "prefer-lowest": false, "platform": [], "platform-dev": [], - "plugin-api-version": "2.3.0" + "plugin-api-version": "2.6.0" } From aaf2691bdf6e3af31ff0855255f7d24d9db3e745 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Thu, 10 Oct 2024 08:38:47 +0530 Subject: [PATCH 20/23] Make it work --- includes/Config.php | 9 +++++++ includes/Plugins.php | 56 +++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 64 insertions(+), 1 deletion(-) diff --git a/includes/Config.php b/includes/Config.php index 7671983..4b988f3 100644 --- a/includes/Config.php +++ b/includes/Config.php @@ -66,4 +66,13 @@ public static function has_ai_sitegen() { public static function can_migrate_site() { return self::get_site_capability( 'canMigrateSite' ); } + + /** + * Gets the current site's capability if it has solution. + * + * @return boolean + */ + public static function has_solution() { + return self::get_site_capability( 'hasSolution' ); + } } diff --git a/includes/Plugins.php b/includes/Plugins.php index ad23d49..bc19ff5 100644 --- a/includes/Plugins.php +++ b/includes/Plugins.php @@ -55,13 +55,55 @@ final class Plugins { ), ), 'site-capabilities' => array( - 'hasEcomdash' => array( + 'hasEcomdash' => array( array( 'slug' => 'nfd_slug_ecomdash_wordpress_plugin', 'activate' => true, 'priority' => 220, ), ), + 'hasYithExtended' => array( + array( + 'slug' => 'woocommerce', + 'activate' => true, + 'priority' => 300, + ), + array( + 'slug' => 'nfd_slug_yith_woocommerce_booking', + 'activate' => true, + 'priority' => 100, + ), + array( + 'slug' => 'yith-woocommerce-ajax-search', + 'activate' => true, + 'priority' => 120, + ), + array( + 'slug' => 'nfd_slug_yith_woocommerce_gift_cards', + 'activate' => true, + 'priority' => 140, + ), + array( + 'slug' => 'nfd_slug_yith_woocommerce_wishlist', + 'activate' => true, + 'priority' => 160, + ), + array( + 'slug' => 'nfd_slug_yith_woocommerce_customize_myaccount_page', + 'activate' => true, + 'priority' => 180, + ), + array( + 'slug' => 'nfd_slug_yith_woocommerce_ajax_product_filter', + 'activate' => true, + 'priority' => 200, + ), + array( + 'slug' => 'nfd_slug_wonder_cart', + 'activate' => true, + 'priority' => 210, + ), + ), ), 'ecommerce' => array( 'default' => array( @@ -213,6 +255,13 @@ final class Plugins { ), ); + /** + * An array of capabilities that should not be run if the site has solution. + * + * @return array + */ + protected static $solution_override_capabilities = array( 'hasYithExtended' ); + /** * Get the list of initial plugins to be installed for a particular hosting plan. * @@ -227,6 +276,11 @@ public static function get_init() { $plugins_data_for_site_capabilities = self::$init_list['site-capabilities']; foreach ( $plugins_data_for_site_capabilities as $site_capability => $plugins_data ) { + // Skip capability installation if solution is present. + if ( Config::has_solution() && + in_array( $site_capability, self::$solution_override_capabilities ) ) { + continue; + } // Check if the capability is enabled on Hiive if ( true === Config::get_site_capability( $site_capability ) ) { // Check if there are plugins for the flag. From c61f3f3310271ecfe048a906a7caca88fd0e4d67 Mon Sep 17 00:00:00 2001 From: Evan Mullins Date: Mon, 21 Oct 2024 11:37:33 -0400 Subject: [PATCH 21/23] update to latest installer module also run `composer bump` to list specific current module versions --- composer.json | 20 ++++++++++---------- composer.lock | 14 +++++++------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/composer.json b/composer.json index 353cb8b..f33feea 100644 --- a/composer.json +++ b/composer.json @@ -25,20 +25,20 @@ } }, "require": { - "newfold-labs/wp-module-installer": "^1.2.0-beta", + "newfold-labs/wp-module-installer": "^1.2.0-beta.4", "newfold-labs/wp-module-patterns": "^2.5", - "newfold-labs/wp-module-ai": "^1.1", + "newfold-labs/wp-module-ai": "^1.1.12", "wp-forge/wp-upgrade-handler": "^1.0", - "mustache/mustache": "^2.14", - "newfold-labs/wp-module-data": "^2.6", - "newfold-labs/wp-module-coming-soon": "^1.2", - "newfold-labs/wp-module-performance": "^2.0", - "newfold-labs/wp-module-install-checker": "^1.0", - "newfold-labs/wp-module-survey": "^1.0" + "mustache/mustache": "^2.14.2", + "newfold-labs/wp-module-data": "^2.6.3", + "newfold-labs/wp-module-coming-soon": "^1.2.6", + "newfold-labs/wp-module-performance": "^2.0.1", + "newfold-labs/wp-module-install-checker": "^1.0.3", + "newfold-labs/wp-module-survey": "^1.0.1" }, "require-dev": { - "newfold-labs/wp-php-standards": "^1.2", - "wp-cli/i18n-command": "^2.4.3" + "newfold-labs/wp-php-standards": "^1.2.4", + "wp-cli/i18n-command": "^2.6.2" }, "config": { "allow-plugins": { diff --git a/composer.lock b/composer.lock index c272d8c..dec27c4 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "837c81fe2ee7e029194ed202cd9cc0e4", + "content-hash": "6f3d591785b1246985438f3257c983b4", "packages": [ { "name": "doctrine/inflector", @@ -540,16 +540,16 @@ }, { "name": "newfold-labs/wp-module-installer", - "version": "1.2.0-beta", + "version": "1.2.0-beta.4", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-installer.git", - "reference": "ac8d961df8e6826df952d08eeb3f5a7f9b171db0" + "reference": "8a0f103d04318f12d6801ed1f3fb4764d5b0014d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-installer/zipball/ac8d961df8e6826df952d08eeb3f5a7f9b171db0", - "reference": "ac8d961df8e6826df952d08eeb3f5a7f9b171db0", + "url": "https://api.github.com/repos/newfold-labs/wp-module-installer/zipball/8a0f103d04318f12d6801ed1f3fb4764d5b0014d", + "reference": "8a0f103d04318f12d6801ed1f3fb4764d5b0014d", "shasum": "" }, "require": { @@ -579,10 +579,10 @@ ], "description": "An installer for WordPress plugins and themes.", "support": { - "source": "https://github.com/newfold-labs/wp-module-installer/tree/1.2.0-beta", + "source": "https://github.com/newfold-labs/wp-module-installer/tree/1.2.0-beta.4", "issues": "https://github.com/newfold-labs/wp-module-installer/issues" }, - "time": "2024-10-09T08:34:34+00:00" + "time": "2024-10-21T15:00:43+00:00" }, { "name": "newfold-labs/wp-module-loader", From 32cfd66b5f327db246809996b26b51f2bd777713 Mon Sep 17 00:00:00 2001 From: Abhijit Bhatnagar Date: Wed, 23 Oct 2024 11:08:45 +0530 Subject: [PATCH 22/23] fixed PHP linting --- includes/Plugins.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/Plugins.php b/includes/Plugins.php index bc19ff5..2df7a19 100644 --- a/includes/Plugins.php +++ b/includes/Plugins.php @@ -258,7 +258,7 @@ final class Plugins { /** * An array of capabilities that should not be run if the site has solution. * - * @return array + * @var array */ protected static $solution_override_capabilities = array( 'hasYithExtended' ); @@ -278,7 +278,7 @@ public static function get_init() { foreach ( $plugins_data_for_site_capabilities as $site_capability => $plugins_data ) { // Skip capability installation if solution is present. if ( Config::has_solution() && - in_array( $site_capability, self::$solution_override_capabilities ) ) { + in_array( $site_capability, self::$solution_override_capabilities, true ) ) { continue; } // Check if the capability is enabled on Hiive From 1173e8cfd9adcd5b81578962c5e430b3ebd3dcc9 Mon Sep 17 00:00:00 2001 From: Abhijit Bhatnagar Date: Wed, 23 Oct 2024 15:19:48 +0530 Subject: [PATCH 23/23] updated composer packages --- composer.json | 6 +- composer.lock | 239 ++++++++++---------------------------------------- 2 files changed, 49 insertions(+), 196 deletions(-) diff --git a/composer.json b/composer.json index f33feea..bdd4665 100644 --- a/composer.json +++ b/composer.json @@ -25,12 +25,12 @@ } }, "require": { - "newfold-labs/wp-module-installer": "^1.2.0-beta.4", - "newfold-labs/wp-module-patterns": "^2.5", + "newfold-labs/wp-module-installer": "^1.2.0", + "newfold-labs/wp-module-patterns": "^2.6", "newfold-labs/wp-module-ai": "^1.1.12", "wp-forge/wp-upgrade-handler": "^1.0", "mustache/mustache": "^2.14.2", - "newfold-labs/wp-module-data": "^2.6.3", + "newfold-labs/wp-module-data": "^2.6.5", "newfold-labs/wp-module-coming-soon": "^1.2.6", "newfold-labs/wp-module-performance": "^2.0.1", "newfold-labs/wp-module-install-checker": "^1.0.3", diff --git a/composer.lock b/composer.lock index dec27c4..004a922 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "6f3d591785b1246985438f3257c983b4", + "content-hash": "c1e653921e60370fb50c044919a86d8b", "packages": [ { "name": "doctrine/inflector", @@ -346,20 +346,21 @@ }, { "name": "newfold-labs/wp-module-data", - "version": "2.6.3", + "version": "2.6.5", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-data.git", - "reference": "f98dfabe6a4cb10aec6dcd6e81fc7d269238e9a4" + "reference": "002cc3da70565af1708408f7d7604396d2af55e3" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/f98dfabe6a4cb10aec6dcd6e81fc7d269238e9a4", - "reference": "f98dfabe6a4cb10aec6dcd6e81fc7d269238e9a4", + "url": "https://api.github.com/repos/newfold-labs/wp-module-data/zipball/002cc3da70565af1708408f7d7604396d2af55e3", + "reference": "002cc3da70565af1708408f7d7604396d2af55e3", "shasum": "" }, "require": { "ext-json": "*", + "newfold-labs/wp-module-context": "^1.0", "newfold-labs/wp-module-loader": "^1.0.10", "wp-forge/helpers": "^2.0", "wp-forge/wp-query-builder": "^1.0.4", @@ -437,10 +438,10 @@ ], "description": "Newfold Data Module", "support": { - "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.3", + "source": "https://github.com/newfold-labs/wp-module-data/tree/2.6.5", "issues": "https://github.com/newfold-labs/wp-module-data/issues" }, - "time": "2024-08-30T19:51:58+00:00" + "time": "2024-10-18T19:30:28+00:00" }, { "name": "newfold-labs/wp-module-features", @@ -540,20 +541,20 @@ }, { "name": "newfold-labs/wp-module-installer", - "version": "1.2.0-beta.4", + "version": "1.2.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-installer.git", - "reference": "8a0f103d04318f12d6801ed1f3fb4764d5b0014d" + "reference": "1d7cb9d6f35107f409bb38e31c469c8a87ccd55b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-installer/zipball/8a0f103d04318f12d6801ed1f3fb4764d5b0014d", - "reference": "8a0f103d04318f12d6801ed1f3fb4764d5b0014d", + "url": "https://api.github.com/repos/newfold-labs/wp-module-installer/zipball/1d7cb9d6f35107f409bb38e31c469c8a87ccd55b", + "reference": "1d7cb9d6f35107f409bb38e31c469c8a87ccd55b", "shasum": "" }, "require": { - "newfold-labs/wp-module-pls": "^0.1.0" + "newfold-labs/wp-module-pls": "^1.0.0" }, "require-dev": { "newfold-labs/wp-php-standards": "^1.2", @@ -579,10 +580,10 @@ ], "description": "An installer for WordPress plugins and themes.", "support": { - "source": "https://github.com/newfold-labs/wp-module-installer/tree/1.2.0-beta.4", + "source": "https://github.com/newfold-labs/wp-module-installer/tree/1.2.0", "issues": "https://github.com/newfold-labs/wp-module-installer/issues" }, - "time": "2024-10-21T15:00:43+00:00" + "time": "2024-10-23T09:22:01+00:00" }, { "name": "newfold-labs/wp-module-loader", @@ -632,16 +633,16 @@ }, { "name": "newfold-labs/wp-module-patterns", - "version": "2.5.0", + "version": "2.6.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-patterns.git", - "reference": "d5e37c1b9ac7290e117001c40fe33ac2f95af094" + "reference": "df06479f0715d40e4aadfc299e77c9062c9165db" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/d5e37c1b9ac7290e117001c40fe33ac2f95af094", - "reference": "d5e37c1b9ac7290e117001c40fe33ac2f95af094", + "url": "https://api.github.com/repos/newfold-labs/wp-module-patterns/zipball/df06479f0715d40e4aadfc299e77c9062c9165db", + "reference": "df06479f0715d40e4aadfc299e77c9062c9165db", "shasum": "" }, "require": { @@ -680,10 +681,10 @@ ], "description": "WordPress Cloud Patterns", "support": { - "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.5.0", + "source": "https://github.com/newfold-labs/wp-module-patterns/tree/2.6.0", "issues": "https://github.com/newfold-labs/wp-module-patterns/issues" }, - "time": "2024-09-26T18:04:12+00:00" + "time": "2024-10-18T16:33:56+00:00" }, { "name": "newfold-labs/wp-module-performance", @@ -738,16 +739,16 @@ }, { "name": "newfold-labs/wp-module-pls", - "version": "0.1.0", + "version": "1.0.0", "source": { "type": "git", "url": "https://github.com/newfold-labs/wp-module-pls.git", - "reference": "ffa1517c18da067dd830c809f74aee597f05dc17" + "reference": "08b7c41b3d52d66414b6234389d7f4c414477d91" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/newfold-labs/wp-module-pls/zipball/ffa1517c18da067dd830c809f74aee597f05dc17", - "reference": "ffa1517c18da067dd830c809f74aee597f05dc17", + "url": "https://api.github.com/repos/newfold-labs/wp-module-pls/zipball/08b7c41b3d52d66414b6234389d7f4c414477d91", + "reference": "08b7c41b3d52d66414b6234389d7f4c414477d91", "shasum": "" }, "require": { @@ -778,10 +779,10 @@ ], "description": "A Newfold module that handles license key provisioning, validation, and other lifecycle events for registered plugins using the PLS API via Hiive.", "support": { - "source": "https://github.com/newfold-labs/wp-module-pls/tree/0.1.0", + "source": "https://github.com/newfold-labs/wp-module-pls/tree/1.0.0", "issues": "https://github.com/newfold-labs/wp-module-pls/issues" }, - "time": "2024-10-09T08:23:27+00:00" + "time": "2024-10-23T09:11:18+00:00" }, { "name": "newfold-labs/wp-module-survey", @@ -1970,91 +1971,25 @@ ], "time": "2024-09-18T10:38:58+00:00" }, - { - "name": "symfony/deprecation-contracts", - "version": "v2.5.3", - "source": { - "type": "git", - "url": "https://github.com/symfony/deprecation-contracts.git", - "reference": "80d075412b557d41002320b96a096ca65aa2c98d" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/80d075412b557d41002320b96a096ca65aa2c98d", - "reference": "80d075412b557d41002320b96a096ca65aa2c98d", - "shasum": "" - }, - "require": { - "php": ">=7.1" - }, - "type": "library", - "extra": { - "branch-alias": { - "dev-main": "2.5-dev" - }, - "thanks": { - "name": "symfony/contracts", - "url": "https://github.com/symfony/contracts" - } - }, - "autoload": { - "files": [ - "function.php" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "A generic function and convention to trigger deprecation notices", - "homepage": "https://symfony.com", - "support": { - "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.3" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2023-01-24T14:02:46+00:00" - }, { "name": "symfony/finder", - "version": "v5.4.43", + "version": "v7.1.4", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ae25a9145a900764158d439653d5630191155ca0" + "reference": "d95bbf319f7d052082fb7af147e0f835a695e823" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ae25a9145a900764158d439653d5630191155ca0", - "reference": "ae25a9145a900764158d439653d5630191155ca0", + "url": "https://api.github.com/repos/symfony/finder/zipball/d95bbf319f7d052082fb7af147e0f835a695e823", + "reference": "d95bbf319f7d052082fb7af147e0f835a695e823", "shasum": "" }, "require": { - "php": ">=7.2.5", - "symfony/deprecation-contracts": "^2.1|^3", - "symfony/polyfill-php80": "^1.16" + "php": ">=8.2" + }, + "require-dev": { + "symfony/filesystem": "^6.4|^7.0" }, "type": "library", "autoload": { @@ -2082,87 +2017,7 @@ "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", "support": { - "source": "https://github.com/symfony/finder/tree/v5.4.43" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2024-08-13T14:03:51+00:00" - }, - { - "name": "symfony/polyfill-php80", - "version": "v1.31.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "reference": "60328e362d4c2c802a54fcbf04f9d3fb892b4cf8", - "shasum": "" - }, - "require": { - "php": ">=7.2" - }, - "type": "library", - "extra": { - "thanks": { - "name": "symfony/polyfill", - "url": "https://github.com/symfony/polyfill" - } - }, - "autoload": { - "files": [ - "bootstrap.php" - ], - "psr-4": { - "Symfony\\Polyfill\\Php80\\": "" - }, - "classmap": [ - "Resources/stubs" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Ion Bazan", - "email": "ion.bazan@gmail.com" - }, - { - "name": "Nicolas Grekas", - "email": "p@tchwork.com" - }, - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", - "homepage": "https://symfony.com", - "keywords": [ - "compatibility", - "polyfill", - "portable", - "shim" - ], - "support": { - "source": "https://github.com/symfony/polyfill-php80/tree/v1.31.0" + "source": "https://github.com/symfony/finder/tree/v7.1.4" }, "funding": [ { @@ -2178,20 +2033,20 @@ "type": "tidelift" } ], - "time": "2024-09-09T11:45:10+00:00" + "time": "2024-08-13T14:28:19+00:00" }, { "name": "wp-cli/i18n-command", - "version": "v2.6.2", + "version": "v2.6.3", "source": { "type": "git", "url": "https://github.com/wp-cli/i18n-command.git", - "reference": "53518a11f314119e320597c7a8274f11b1295bdc" + "reference": "065bb3758fcbff922f1b7a01ab702aab0da79803" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/53518a11f314119e320597c7a8274f11b1295bdc", - "reference": "53518a11f314119e320597c7a8274f11b1295bdc", + "url": "https://api.github.com/repos/wp-cli/i18n-command/zipball/065bb3758fcbff922f1b7a01ab702aab0da79803", + "reference": "065bb3758fcbff922f1b7a01ab702aab0da79803", "shasum": "" }, "require": { @@ -2245,9 +2100,9 @@ "homepage": "https://github.com/wp-cli/i18n-command", "support": { "issues": "https://github.com/wp-cli/i18n-command/issues", - "source": "https://github.com/wp-cli/i18n-command/tree/v2.6.2" + "source": "https://github.com/wp-cli/i18n-command/tree/v2.6.3" }, - "time": "2024-07-03T12:50:00+00:00" + "time": "2024-10-01T11:16:25+00:00" }, { "name": "wp-cli/mustangostang-spyc", @@ -2502,12 +2357,10 @@ ], "aliases": [], "minimum-stability": "stable", - "stability-flags": { - "newfold-labs/wp-module-installer": 10 - }, + "stability-flags": {}, "prefer-stable": false, "prefer-lowest": false, - "platform": [], - "platform-dev": [], + "platform": {}, + "platform-dev": {}, "plugin-api-version": "2.6.0" }