Repository navigation
refactor: drop unused go-to-date announcement state and fold leftover date-picker hint copies - #5182
Closed
cursor[bot] wants to merge 1 commit into
Closed
cursor[bot] wants to merge 1 commit into
cursor[bot] wants to merge 1 commit into
Conversation
… date-picker hint copies Co-authored-by: tyler <tyler@switchback.tech>
tyler-dane
marked this pull request as ready for review
November 8, 2026 01:28
tyler-dane
enabled auto-merge
November 8, 2026 01:28
Contributor
|
Boot bundle: 572.4 KB gzip (+0.0 KB vs main) |
Contributor
|
Closing as superseded during the stale-PR review. Current main already contains popGridHintPair and the single-effect hint cleanup in useDatePickerSidebarHints.ts, along with the subsequent caption-picker work from #5228/#5230. The remaining go-to-date announcement refactor targets the archived apps/calendar-macos code, removed from this repository in #5283. There is no remaining cleanup here worth resurrecting the native tree. |
auto-merge was automatically disabled
November 18, 2026 16:13
Pull request was closed
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 over the merges after #5174 (#5114, #5175, #5176, and leftover from #5178).
What and why
Behavior-preserving cleanup of this week's already-merged work. Left open Dependabot and in-flight UI PRs (#5181, #5180, #5179, #5177, #5111, #5103, #5098, #5094) alone.
Desktop go-to-date announcements (#5114).
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. The planner test file stays so macos-parity inventory paths remain valid.Date-picker leftovers from #5178. 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. DatePicker also spelled "are we on the day grid?" twice (
isCaptionDayGridandshouldCommitSelection);isDayGridis the one flag.Verify
Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e (baseline: no new failures). CI-only: test:macos:packages, test:macos (no Xcode on this machine).
The assertion looks for heading
October 2026after jumping to today. That line is identical onorigin/main; the calendar now shows November 2026. Unrelated to this diff.Note
Low Risk
Behavior-preserving refactors and hint-stack housekeeping in non-critical UI paths; accessibility delivery semantics are unchanged aside from removing dead store state.
Overview
macOS go-to-date status announcements drop unused
CommandPaletteStorestate (statusAnnouncement,consumeAnnouncement);announcenow only invokesonAnnouncementChanged. Accessibility planning moves from a three-field struct to aspeak/clearenum, and the AppKit probe syncs mirrors via pattern matching instead of boolean flags.NativeRootControllerforwards the announcement string as-is (no empty-string→nilconversion before the planner).Web date picker collapses duplicate “day grid” checks into a single
isDayGridflag for month shortcuts, close-on-select, and caption UI.useCaptionableGridDatePickerHintalways clears both day-grid and caption hint ids before pushing the active surface (sharedpopGridHintPair), replacing a second unmount effect and a ternary that could let ids drift; new unit tests cover caption-view and close behavior.Reviewed by Cursor Bugbot for commit a1e8dfb. Bugbot is set up for automated code reviews on this repo. Configure here.