Skip to content

feat(native): complete custom snooze calendar and request guards - #264

Merged
rynfar merged 2 commits into
nativefrom
nw/262-custom-snooze
Nov 5, 2026
Merged

rynfar merged 2 commits into
nativefrom
nw/262-custom-snooze

Conversation

@rynfar

@rynfar rynfar commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

The native custom snooze dialog lacked the calendar and settings link, the inline menu omitted Custom…, and pending thread IDs could be reused after switching environments. Bulk Custom also cleared selection before accepting a choice.

The dialog now keeps an environment/connection/generation-bound request, rechecks current grants, config, target presence and snooze eligibility at the submit boundary, and cancels stale requests. All three menus capture the same request. Bulk cancellation retains selection; presets still resolve at pick time and expired picks show the web warning. The calendar keeps typed date/time input, enforces the current local day across midnight, supports view-aware day/month/year keyboard selection and resets transient calendar navigation for each request, and preserves the existing validation. Edit snooze options clears the request before existing settings navigation. Cancel, Escape, Tab, segmented controls and fresh reopening have explicit focus/lifecycle handling. Existing snooze/wake methods retain Undo.

Validation: compiled behavioral ownership and pinned CalendarState transition tests RED first, then GREEN; 1,403 workspace tests; strict workspace Clippy; theme generation; 42 parity tests; client-runtime conformance; normal and explicit private snapshot builds. All rounds, including failed compiles, the corrected fixed-zone fixture, and intermediate visual failures, are retained under /private/tmp/native-factory-2f5f764a/262-batch50/. report52.md and manifest52.json retain all original 44 rounds. The review revision, including the new compiled CalendarState RED, is indexed at /private/tmp/native-factory-2f5f764a/262-review-r1/INDEX.json with report.md. The new index binds actual build-time HEAD 6cb228e and working input bytes to the later revision; it does not claim the later commit existed at build time.

The review revision fixes R1 by following the visible calendar day/month/year state, keeping month/year activation inside the picker, clamping short months, enforcing the pinned disabled matcher, and resetting view/year-page state. R2 adds a semantic keyboard-focus ring independently of the selected segment. Before/after unselected Duration and Minutes focus, month/year navigation, date selection and fresh reopening are retained in /private/tmp/native-factory-2f5f764a/262-review-r1/ as local PNGs. N4 remains: pinned CalendarState captures its today decoration once; the minute-refreshed lower-bound matcher remains correct across midnight. No dependency or global lifetime change was made.

Local-only original visual evidence (not uploaded, per the task constraints):

  • Before: /private/tmp/native-factory-2f5f764a/262-batch50/baseline-dialog.png
  • Calendar: /private/tmp/native-factory-2f5f764a/262-batch50/final-calendar.png
  • Date selection and first Escape: /private/tmp/native-factory-2f5f764a/262-batch50/calendar-date-escape.png
  • Settings: /private/tmp/native-factory-2f5f764a/262-batch50/settings-navigation.png
  • Bulk before/cancel: /private/tmp/native-factory-2f5f764a/262-batch50/bulk-custom-dialog.png, /private/tmp/native-factory-2f5f764a/262-batch50/bulk-custom-cancel.png
  • Fresh duration after cancel/reopen: /private/tmp/native-factory-2f5f764a/262-batch50/duration-reopen.png

SB-SNOOZE remains partial under #262/#242 until independent review, integration and acceptance. Formatting checks remain RED: the ledger already fails formatting at the actual base, and context_menu.rs has inherited plus changed formatting hunks; this is not an all-green claim. The new revision also retains an initial extraction compiler failure (not behavioral RED), its corrected compiled extraction, and the compiled behavioral failing/passing test binaries. Its normal commit hook completed without skipping; the initial publication hook skip and formatting history remain in the original report. The preparation-only extracted compile did not retain its test-executable hash before the subsequent RED build; its full inputs, patch and raw output remain, and the behavioral RED executable is retained separately. The pinned calendar defaults to Sunday; native exposes no locale first-weekday preference. No live permission-change, relay/multi-device, performance, full-frame or provider-turn claims. Inline Custom is source-verified; the hover capture did not provide a safe visible clock target, so no speculative click was attempted. All app captures used the explicit private snapshot binary and copied 14658 home. No snooze/preset/delete/visit/settings-save/provider action was executed; both user bundles remain unchanged.

Built with GPT-6.1 Sol in Codex

@rynfar
rynfar merged commit daf8362 into native Nov 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant