From 5175c095b764b93cbbcf4c3dedd0e9ba978ca9d6 Mon Sep 17 00:00:00 2001 From: Jared Vititoe Date: Fri, 24 Jul 2026 19:59:50 -0400 Subject: [PATCH] fix(notifications): flag inactive quiet-hours when a time field is empty MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Clearing the quiet-hours start or end time silently deactivated the window (isWithinTimeWindow → parseHHMM('') is null → returns false) while the toggle still read "on", with no indication. Added an inline Critical-colored hint — "Set both a start and end time — quiet hours stay inactive until both are filled in" — shown when the toggle is on but either field is empty. Non-destructive: it explains why rather than guessing a default time. Copy verified against isWithinTimeWindow. Last pure-client bug-hunt finding from LOTUS_TODO (the rest are live-call / desktop-gated). Gate-green (tsc, eslint, prettier, build). Co-Authored-By: Claude Opus 4.8 --- .../features/settings/notifications/SystemNotification.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/features/settings/notifications/SystemNotification.tsx b/src/app/features/settings/notifications/SystemNotification.tsx index 7aafe1db4..894047e46 100644 --- a/src/app/features/settings/notifications/SystemNotification.tsx +++ b/src/app/features/settings/notifications/SystemNotification.tsx @@ -381,6 +381,11 @@ export function SystemNotification() { style={selectStyle} /> + {(!quietHoursStart || !quietHoursEnd) && ( + + Set both a start and end time — quiet hours stay inactive until both are filled in. + + )} )}