Skip to content

fix(grid): visible start/end focus on default-color event cards - #5192

Merged
tyler-dane merged 4 commits into
mainfrom
cursor/event-focus-contrast-726a
Nov 9, 2026
Merged

tyler-dane merged 4 commits into
mainfrom
cursor/event-focus-contrast-726a

Conversation

@tyler-dane

@tyler-dane tyler-dane commented Nov 9, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Event focus chrome (sidebar editing ring, Tab edge focus) now derives indicator color from card fill, not page paper, matching web resolveEventFocusIndicatorColor.

macOS layering: EventEdge lives in CompassKit (Calendar/EventEdge.swift). TimeGridState.focusedEdge no longer references CompassData types.

macOS chrome: GridEventFocusChrome shares contrast math with web; EventCardView uses named layers (compass-event-focus-ring, compass-event-edge-focus, compass-event-edge-gutter) and a 1px paper gutter on edge bars.

Tests: Kit tests pin #616161 on #454442; UI tests cover startDate/endDate, darkAbyss, drafts, provider hex, and named layers (not sublayer heuristics).

bun run verify --strict: VERDICT: PASS

HEAD: d747d992ce6e678fb4c56e6209147f84da26c153 — required checks terminal green at this SHA.

Fixes #5191

Open in Web Open in Cursor 

Start/end edge focus, sidebar-editing rings, and macOS card chrome now pick
a calendar color only when it meets a 3:1 contrast floor on the fill;
otherwise they reuse the same contrast token as title/time text. Native
cards render edge focus bars and wire focusStore.edge through TimeGridState.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@github-actions

github-actions Bot commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

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

cursoragent and others added 3 commits November 9, 2026 14:12
Move EventEdge into CompassKit so TimeGridState does not reference CompassData types.
Share GridEventFocusChrome with web parity math, named focus layers, and paper gutter
on edge bars. Strengthen CompassKit and CompassUI tests for default fill, dark theme,
slots, drafts, and endDate focus.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to no response for status checks Nov 9, 2026
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 9, 2026
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit d73a71d Nov 9, 2026
38 checks passed
@tyler-dane
tyler-dane deleted the cursor/event-focus-contrast-726a branch November 9, 2026 20:28
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