From 18c43f56c3aef3a24cf3a39dfbf380b446369a42 Mon Sep 17 00:00:00 2001 From: wadii Date: Fri, 10 Jul 2026 13:04:49 +0200 Subject: [PATCH 1/3] feat(experiments): add unique analytics IDs to experiment wizard buttons --- .../MetricSelectList/MetricSelectList.tsx | 11 ++++++++-- .../experiments/WizardNavButtons.tsx | 21 ++++++++++++++++--- .../experiments/steps/ReviewStep.tsx | 21 ++++++++++++++++--- .../experiments/steps/RolloutStep.tsx | 1 + 4 files changed, 46 insertions(+), 8 deletions(-) diff --git a/frontend/web/components/experiments/MetricSelectList/MetricSelectList.tsx b/frontend/web/components/experiments/MetricSelectList/MetricSelectList.tsx index abebcde51f3d..0c3133ff9cdc 100644 --- a/frontend/web/components/experiments/MetricSelectList/MetricSelectList.tsx +++ b/frontend/web/components/experiments/MetricSelectList/MetricSelectList.tsx @@ -62,7 +62,10 @@ const MetricSelectList: FC = ({ description='Create your first metric to measure experiment outcomes.' icon='bar-chart' action={ - @@ -85,7 +88,11 @@ const MetricSelectList: FC = ({ size='small' /> - diff --git a/frontend/web/components/experiments/WizardNavButtons.tsx b/frontend/web/components/experiments/WizardNavButtons.tsx index c81b571dee62..f2f8a634a2e0 100644 --- a/frontend/web/components/experiments/WizardNavButtons.tsx +++ b/frontend/web/components/experiments/WizardNavButtons.tsx @@ -2,6 +2,8 @@ import { FC } from 'react' import Button from 'components/base/forms/Button' import Icon from 'components/icons/Icon' +const STEP_SLUGS = ['setup', 'rollout', 'measurement', 'review'] as const + type WizardNavButtonsProps = { currentStep: number totalSteps: number @@ -22,22 +24,35 @@ const WizardNavButtons: FC = ({ totalSteps, }) => { const isLastStep = currentStep === totalSteps - 1 + const stepSlug = STEP_SLUGS[currentStep] ?? currentStep return (
{currentStep > 0 && ( - )} {isLastStep ? ( - ) : ( - )} diff --git a/frontend/web/components/experiments/steps/ReviewStep.tsx b/frontend/web/components/experiments/steps/ReviewStep.tsx index e03a5c3693d8..48d47b0473cb 100644 --- a/frontend/web/components/experiments/steps/ReviewStep.tsx +++ b/frontend/web/components/experiments/steps/ReviewStep.tsx @@ -42,7 +42,12 @@ const ReviewStep: FC = ({ background='white' title='Setup' action={ - } @@ -81,7 +86,12 @@ const ReviewStep: FC = ({ background='white' title='Rollout' action={ - } @@ -99,7 +109,12 @@ const ReviewStep: FC = ({ background='white' title={selectedMetric ? 'Measurement (1 metric)' : 'Measurement'} action={ - } diff --git a/frontend/web/components/experiments/steps/RolloutStep.tsx b/frontend/web/components/experiments/steps/RolloutStep.tsx index 1fa34594c942..ed37fa29d3f8 100644 --- a/frontend/web/components/experiments/steps/RolloutStep.tsx +++ b/frontend/web/components/experiments/steps/RolloutStep.tsx @@ -51,6 +51,7 @@ const RolloutStep: FC = ({ description='Distribute sampled identities across control and treatment variations. Control takes one of the slots; weights must sum to 100.' action={
- @@ -261,7 +264,10 @@ const MetricsPage: FC = () => { search />
- From cb05e104dfbe795f3aee27beb59af463a6a0b41a Mon Sep 17 00:00:00 2001 From: wadii Date: Fri, 10 Jul 2026 13:05:08 +0200 Subject: [PATCH 3/3] feat(warehouse): add unique analytics IDs to warehouse setup buttons --- .../tabs/warehouse-tab/ConfigForm.tsx | 9 ++++++++- .../tabs/warehouse-tab/WarehouseConnectionCard.tsx | 10 +++++++++- .../tabs/warehouse-tab/WarehouseSetup.tsx | 1 + 3 files changed, 18 insertions(+), 2 deletions(-) diff --git a/frontend/web/components/pages/environment-settings/tabs/warehouse-tab/ConfigForm.tsx b/frontend/web/components/pages/environment-settings/tabs/warehouse-tab/ConfigForm.tsx index 03f5ceb7be30..493d7863f346 100644 --- a/frontend/web/components/pages/environment-settings/tabs/warehouse-tab/ConfigForm.tsx +++ b/frontend/web/components/pages/environment-settings/tabs/warehouse-tab/ConfigForm.tsx @@ -185,10 +185,17 @@ const ConfigForm: FC = ({ )}
- )} )} {isFlagsmith && !isPending && !isConnected && (