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

A/B test for AI Site Generation #68

Merged
merged 3 commits into from
Apr 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
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
Loading