diff --git a/components/ExperimentsView.tsx b/components/ExperimentsView.tsx index e7e1c13..8ab9d59 100644 --- a/components/ExperimentsView.tsx +++ b/components/ExperimentsView.tsx @@ -474,10 +474,13 @@ const ExperimentDetailView: React.FC<{ ); } - const prob = Math.round((experiment.verdict_probability || 0) * 100); + const probRaw = (experiment.verdict_probability || 0) * 100; + const probDisplay = Number.isInteger(Math.round(probRaw * 10) / 10) + ? probRaw.toFixed(0) + : probRaw.toFixed(1); const radius = 60; const circumference = 2 * Math.PI * radius; - const offset = circumference - (prob / 100) * circumference; + const offset = circumference - (probRaw / 100) * circumference; return (
@@ -657,15 +660,27 @@ const ExperimentDetailView: React.FC<{ />
- {prob}% + {probDisplay}%
- - - Significant Confidence Reached - + {experiment.verdict === 'winner' ? ( + + + Significant Confidence Reached + + ) : experiment.verdict === 'loser' ? ( + + + Negative Effect Confirmed + + ) : ( + + + Inconclusive — More Data Needed + + )}
{/* Estimated Annual Impact */}