Skip to content

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
mainfrom
cursor/recent-changes-simplification-0d03
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/recent-changes-simplification-0d03

Conversation

@cursor

@cursor cursor Bot commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

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). CommandPaletteStore kept statusAnnouncement and consumeAnnouncement that production never read or called. announce now only fires the callback. Delivery is a speak / clear enum instead of three independent fields that had to stay in sync, and the AppKit layer no longer converts empty strings to nil before 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 (isCaptionDayGrid and shouldCommitSelection); isDayGrid is the one flag.

Verify

VERDICT: PASS

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).

Baseline against origin/main:
PRE-EXISTING (1):
- test:e2e: [chromium-desktop] › e2e/onboarding/welcome-keyboard-shortcuts-step.spec.ts › essential shortcuts step keycaps work on web

The assertion looks for heading October 2026 after jumping to today. That line is identical on origin/main; the calendar now shows November 2026. Unrelated to this diff.

Open in Web View Automation 

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 CommandPaletteStore state (statusAnnouncement, consumeAnnouncement); announce now only invokes onAnnouncementChanged. Accessibility planning moves from a three-field struct to a speak / clear enum, and the AppKit probe syncs mirrors via pattern matching instead of boolean flags. NativeRootController forwards the announcement string as-is (no empty-string→nil conversion before the planner).

Web date picker collapses duplicate “day grid” checks into a single isDayGrid flag for month shortcuts, close-on-select, and caption UI. useCaptionableGridDatePickerHint always clears both day-grid and caption hint ids before pushing the active surface (shared popGridHintPair), 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.

… date-picker hint copies

Co-authored-by: tyler <tyler@switchback.tech>
@tyler-dane
tyler-dane marked this pull request as ready for review November 8, 2026 01:28
@tyler-dane
tyler-dane enabled auto-merge November 8, 2026 01:28
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Boot bundle: 572.4 KB gzip (+0.0 KB vs main)

Copy link
Copy Markdown
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.

@tyler-dane tyler-dane closed this Nov 18, 2026
auto-merge was automatically disabled November 18, 2026 16:13

Pull request was closed

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.

2 participants