Repository navigation
Conversation
a92e385 to
9489d3d
Compare
kalvinnchau
left a comment
There was a problem hiding this comment.
🤖 One correctness finding in custom snooze prefill.
Address review on PR #3065: - In America/Los_Angeles, a reminder due at 2027-11-07 01:30 PST (1825579800) opened Custom… as 2027-11-07 / 01:30, and Save with no edits published 01:30 PDT (1825576200), one hour earlier, with no notice. Local date and time values cannot say which pass through a repeated hour they mean, and Date reads them as the first. SnoozeDialog now saves through parseCustomOrDue (model.ts): values that still show the due time keep that time, anything else is parsed as before. Of the two remedies offered, this is the one that preserves the instant. - The dialog remembers the due time it opened on. Its fields do not follow a reminder that another device moves while it is open, so the live due time would no longer match what they show. - Validation is unchanged: Save's enabled state and the notices still come from the parsed values. Those are never later than the kept time, so a kept time is always still ahead. Between the two passes the prefill would read as past, so the dialog starts from the next 9am, as it already did. - An untouched save also keeps the seconds of a due time that is not on a minute boundary, such as one from "In 30 minutes", instead of rounding it down to the minute. The create dialog is not changed. Tests: a SnoozeDialog test in America/Los_Angeles with a faked clock saves 1825579800 for the second pass and 1825576200 for the first when nothing is edited, reads an edited 01:45 as the first pass, keeps the due time when an edit is undone or the reminder is moved elsewhere meanwhile, and starts from the next 9am between the two passes. It fails without the fix (saves 1825576200), and its moved-reminder step fails if the live due time is used. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
wesbillman
left a comment
There was a problem hiding this comment.
🤖 Star Lord automated source review via Wes’s account.
Focused follow-up at 3c480e7ab5761cf020816e46f7ebbb767f546ca6, target 41a7c8a165e3d60301b219b0ae8dabe7afd84e92 (actual merge-base 3a1eb5601e997811009d01601786df8af9393a7f), comparing the repair with 9489d3d60c87048b441ca22476b50a590af0e662 and retaining the unchanged split feature’s earlier coverage.
No new actionable findings in the repair. The source addresses the reported repeated-hour P2: unchanged fields retain the opening due instant, including the second occurrence; edited fields retain the existing local-time parsing behavior. The added regression checks both occurrences, edits/restoration, remote due changes and the fallback between occurrences. The existing conservative validation still rejects values once their first local-time occurrence is past; this review does not claim that limitation has changed.
Independent Rocket, Mantis and Groot lanes plus Star Lord integration covered parsing/callers, correctness/cancellation, and dialog/test fidelity. The public description and all three historical screenshots were inspected. The target is ahead of the actual merge-base; merged-tree behavior remains unverified.
Source-only: no tests, typecheck, builds, app or browser/native workflows were run. Existing author/reviewer execution claims and historical screenshots are not validation of this repair by this review. This is a COMMENT review, not approval.
0a8a7be to
565c27a
Compare
…the due time Split out of PR #2507 following tellaho's review: the launch UI freeze allows contained fixes without new surfaces or options, so this branch keeps only those repairs. The Snooze / Remind me again → Custom… dialog moves to broken-8-custom-snooze, stacked on this branch. - Grouped messages now show their "Reminder set" mark. MessageRow renders action markers inside the visible byline on leading rows, as before. Grouped rows have only a screen-reader byline, so they render the markers once, in a select-none caption line after it, which `.marks:empty` hides while every marker renders nothing. docs/plugin-architecture.md describes the placement. - Remind me is no longer offered on a message the relay never stored. `matches` uses the same delivery check as Reply, Report and Start Solo chat (no delivery, accepted or seen), so failed, sending and unknown rows have no menu entry and no mark. - The mark names the earliest pending due time ("Reminder set for …") in its label. model.ts derives pendingMessageDue in place of pendingMessageIds. The mark is a plain labelled image: no Tooltip and no title, which would repeat the label as a description. - Setting a reminder confirms with a "Reminder set for …" toast. - docs/buzz-help.md gains a Reminders entry. Tests: index.test.ts covers the delivery gate and the mark's label; model.test.ts covers pendingMessageDue; MessageRow.test.tsx covers the grouped-row mark and the hidden empty line; RemindDialog.test.tsx covers the toast. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
Remind me's Custom date & time started at today 09:00, so after 9 am it opened on "Choose a date and time in the future." with Set reminder disabled. It now starts at the next 9am: today's until it passes, then tomorrow's. model.ts exports nextDayAt9am and a customInputs helper that turns a time into date and time field values; RemindDialog's defaultCustomInputs builds on them. Split out of PR #2507 following tellaho's review, as a repair to the existing create form. The Custom… snooze dialog that shares this default lives on broken-8-custom-snooze. Tests: a RemindDialog test fakes Date at 08:30, 09:00 and 17:45, picks Custom date & time, expects the next 9am with no status message and Set reminder enabled, and checks the saved time. It fails without the fix. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
Split out of PR #2507 following tellaho's review: the launch UI freeze allows contained fixes without new surfaces or options, and this adds both to a bundled plugin, so it lands separately, stacked on broken-8. - The Snooze / Remind me again menu ends with Custom…, which opens a compact dialog using the date and time fields and validation now extracted from RemindDialog as CustomTimeFields. Saving calls snooze(id, at). A failed save keeps the entry and shows an inline error. - Custom… belongs to ReminderSections instead of the row. A save, the page clock or another device can move a reminder to another group, which mounts a new row. The open dialog, its typed date and time, and any save error survive that move. On close, focus goes to the reminder's trigger in the row that now shows it, skipping rows still leaving their old group; if the reminder left the page, to the list. - The dialog starts at the reminder's current due time while that minute is still ahead (model.ts dueInputs), otherwise at the next 9am, so an Overdue or Done reminder never opens on a past time. - docs/buzz-help.md mentions Custom… in the Reminders entry. Tests: RemindersPage tests snooze through Custom… across a remote regroup with a failed then successful save, and keep focus in the list when the reminder leaves the page. SnoozeDialog tests cover the prefilled and fallback starting times. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
…y page Address review on PR #2507, carried over with the split: - Open Custom… on a pending reminder, cancel it on another device, then press Save: ReminderSections kept the snapshot it opened with, so Save called reminders.snooze, which writes the replacement as pending and brought the cancelled reminder back. ReminderSections now looks up the live reminder by id; if it is missing or cancelled, SnoozeDialog gets `cancelled`, keeps what was typed, disables Save and shows "This reminder was cancelled." in place of any save error. Save checks reminders.snapshot() again at click time. Done reminders can still be snoozed. - When the cancelled reminder was the last one, closing the dialog dropped focus to <body>: the list has no tabbable children in the empty state. The fallback is now the page panel, which already has tabIndex={-1}, so the next Tab stays on the Reminders page. Tests: RemindersPage tests cover the remote cancel notice, the Save-time refusal that still allows a Done reminder, and the empty-page focus. A SnoozeDialog test covers `cancelled`. The reminders-layout fixture exposes its store on window so a Playwright check can cancel both reminders from the spec on Chromium and WebKit. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
Address review on PR #3065: - In America/Los_Angeles, a reminder due at 2027-11-07 01:30 PST (1825579800) opened Custom… as 2027-11-07 / 01:30, and Save with no edits published 01:30 PDT (1825576200), one hour earlier, with no notice. Local date and time values cannot say which pass through a repeated hour they mean, and Date reads them as the first. SnoozeDialog now saves through parseCustomOrDue (model.ts): values that still show the due time keep that time, anything else is parsed as before. Of the two remedies offered, this is the one that preserves the instant. - The dialog remembers the due time it opened on. Its fields do not follow a reminder that another device moves while it is open, so the live due time would no longer match what they show. - Validation is unchanged: Save's enabled state and the notices still come from the parsed values. Those are never later than the kept time, so a kept time is always still ahead. Between the two passes the prefill would read as past, so the dialog starts from the next 9am, as it already did. - An untouched save also keeps the seconds of a due time that is not on a minute boundary, such as one from "In 30 minutes", instead of rounding it down to the minute. The create dialog is not changed. Tests: a SnoozeDialog test in America/Los_Angeles with a faked clock saves 1825579800 for the second pass and 1825576200 for the first when nothing is edited, reads an edited 01:45 as the first pass, keeps the due time when an edit is undone or the reminder is moved elsewhere meanwhile, and starts from the next 9am between the two passes. It fails without the fix (saves 1825576200), and its moved-reminder step fails if the live due time is used. Signed-off-by: Matt Toohey <contact@matttoohey.com> Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Matt Toohey <contact@matttoohey.com>
3c480e7 to
dddba90
Compare
271ba13 to
a7f47fb
Compare
Summary
Adds Custom… to the Snooze / Remind me again menu in the bundled Reminders plugin. It opens a compact dialog that shares the create dialog's date and time fields and validation, starting at the reminder's current due time while that is still ahead, otherwise at the next 9am.
Split out of #2507 per tellaho's scope comment: the launch UI freeze allows contained fixes without new surfaces or options, and this adds both to a bundled plugin. It is intended to land after the Nov 10 launch, per the buzz-design-review canvas policy ("Current policy (until Nov 10 launch)").
Stacked on #2507 (
broken-8), which holds the grouped-message marks, the Remind me delivery gate and the create form's next-9am default that this dialog builds on. Retarget tomainonce #2507 merges.Changes
Plugin (
src/bundled/reminders/)RemindersPage.tsx— Custom… menu item. The dialog state is owned byReminderSectionsso it survives a regroup (a save, the page clock or another device moving the reminder), with focus returned to the reminder's trigger in whichever row now shows it, else the list, else the page panel when no reminders remain. A reminder cancelled while the dialog is open can't be restored: the live reminder is looked up by id, and Save checks the store again at click time.RemindDialog.tsx— extracts the sharedCustomTimeFieldsandfieldFocus; addsSnoozeDialog, which keeps what was typed but disables Save with a "This reminder was cancelled." notice oncecancelled.model.ts—dueInputsturns a due time into field values while that minute is still ahead.Docs
docs/buzz-help.md— the Reminders entry mentions Custom….Tests
RemindDialog.test.tsx—SnoozeDialogprefill, next-9am fallback at faked times, and the cancelled notice.RemindersPage.test.tsx— Custom… across a remote regroup with a failed then successful save; focus when the reminder leaves the page or was the last one; the cancelled guard at render and at Save, still allowing a Done reminder.tests/browser/reminders-layout.spec.mjs— on Chromium and WebKit, cancelling every reminder from "another device" (the fixture exposes its store onwindow) while Custom… is open, then closing it, focuses the page rather than<body>.Testing
On this branch's tip:
bin/pnpm lint,bin/pnpm check(Biome, typecheck, design checks),bin/pnpm exec vitest run, andbin/pnpm test:browser --project=chromium --project=webkit --no-deps tests/browser/reminders-layout.spec.mjs. Results are in the split comment on #2507.The native desktop build was not exercised; the reminder store is supplied only by the native host.
Before / after
Carried over from #2507 (browser build, light theme, 1200×760).
🤖 Generated with Claude Code