Skip to content

Commit

Permalink
Merge pull request #68 from newfold-labs/feature/ab-test-for-AI-Sitge…
Browse files Browse the repository at this point in the history
…neration

A/B test for AI Site Generation
  • Loading branch information
arunshenoy99 authored Apr 8, 2024
2 parents d686051 + 05dfa99 commit c0734b7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 14 deletions.
11 changes: 6 additions & 5 deletions includes/Events.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -54,6 +54,7 @@ final class Events {
'logo_skipped' => true,
'site_generation_time' => true,
'error_state_triggered' => true,
'exp_fork_ai' => true,
);

/**
Expand All @@ -66,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;
Expand Down
19 changes: 10 additions & 9 deletions includes/Flows/Flows.php
Original file line number Diff line number Diff line change
Expand Up @@ -137,35 +137,36 @@ final class Flows {
),

'sitegen' => array(
'siteDetails' => array(
'theForkExperimentVersion' => 0,
'siteDetails' => array(
'name' => '',
'type' => '',
'style' => '',
'prompt' => '',
'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,
Expand Down

0 comments on commit c0734b7

Please sign in to comment.