Repository navigation
refactor: share oauth callback context and recent form helpers - #4617
Merged
Merged
Conversation
Drop the unused native focus ring, fold three OAuth state readers into one verify/peek helper, and reuse existing form, jump, and pulse helpers from the merges after #4573. Co-authored-by: tyler <tyler@switchback.tech>
tyler-dane
marked this pull request as ready for review
October 20, 2026 01:24
tyler-dane
enabled auto-merge
October 20, 2026 01:24
Contributor
|
Boot bundle: 509.8 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.
What and why
Nightly cleanup of merges after #4573, focused on #4588 (oauth_callback attribution), #4603/#4607/#4610 (FormCard event form), #4605/#4608 (EventJump), #4602 (palette search), and #4604 (now-cue pulse).
Dead unused
NativeWebFocusRingis gone. Schedule and conference sections drop unusedfocusField. EventFormCard owns the accent highlight used by logistics and description. Timed start/end rows share one helper. Compact date revert paths sharerevertTextToBoundDate. OAuth callback analytics context is one verify/peek helper, so intent still comes from signature-valid state on the wrong provider path. Signed tokens split in one place. Failure reasons sharewithProviderError. EventJump reusesvisibleDateKeys()and drops the deadsprefix guard. TimeGrid header shimmer reusesnowCuePulseAnimation. UITest launch-arg values sharestringValue(forFlag:).Left alone: AuthStore success paths, Welcome Enter vs connect-prompt Enter, first-event celebration, TimePicker commit-draft event, TimePicker shortcut test harness, calendar notice stack, TimeGrid hit-test passes, ShiftHintOverlay, TimePickers start/end menu booleans, NativeGridKeyboardRouter confirmation-dialog and guest-email Return handling, deploy yaml awk readers, EventFormDateField commit paths, recurrence timezone vs draft TZ, keyboard vs form duplicate pipelines, CompassKit test trees, CommandPaletteSearch adapter, palette recent-while-searching, Event form Meet
draft.kind === "create"type narrowing.Verify
VERDICT: PASSChecks run:
test:core,test:sync:fast,type-check,lint,knip.Also ran the 8
captures oauth_callbackcases inconnection.routes.db.test.ts(including stateMismatch still emitting intent connect).CI-only:
test:macos/test:macos:packages(no Xcode on this machine).Note
Low Risk
Mostly structural refactors and UI polish; OAuth analytics consolidation is covered by existing tests, with a low-risk palette wrap fix.
Overview
Refactors and small fixes across macOS calendar UI, OAuth analytics, and shared helpers—mostly DRY cleanup with a couple of behavior fixes.
macOS: Command palette keyboard selection now wraps with correct modulo on
(index + delta). Event jump reuses sharedvisibleDateKeys()and drops a redundant weekend-prefix guard. Event form moves accent focus styling intoEventFormCard(highlighted:), extracts timed start/end intotimedRow, shares compact-date revert logic, and removes deadNativeWebFocusRingplus unusedfocusFieldprops. UITest launch flags parse viastringValue(forFlag:). Command palette search tightens word-prefix matching (haystack already lowercased). Time grid “now” header pulse reusesnowCuePulseAnimation.Sync/core: OAuth signed token parsing is centralized in
splitSignedToken; callback routes read distinctId, connect intent, and relay-desktop from oneoauthStateAnalyticsContextverify/peek pass. Failure analytics usewithProviderErrorand can fall back to sanitizederror_descriptionforprovider_error.Reviewed by Cursor Bugbot for commit 29965d1. Bugbot is set up for automated code reviews on this repo. Configure here.