From bdf1ddaada7af348e9dd39925779b8f2dae2ca6f Mon Sep 17 00:00:00 2001 From: timmy Date: Thu, 20 Aug 2026 02:48:56 +0000 Subject: [PATCH] fix: restore break status after account confirmation --- frontend/dashboard.js | 1 + tests/test_today_break.py | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/frontend/dashboard.js b/frontend/dashboard.js index ef2db89..90c5712 100644 --- a/frontend/dashboard.js +++ b/frontend/dashboard.js @@ -5409,6 +5409,7 @@ activeFlushLogin = contextIdentityFresh ? String(snapshot.context.user?.login || '').trim() : ''; if (activeFlushLogin) { confirmedOwnerLogin = activeFlushLogin; + timerView.render(); restoreReleaseReceipt(); updateDeliveryReceiptControls(); interruptionPrompt.restore(); diff --git a/tests/test_today_break.py b/tests/test_today_break.py index d08a88c..df0e49c 100644 --- a/tests/test_today_break.py +++ b/tests/test_today_break.py @@ -185,6 +185,14 @@ process.stdout.write(JSON.stringify({{opened,cancelled,started,expired,final:{{c } +def test_confirming_the_account_renders_a_persisted_break_immediately(): + dashboard = (ROOT / "frontend" / "dashboard.js").read_text() + confirmation = dashboard.split("if (activeFlushLogin) {", 1)[1].split("}", 1)[0] + + assert "confirmedOwnerLogin = activeFlushLogin;" in confirmation + assert "timerView.render();" in confirmation + + def test_timed_break_is_packaged_as_an_accessible_mobile_flow(): html = (ROOT / "frontend" / "index.html").read_text() css = (ROOT / "frontend" / "dashboard.css").read_text()