Repository navigation
feat(native): complete custom snooze calendar and request guards - #264
Merged
Merged
Conversation
5 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.mdandmanifest52.jsonretain 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.jsonwithreport.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):
/private/tmp/native-factory-2f5f764a/262-batch50/baseline-dialog.png/private/tmp/native-factory-2f5f764a/262-batch50/final-calendar.png/private/tmp/native-factory-2f5f764a/262-batch50/calendar-date-escape.png/private/tmp/native-factory-2f5f764a/262-batch50/settings-navigation.png/private/tmp/native-factory-2f5f764a/262-batch50/bulk-custom-dialog.png,/private/tmp/native-factory-2f5f764a/262-batch50/bulk-custom-cancel.png/private/tmp/native-factory-2f5f764a/262-batch50/duration-reopen.pngSB-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