Skip to content

refactor: drop unused go-to-date announcement state and fold leftover date-picker hint copies - #5186

Merged
tyler-dane merged 1 commit into
mainfrom
cursor/recent-changes-simplification-3f5d
Nov 9, 2026
Merged

tyler-dane merged 1 commit into
mainfrom
cursor/recent-changes-simplification-3f5d

Conversation

@cursor

@cursor cursor Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

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 2026 e2e heading; this rebases the same simplifications onto main, which now pins that spec to April 2026.

Desktop go-to-date announcements (#5114 leftover). 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.

Date-picker leftovers from #5178/#5184. DatePicker spelled "are we on the day grid?" twice (isCaptionDayGrid and shouldCommitSelection); isDayGrid is 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 Life handleOpenCalendarKeys shells stay separate (Life parse, month nudge, insert-suppress).

Verify

VERDICT: PASS

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 --strict exited 0.

Open in Web View Automation 

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 CommandPaletteStore state (statusAnnouncement, consumeAnnouncement); announce only invokes onAnnouncementChanged. CommandPaletteStatusAnnouncementDelivery becomes a speak / clear enum instead of three loosely coupled flags, and AppKit publishing matches on that enum. The root controller passes announcements through without normalizing empty strings to nil.

Web date picker folds duplicate “day grid” checks into a single isDayGrid flag (month nav shortcuts, close-on-select, caption button). Grid date-picker shortcut hints always clear both base and caption stack ids via popGridHintPair before 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.

… date-picker hint copies

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

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit a05f0cf Nov 9, 2026
39 checks passed
@tyler-dane
tyler-dane deleted the cursor/recent-changes-simplification-3f5d branch November 9, 2026 01:49
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