Repository navigation
refactor: drop unused go-to-date announcement state and fold leftover date-picker hint copies - #5186
Merged
Merged
Conversation
… date-picker hint copies Co-authored-by: tyler <tyler@switchback.tech>
tyler-dane
marked this pull request as ready for review
November 9, 2026 01:21
tyler-dane
enabled auto-merge
November 9, 2026 01:21
Contributor
|
Boot bundle: 572.5 KB gzip (+0.0 KB vs main) |
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.
No issue: routine technical-debt sweep. Continues #5182 on current main after #5184 pinned the welcome-keyboard clock. Left open Dependabot and in-flight UI PRs (#5185, #5183, #5181, #5180, #5179, #5177, #5111, #5103, #5098, #5094) alone.
What and why
Behavior-preserving cleanup of this week's already-merged work. #5182 is still open and blocked on the old
October 2026e2e heading; this rebases the same simplifications onto main, which now pins that spec to April 2026.Desktop go-to-date announcements (#5114 leftover).
CommandPaletteStorekeptstatusAnnouncementandconsumeAnnouncementthat production never read or called.announcenow only fires the callback. Delivery is aspeak/clearenum instead of three independent fields that had to stay in sync, and the AppKit layer no longer converts empty strings tonilbefore the planner.Date-picker leftovers from #5178/#5184. DatePicker spelled "are we on the day grid?" twice (
isCaptionDayGridandshouldCommitSelection);isDayGridis the one flag. Grid fields popped the unused caption sibling with a ternary, plus a second unmount effect that popped the same pair. One effect now pops both ids, then pushes the active surface. EventForm vs LifehandleOpenCalendarKeysshells stay separate (Life parse, month nudge, insert-suppress).Verify
Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e. CI-only: test:macos:packages, test:macos (no Xcode on this machine).
bun run verify --strictexited 0.Note
Low Risk
Mostly dead-code removal and structural refactors with updated unit tests; touches accessibility announcement delivery but behavior is intended to stay the same.
Overview
macOS go-to-date announcements drop unused
CommandPaletteStorestate (statusAnnouncement,consumeAnnouncement);announceonly invokesonAnnouncementChanged.CommandPaletteStatusAnnouncementDeliverybecomes aspeak/clearenum instead of three loosely coupled flags, and AppKit publishing matches on that enum. The root controller passes announcements through without normalizing empty strings tonil.Web date picker folds duplicate “day grid” checks into a single
isDayGridflag (month nav shortcuts, close-on-select, caption button). Grid date-picker shortcut hints always clear both base and caption stack ids viapopGridHintPairbefore pushing the active surface—one effect replaces the old dual-effect / selective-pop logic. New hook tests cover caption-view id swaps and cleanup on close.Reviewed by Cursor Bugbot for commit 92a6b2f. Bugbot is set up for automated code reviews on this repo. Configure here.