fix: experiment results polish - #8166
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
📝 WalkthroughWalkthroughExperiment result derivation now calculates control win probability separately, selects winners using treatment and control probabilities, and exposes revised lift summary fields. Scorecards consume these values for control and treatment rows, while summary cards use formatted winner, chance, and lift displays. Variant names, stat markup, chart labels, metric typography, track colours, and responsive lift visibility were also updated. Estimated code review effort: 4 (Complex) | ~45 minutes Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@themis-blindfold review |
Docker builds report
|
⚖️ Themis review: ✅ Ship itClean visual polish across the experiment results page. The refactoring of
📝 Walkthrough
🧪 How to verify
Product take: Solid UX polish for experiment results — the "control wins" scenario now gives users an actionable number (how much control leads by) instead of a blank baseline, and inferred control win probability fills a visible data gap. This is a meaningful clarity improvement for anyone interpreting experiment outcomes, though it doesn't unlock new capability. 🧭 Assumptions & unverified claimsNo unverified assumptions or claims. The experiment results just got a full spa day — polished, aligned, and ready for their close-up. · reviewed at da4ff38 |
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #18987 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
🗂️ Previous results✅ private-cloud · depot-ubuntu-latest-16 — run #18987 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-16 — run #18987 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18987 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #18897 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
✅ private-cloud · depot-ubuntu-latest-16 — run #18897 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18897 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ oss · depot-ubuntu-latest-16 — run #18897 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-16)Details
✅ oss · depot-ubuntu-latest-arm-16 — run #18890 (attempt 2)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
✅ private-cloud · depot-ubuntu-latest-arm-16 — run #18890 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-arm-16)Details
✅ private-cloud · depot-ubuntu-latest-16 — run #18890 (attempt 1)Playwright Test Results (private-cloud - depot-ubuntu-latest-16)Details
❌ oss · depot-ubuntu-latest-arm-16 — run #18890 (attempt 1)Playwright Test Results (oss - depot-ubuntu-latest-arm-16)Details
Failed testsfirefox › tests/segment-test.pw.ts › Segment test 1 - Create, update, and manage segments with multivariate flags @oss |
There was a problem hiding this comment.
Actionable comments posted: 3
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 6d30ae96-6c47-4e21-9eff-3dfe0d7315e6
📒 Files selected for processing (10)
frontend/web/components/experiments/results/ExperimentDetailHeader.tsxfrontend/web/components/experiments/results/ExperimentRecommendation.tsxfrontend/web/components/experiments/results/ExperimentResultsAxisChart.tsxfrontend/web/components/experiments/results/ExperimentResultsScorecardTable.tsxfrontend/web/components/experiments/results/ExperimentSummaryScorecard.tsxfrontend/web/components/experiments/results/StatCard.tsxfrontend/web/components/experiments/results/VariantName.tsxfrontend/web/components/experiments/results/__tests__/derive.test.tsfrontend/web/components/experiments/results/derive.tsfrontend/web/components/experiments/results/results.scss
Visual Regression19 screenshots compared. See report for details. |
There was a problem hiding this comment.
Actionable comments posted: 1
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: 46ac368a-d860-44f1-9fc9-c21d36d9881c
📒 Files selected for processing (2)
frontend/web/components/experiments/results/__tests__/derive.test.tsfrontend/web/components/experiments/results/derive.ts
There was a problem hiding this comment.
Actionable comments posted: 1
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (1)
frontend/web/components/experiments/results/results.scss (1)
200-203: 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick winConstrain the label width for ellipsis to work.
Line 200 only hides overflow; without a width or
max-width, the inline-flex label retains its intrinsic width and long variant names will still not truncate. Define the available label width and addmin-width: 0if this text node is a flex item.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: a799db9e-63ae-4c28-b06a-f47056cc969d
📒 Files selected for processing (3)
frontend/web/components/experiments/results/ExperimentSummaryScorecard.tsxfrontend/web/components/experiments/results/VariantName.tsxfrontend/web/components/experiments/results/results.scss
talissoncosta
left a comment
There was a problem hiding this comment.
Looks good, just some suggestions.
talissoncosta
left a comment
There was a problem hiding this comment.
Much cleaner, comments addressed. Just the hook location nit.
- Move useFitText alongside the rest of the hooks in common/hooks. - Floor the axis row label's max-width so an interval starting near the axis edge ellipsises the variant name instead of collapsing it. - Let the label text shrink below its intrinsic width so the ellipsis applies. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
@talissoncosta I've resolved these |
Thanks for submitting a PR! Please check the boxes below:
docs/if required so people know about the feature.Changes
UI/UX fixes for the experiment results page:
VariantNametakes afontSizeprop and vertically centres its swatch without disturbing the text baseline.How did you test this code?
Manually.
Swatch + variant alignment

Increased text + ellipsis + reduced Delta column width + winning control version
