diff --git a/components/ExperimentsView.tsx b/components/ExperimentsView.tsx index 409338f..f197a48 100644 --- a/components/ExperimentsView.tsx +++ b/components/ExperimentsView.tsx @@ -474,6 +474,244 @@ const ExperimentDetailView: React.FC<{ ); } + if (experiment.verdict && primaryResult && 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; + + return ( +
| KPI Metric | +Control (A) | +Treatment (B) | +Impact Delta | +
|---|---|---|---|
| {METRIC_LABELS[metric] || metric} | +{formatMetricValue(res.control_after, metric)} | +{formatMetricValue(res.treatment_after, metric)} | ++ + {res.lift_percent >= 0 ? '+' : ''}{res.lift_percent.toFixed(1)}% + | +
+ {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. +
+