Skip to content

Life: truthful year captions, variation chip anchor, hint evidence - #5179

Closed
tyler-dane wants to merge 49 commits into
mainfrom
cursor/life-keycap-datepicker-ux-0084
Closed

tyler-dane wants to merge 49 commits into
mainfrom
cursor/life-keycap-datepicker-ux-0084

Conversation

@tyler-dane

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

Copy link
Copy Markdown
Contributor

Tyler all-day mouse path (6:19 PM MST clarification)

Designed path (same on web + macOS, including main): empty all-day row click does not open a draft. It parks pointerDraftDateKey and shows the pointer-hint pill (“Press {0} for an all-day event” → create-allday / Shift+C). See NativeCalendarRootModel+GridPointerClick.swift and pointer guidance.

Reproducible break (shipped router shape): NativeGridKeyboardRouter.handleNormalizedKeyDown ran handleShiftDayJump for every Shift+letter and always returned true before ShortcutDispatcher, so Shift+C never reached create-allday.

Fix candidate: claimsShiftDayJump on branch head f2a480eab. Tests: GridPointerAllDayMousePathTests, AllDayMouseCreateKeyboardTests, FocusedEventShiftArrowKeyboardTests.


Tyler macOS UI bugs (6:50 PM follow-ups)

1. Draft card text contrast

Root cause: AppKit placeholder for “Untitled event” used secondary label color while time used contrastText.

Fix (8394b7300): applyReadableText + placeholder attributed string.

Draft contrast bug

Tests: EventCardDraftContrastTests.

2. Pointer-hint toast stuck

Root cause: No 2500ms auto-hide (web HINT_VISIBLE_MS), non-@Bindable Dismiss, quick-time commit omitted hide().

Fix (8394b7300): timer, @Bindable, hide on draft paths.

Stuck pointer hint

Tests: PointerHintStoreTests, extended GridPointerAllDayMousePathTests.


3. W shortcut stuck in Day view (Tyler 6:51 PM)

Root cause: With event jump mode active, handleDraftKeys runs before the dispatcher. handleEventJumpKeystroke("w") selected Wednesday and returned true, so nav-week-view never ran. Not pointer-hint/toast (those only buffer digits).

Web contrast: View shortcuts (D/W/L) use keyup globally; jump uses keydown.

Fix (584c119c4): Fall through d/w/l; clear jump on view nav. Wednesday in jump mode: Shift+W.

Tests: NavViewKeyboardJumpModeTests (NSEvent → handleKeyDown, asserts viewStore.view == .week).


Shipped vs candidate

Item Status
All-day click + Shift+C Candidate f2a480eab
Draft contrast / pointer hint Candidate 8394b7300
W → week with jump mode on Candidate 584c119c4
Tyler’s installed macOS build Not shipped until merge + release
Open in Web Open in Cursor 

Add data-page-jump-chip anchors so hold-Mod hints sit next to Life
controls. Expand shared caption picker year grid layout and affordance.
Bump macOS year pages to 20 years with four columns for parity.

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

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

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

