fix: restore break status after account confirmation
All checks were successful
CI / lint (pull_request) Successful in 3m32s
CI / build-release (pull_request) Successful in 10s
CI / browser-journey (pull_request) Successful in 4m9s
CI / release-candidate (pull_request) Has been skipped

This commit is contained in:
timmy 2026-08-20 02:48:56 +00:00
parent cf94624aa9
commit bdf1ddaada
2 changed files with 9 additions and 0 deletions

View File

@ -5409,6 +5409,7 @@
activeFlushLogin = contextIdentityFresh ? String(snapshot.context.user?.login || '').trim() : '';
if (activeFlushLogin) {
confirmedOwnerLogin = activeFlushLogin;
timerView.render();
restoreReleaseReceipt();
updateDeliveryReceiptControls();
interruptionPrompt.restore();

View File

@ -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()