From bd93bb8afcf78fbfd1a539d96f676a3641102370 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 3 Apr 2024 19:11:01 +0530 Subject: [PATCH 1/3] adding `theForkExperimentVersion` key to Flows --- includes/Flows/Flows.php | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/includes/Flows/Flows.php b/includes/Flows/Flows.php index 979cd6b..f946ee4 100644 --- a/includes/Flows/Flows.php +++ b/includes/Flows/Flows.php @@ -137,7 +137,8 @@ final class Flows { ), 'sitegen' => array( - 'siteDetails' => array( + 'theForkExperimentVersion' => 0, + 'siteDetails' => array( 'name' => '', 'type' => '', 'style' => '', @@ -145,27 +146,27 @@ final class Flows { 'uniqueAboutBusiness' => '', 'mode' => 'simple', ), - 'siteLogo' => array( + 'siteLogo' => array( 'id' => 0, 'url' => '', 'fileName' => '', 'fileSize' => 0, ), - 'experience' => array( + 'experience' => array( 'level' => 0, ), - 'siteGenMetaStatus' => array( + 'siteGenMetaStatus' => array( 'currentStatus' => 0, 'totalCount' => 9, ), - 'homepages' => array( + 'homepages' => array( 'active' => array(), 'data' => array(), ), - 'skipCache' => true, - 'sitemapPagesGenerated' => false, - 'customDesign' => false, - 'siteGenErrorStatus' => false, + 'skipCache' => true, + 'sitemapPagesGenerated' => false, + 'customDesign' => false, + 'siteGenErrorStatus' => false, ), 'continueWithoutAi' => false, From c24339bc3f97635cfe342ff9bd5ed1348d11d2f2 Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Wed, 3 Apr 2024 19:15:08 +0530 Subject: [PATCH 2/3] Enabled the fork experiment event --- includes/Events.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Events.php b/includes/Events.php index 26589c5..9989652 100644 --- a/includes/Events.php +++ b/includes/Events.php @@ -54,6 +54,7 @@ final class Events { 'logo_skipped' => true, 'site_generation_time' => true, 'error_state_triggered' => true, + 'exp_fork_ai' => true, ); /** From 05dfa995dc8514ae3a552494e75317e2d990d74a Mon Sep 17 00:00:00 2001 From: Allen Benny Date: Fri, 5 Apr 2024 11:55:00 +0530 Subject: [PATCH 3/3] Add an event category for 'experiment' --- includes/Events.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/includes/Events.php b/includes/Events.php index 9989652..9d60594 100644 --- a/includes/Events.php +++ b/includes/Events.php @@ -6,11 +6,11 @@ */ final class Events { /** - * The category of an event. + * The Array of categories in an event. * - * @var string + * @var array */ - protected static $category = 'wonder_start'; + protected static $category = array( 'wonder_start', 'experiment' ); /** * List of valid actions that an event can perform. @@ -67,9 +67,9 @@ public static function get_valid_actions() { } /** - * Valid category of on event. + * Valid categories of on event. * - * @return string + * @return array */ public static function get_category() { return self::$category;