From e607d59dd41495ea2b505d5257715d0cdcc83242 Mon Sep 17 00:00:00 2001 From: auerbachb Date: Sat, 18 Apr 2026 17:47:02 -0400 Subject: [PATCH] fix(completion): derive tomorrow preview from progression day Use day-based progression math for the completion tomorrow line so buddy sessions and any non-canonical completed durations still show the viewer's correct next sit duration. Made-with: Cursor --- src/components/CompletionScreen.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/components/CompletionScreen.tsx b/src/components/CompletionScreen.tsx index bbc005e4..8e1e6424 100644 --- a/src/components/CompletionScreen.tsx +++ b/src/components/CompletionScreen.tsx @@ -15,7 +15,7 @@ type CompletionScreenProps = { export function CompletionScreen({ dayNumber, - duration, + duration: completedDuration, clearPercent, thoughtCount, thoughts, @@ -26,7 +26,8 @@ export function CompletionScreen({ const [noteSaved, setNoteSaved] = useState(false); const [saving, setSaving] = useState(false); const [saveError, setSaveError] = useState(false); - const nextDuration = duration + INCREMENT; + // Progression is based on the user's completed day, not the just-finished sit length. + const nextDuration = BASE_DURATION + dayNumber * INCREMENT; const nextBlocks = Math.ceil(nextDuration / BLOCK_DURATION); return ( @@ -49,7 +50,7 @@ export function CompletionScreen({ fontSize: "13px", color: "var(--accent-green-text)", marginTop: "var(--s2)", letterSpacing: "0.07em", }}> - {duration} seconds of sustained attention + {completedDuration} seconds of sustained attention