diff --git a/components/ExperimentsView.tsx b/components/ExperimentsView.tsx index 884d270..a9a623c 100644 --- a/components/ExperimentsView.tsx +++ b/components/ExperimentsView.tsx @@ -474,79 +474,99 @@ const ExperimentDetailView: React.FC<{ ); } - if (experiment.verdict || didResults) { - const prob = Math.round((experiment.verdict_probability || 0) * 100); - const radius = 60; - const circumference = 2 * Math.PI * radius; - const offset = circumference - (prob / 100) * circumference; + const prob = Math.round((experiment.verdict_probability || 0) * 100); + const radius = 60; + const circumference = 2 * Math.PI * radius; + const offset = circumference - (prob / 100) * circumference; - return ( -
| KPI Metric | -Control (A) | -Treatment (B) | -Impact Delta | -
|---|
| KPI Metric | +Control (A) | +Treatment (B) | +Impact Delta | +|||
|---|---|---|---|---|---|---|
| @@ -555,563 +575,187 @@ const ExperimentDetailView: React.FC<{ PRIMARY )} | -{formatMetricValue(res.treatment_before, metric)} | -{formatMetricValue(res.treatment_after, metric)} | -
-
-
-
- {res.lift_percent >= 0 ? '+' : ''}{res.lift_percent.toFixed(1)}%
-
-
- DiD: {res.did_estimate >= 0 ? '+' : ''}{formatMetricValue(res.did_estimate, metric)}
-
-
- |
+ — | +— | +— |
- {experiment.changes[0]?.before_value || 'Original content based on baseline metrics.'} -
-- {experiment.changes[0]?.after_value || 'New optimized content tested in this experiment.'} -
-- Results are normalized against the Pre-test Baseline to account for category seasonality. -
-- Focus on high-velocity benefit descriptors in Treatment B. -
-{experiment.description}
- )} -- {experiment.hypothesis || 'No hypothesis defined'} -
-{c.before_value}
-
- {c.after_value}
- + {experiment.changes[0]?.before_value || 'Original content based on baseline metrics.'} +
++ {experiment.changes[0]?.after_value || 'New optimized content tested in this experiment.'} +
+| Metric | -Treatment Before | -Treatment After | -Control Before | -Control After | -DiD Effect | -Lift | -
|---|---|---|---|---|---|---|
| {METRIC_LABELS[metric] || metric} | -{formatMetricValue(r.treatment_before, metric)} | -{formatMetricValue(r.treatment_after, metric)} | -{typeof r.control_before === 'number' ? formatMetricValue(r.control_before, metric) : '—'} | -{typeof r.control_after === 'number' ? formatMetricValue(r.control_after, metric) : '—'} | -= 0 ? 'text-emerald-400' : 'text-red-400'}`}> - {r.did_estimate >= 0 ? '+' : ''}{formatMetricValue(r.did_estimate, metric)} - | -= 0 ? 'text-emerald-400' : 'text-red-400'}`}> - {r.lift_percent >= 0 ? '+' : ''}{r.lift_percent}% - | -
{experiment.learnings}
- ) : ( -Click to add learnings...
- )} ++ Results are normalized against the Pre-test Baseline to account for category seasonality. +
++ Focus on high-velocity benefit descriptors in Treatment B. +
+