cursoragent and others added 3 commits November 7, 2026 15:21
Track react-datepicker year page end in state so Previous/Next years
updates the range label, add caption-picker-year-page helpers, refresh
Life mod-hint and datepicker artifact spec (dismiss intro, paging checks),
and align macOS caption chrome plus year grid density.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Replace mode-only edge focus status text with keycap hints for Shift+arrow
nudges and Tab edge cycling; store all-day context for correct arrows.
Add native EdgeFocusStatusLine and EdgeFocusHint parity, plus artifact e2e.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Match react-datepicker twenty-year pages in captions and tests, anchor
Mod+3 chips on the variation arrow cluster, and add native focus-hint
regressions plus refreshed Playwright evidence.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
@cursor cursor Bot changed the title fix(web): Life page-jump chip proximity and caption date picker UX Life: truthful year captions, variation chip anchor, hint evidence Nov 7, 2026
cursoragent and others added 7 commits November 7, 2026 16:21
Import CompassKit in EdgeFocusHintTests, snap react year pages in
SidebarMonthPicker navigation, and harden Life birth date UI walks.

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

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Use outside-trailing chip placement on the arrow cluster, reserve gutter
space before the title, assert non-overlap in Playwright, and restore macOS
caption plus birth-field focus after picker dismiss.

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>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 16 commits November 7, 2026 18:44
Route Shift+arrows through shared schedule nudge math for saved grid
events and edge-focused drafts so sidebar hints match behavior. Add
CompassKit edge nudge helpers and keyboard-router regression tests.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Stop optional binding on non-optional draft.schedule. Pass pre-nudge
event into replaceEvent so optimistic loadedEvents does not clear
schedule on replace. Serialize async nudge persists and expand handler
persistence tests.

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>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Unsigned fixtures upsert calendars before start(); switching EventsStore to
.local must call reloadCalendars so writable metadata is on the model before
shift nudge persistence runs.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Capture the predecessor task before assigning focusedEventNudgePersistTask
so rapid shift nudges chain replace calls instead of self-awaiting. Bound the
test wait helper and add remote replace, undo-during-write, Life suppression,
and router all-day coverage.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Capture predecessor before assigning persist tasks; invalidate queued nudges
on undo via serial/cancel. Validate undo against loadedEvents first so
optimistic nudges are not compared to stale repository rows. Poll with a
deadline in the test waiter instead of task-group join. Fix XCTest await
autoclosure usage in tests and add router text-view suppression coverage.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Replace cancel/serial undo invalidation with waiting for the focused nudge
persist task and in-flight event mutations so inverse replaces run after
the prior server round-trip. Scope loadedEvents consistency to pending nudge
only; settled edits still compare against the repository. Repair remote
hold test to gate only the first PUT, release while undo waits, then
assert cache schedule and final replace payload.

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>
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>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 10 commits November 7, 2026 23:13
Skip the week-grid NSTextView guard while the event form is open so
Cmd+Enter and other form shortcuts still route through handleEventFormKeys.

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

Hard-ignore shift arrows in the event form, route focused saved nudges
without shortcut dispatch fallthrough, and exercise the router through
NSEvent like production.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Treat NSEvent shift+arrow key codes as shift-edge nudges even when
KeyEvent normalization omits modifiers, and ignore shift arrows while
the event form is open. Align router test fixture ids with CompassData.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Route shift+arrow only through nudge paths; do not fall back to
placeTimedDraft on shift arrows or let legacy edit-move bindings
return handled when nudge does not run. Revert speculative hardware
shift detection. Pin welcome shortcuts e2e clock for October heading.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
When a focused saved-event edge nudge fails, return false for read-only
events instead of falling through to keyboard placement. Restore
handleDraftKeys placement for unfocused shift+arrow. Remove redundant
pre-dispatch guard. Add router placement regression test.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Return false from welcome key handling unless a welcome action ran so
grid shift-arrow routing reaches nudge and placement paths. Dismiss
welcome in router integration fixtures and align draft creation guards
with main.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
markWelcomeSeen uses shared UserDefaults and was breaking
OnboardingSurfaceTests run later in CompassKitTests.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Day-jump handling claimed every shifted letter before the shortcut
dispatcher, so create-allday never ran after the all-day slot teach
path. Add grid pointer and router tests for click-then-shift+c.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
cursoragent and others added 7 commits November 8, 2026 01:46
Call router.shiftC(), snapshot UserDefaults before markWelcomeSeen,
restore welcomeExit on teardown, and assert local save after click then
shift+c.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Use testable CompassData for pointer draft field and try fetchAll with
details title matching.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Align draft placeholder foreground with contrastText on the card fill so
Untitled event matches the time label on gray fills. Add web-parity 2500ms
pulse auto-hide, @bindable dismiss binding, and hide hints when drafts start.

Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>
Event jump swallowed bare w as Wednesday before nav-week-view ran. Fall
through d/w/l like web view shortcuts, clear jump on view change, add
NSEvent router regression.

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>
Co-authored-by: Tyler Dane <tyler-dane@users.noreply.github.com>

Copy link
Copy Markdown
Contributor Author

Closing as superseded during the stale-PR review. The web caption/date-picker work shipped in #5228/#5230, edge-focus hints in #5231 (which explicitly references #5179), and page-jump chip regression coverage in #5237. The remaining native changes target apps/calendar-macos, which was archived and removed from this repository (#5283). Merging this older mixed branch would reintroduce retired native files and conflict with the shipped web implementations.

@tyler-dane tyler-dane closed this Nov 18, 2026
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