Skip to content

refactor: share event form focus pulse and drop unused date state - #4927

Merged
tyler-dane merged 2 commits into
mainfrom
cursor/code-simplification-e807
Oct 29, 2026
Merged

tyler-dane merged 2 commits into
mainfrom
cursor/code-simplification-e807

Conversation

@cursor

@cursor cursor Bot commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

What and why

Nightly simplify of merges after #4904. Location, guests, RSVP, recurrence, calendar, and actions no longer each own a focus-request counter. One eventFormFocusRequest pulse restores a repeated shortcut, and the common SwiftUI restore path is onEventFormFocusRequest. RSVP still updates its tab-stop locally before the async restore. EventFormDateField drops unused grid-focus React state (the ref already drove keyboard routing). DatePicker's today control and month-chord handler share one jumpToThisMonth closure. PostHog identity and session controllers share PostHogAnalyticsIds.makeLowercasedUUID.

Verify

VERDICT: PASS
Checks run: test:web, type-check, lint, knip, test:a11y, test:e2e
test:web passed; test:a11y 67 passed; test:e2e 303 passed, 3 skipped.
Swift package and AppKit builds remain CI-only on this machine (test-macos.yml).

Open in Web View Automation 

Note

Low Risk
Refactors and deduplication with existing tests updated; keyboard focus and analytics behavior should be unchanged aside from the intended repeated-shortcut fix on macOS.

Overview
macOS event form keyboard focus replaces six per-field focus counters with one eventFormFocusRequest pulse on every focusEventFormField, so repeating the same shortcut still re-applies focus. Form sections (attendees, location, recurrence, actions) use the shared onEventFormFocusRequest SwiftUI helper; calendar menu and RSVP listen to the same counter (RSVP still sets tab-stop synchronously before the async focus restore).

PostHog (macOS) centralizes lowercased UUID generation in PostHogAnalyticsIds.makeLowercasedUUID for identity and session controllers.

Web DatePicker factors a single jumpToThisMonth closure for the “go to this month” button and month keyboard chords. EventFormDateField drops redundant grid-focus React state (the ref already drives keyboard routing) and tightens the keyboard-selected-day DOM query.

Reviewed by Cursor Bugbot for commit 52d0cd5. Bugbot is set up for automated code reviews on this repo. Configure here.

Collapse per-field macOS focus counters into one request so repeated
shortcuts restore without adding a new property each time. Drop unused
date-field grid-focus React state and share the date picker month jump.

Co-authored-by: tyler <tyler@switchback.tech>
@tyler-dane
tyler-dane marked this pull request as ready for review October 29, 2026 01:25
@tyler-dane tyler-dane added the agent-automerge Agent-loop finished; merge-guard may squash-merge label Oct 29, 2026
@tyler-dane
tyler-dane enabled auto-merge October 29, 2026 01:25
@github-actions

Copy link
Copy Markdown
Contributor

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

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Oct 29, 2026
Merged via the queue into main with commit 2500ebb Oct 29, 2026
32 checks passed
@tyler-dane
tyler-dane deleted the cursor/code-simplification-e807 branch October 29, 2026 02:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

agent-automerge Agent-loop finished; merge-guard may squash-merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants