From a5a74da7ef5c561dc695ee9ee108928b2a07f786 Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 3 Oct 2026 22:11:24 +0000 Subject: [PATCH] Timer: the finish and discard questions were missing from the open-session screen, so Finish did nothing there Co-Authored-By: Claude Sonnet 5.5 Claude-Session: https://claude.ai/code/session_015nrcxXata36VX6BEcq78G6 --- app/timer/page.tsx | 59 ++++++++++++++++++++++++++-------------------- 1 file changed, 34 insertions(+), 25 deletions(-) diff --git a/app/timer/page.tsx b/app/timer/page.tsx index 139ed38..7021cec 100644 --- a/app/timer/page.tsx +++ b/app/timer/page.tsx @@ -857,6 +857,38 @@ export default function TimerPage() { ); + /* Finish and Discard ask through these. Both layouts (the block screen and + the night one) render them, since both carry the buttons. */ + const confirmSheets = ( + <> + setAsking(null)} + onConfirm={() => { + setAsking(null); + handleStop(); + }} + /> + setAsking(null)} + onConfirm={() => { + setAsking(null); + cancel(); + router.replace('/dashboard'); + }} + /> + + ); + /* Open mode goes to the night paper and lets the fan fill the whole screen. It is the one place in the app that inverts, and it does it because a long sitting in a dark room is what the mode is for. */ @@ -1035,6 +1067,7 @@ export default function TimerPage() {
{controls}
+ {confirmSheets} {pictureSheet} @@ -1230,31 +1263,7 @@ export default function TimerPage() {

- setAsking(null)} - onConfirm={() => { - setAsking(null); - handleStop(); - }} - /> - setAsking(null)} - onConfirm={() => { - setAsking(null); - cancel(); - router.replace('/dashboard'); - }} - /> + {confirmSheets} {pictureSheet}