Skip to content

feat(experiments): wizard UX improvements#7978

Open
Zaimwa9 wants to merge 4 commits into
mainfrom
feat/experiment-wizard-defaults
Open

feat(experiments): wizard UX improvements#7978
Zaimwa9 wants to merge 4 commits into
mainfrom
feat/experiment-wizard-defaults

Conversation

@Zaimwa9

@Zaimwa9 Zaimwa9 commented Jul 10, 2026

Copy link
Copy Markdown
Contributor
  • I have read the Contributing Guide.
  • I have added information to docs/ if required so people know about the feature.
  • I have filled in the "Changes" section below.
  • I have filled in the "How did you test this code" section below.

Changes

Experiment creation wizard UX improvements:

  • Default variant split to even distribution instead of inheriting current feature weights
  • "Users enrolled" card now prefers results total over exposures total (falls back to exposures when results aren't computed yet)
  • Merged the two separate refresh buttons (results + exposures) into a single "Refresh" button that fires both in parallel
  • Throttle message changed from "Computing… retry in X" to "Refresh available in X"

How did you test this code?

  • Unit tests pass (resultsViewState, exposuresViewState)
  • Typecheck clean
  • Lint clean

@Zaimwa9 Zaimwa9 requested a review from a team as a code owner July 10, 2026 08:24
@Zaimwa9 Zaimwa9 requested review from kyle-ssg and removed request for a team July 10, 2026 08:24
@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
flagsmith-frontend-preview Ready Ready Preview, Comment Jul 10, 2026 8:56am
flagsmith-frontend-staging Ready Ready Preview, Comment Jul 10, 2026 8:56am
1 Skipped Deployment
Project Deployment Actions Updated (UTC)
docs Ignored Ignored Preview Jul 10, 2026 8:56am

Request Review

@github-actions github-actions Bot added the front-end Issue related to the React Front End Dashboard label Jul 10, 2026
@coderabbitai

coderabbitai Bot commented Jul 10, 2026

Copy link
Copy Markdown

Review Change Stack

Note

Currently processing new changes in this PR. This may take a few minutes, please wait...

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 7713a23c-cf41-437a-9857-84436471c39f

📥 Commits

Reviewing files that changed from the base of the PR and between 9606f17 and c46d59f.

📒 Files selected for processing (3)
  • frontend/web/components/experiments/results/ExperimentExposuresPanel.tsx
  • frontend/web/components/experiments/results/ExperimentResultsRefreshControl.tsx
  • frontend/web/components/pages/ExperimentDetailPage.tsx
📝 Walkthrough

Walkthrough

The experiment wizard now derives multivariate variation splits from the selected feature. Exposure computation uses query and mutation state without local polling. The results refresh control refreshes Bayesian results and exposures together, tracking both view states and retry responses. Refresh countdown labels now state when refresh is available. Experiment detail enrolment totals can now be derived from Bayesian results before exposures.

Estimated code review effort: 4 (Complex) | ~45 minutes


Comment @coderabbitai help to get the list of available commands.

@github-actions github-actions Bot added the feature New feature or request label Jul 10, 2026
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Docker builds report

Image Build Status Security report
ghcr.io/flagsmith/flagsmith-api-test:pr-7978 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-e2e:pr-7978 Finished ✅ Skipped
ghcr.io/flagsmith/flagsmith-api:pr-7978 Finished ✅ Results
ghcr.io/flagsmith/flagsmith:pr-7978 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-private-cloud:pr-7978 Finished ✅ Results
ghcr.io/flagsmith/flagsmith-frontend:pr-7978 Finished ✅ Results

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 4


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: 44fb1af6-7e29-4fb4-8533-4a44f93d612f

📥 Commits

Reviewing files that changed from the base of the PR and between a7b0d21 and 9606f17.

📒 Files selected for processing (9)
  • frontend/web/components/experiments/CreateExperimentWizard.tsx
  • frontend/web/components/experiments/results/ExperimentExposuresPanel.tsx
  • frontend/web/components/experiments/results/ExperimentResultsRefreshControl.tsx
  • frontend/web/components/experiments/results/__tests__/exposuresViewState.test.ts
  • frontend/web/components/experiments/results/__tests__/resultsViewState.test.ts
  • frontend/web/components/experiments/results/derive.ts
  • frontend/web/components/experiments/results/exposuresViewState.ts
  • frontend/web/components/experiments/results/resultsViewState.ts
  • frontend/web/components/pages/ExperimentDetailPage.tsx

Comment thread frontend/web/components/pages/ExperimentDetailPage.tsx Outdated
@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  42 seconds
commit  9606f17
info  🔄 Run: #18152 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  45.7 seconds
commit  9606f17
info  🔄 Run: #18152 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  5 passed

Details

stats  5 tests across 5 suites
duration  36.5 seconds
commit  9606f17
info  🔄 Run: #18152 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  46.9 seconds
commit  9606f17
info  🔄 Run: #18152 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-arm-16)

passed  4 passed

Details

stats  4 tests across 3 suites
duration  19.2 seconds
commit  c46d59f
info  🔄 Run: #18153 (attempt 1)

Playwright Test Results (oss - depot-ubuntu-latest-16)

passed  3 passed

Details

stats  3 tests across 2 suites
duration  11.6 seconds
commit  c46d59f
info  🔄 Run: #18153 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)

passed  2 passed

Details

stats  2 tests across 2 suites
duration  19.5 seconds
commit  c46d59f
info  🔄 Run: #18153 (attempt 1)

Playwright Test Results (private-cloud - depot-ubuntu-latest-16)

passed  1 passed

Details

stats  1 test across 1 suite
duration  17 seconds
commit  c46d59f
info  🔄 Run: #18153 (attempt 1)

@github-actions

github-actions Bot commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

Visual Regression

19 screenshots compared. See report for details.
View full report

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request front-end Issue related to the React Front End Dashboard

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants