Skip to content

fix(web): tier contextual hints and sync month picker hints to focus - #5195

Merged
tyler-dane merged 10 commits into
mainfrom
cursor/contextual-hint-prioritization-6e94
Nov 9, 2026
Merged

tyler-dane merged 10 commits into
mainfrom
cursor/contextual-hint-prioritization-6e94

Conversation

@tyler-dane

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

Copy link
Copy Markdown
Contributor

What and why

Tyler reported (1) the shared shortcut sidebar was overwhelming during event-form date picker focus, and (2) month-picker hints ("U back to grid") stayed visible after focus moved to a grid event. The walkthrough screenshot for (2) is web only: that copy is published by SidebarMonthPickerHintEffect into web SidebarStatusBar, not by a native status-line publisher today.

(1) Tiered contextual hints (web + macOS form footer)

@core/shortcuts/contextual-hint-tiers defines primary (~3 actions) and secondary rows. Web uses ProgressiveShortcutTipParts (More/Less, aria-expanded) in the sidebar date-picker line and event-form footer. macOS mirrors the same tiers in EventFormFooterTipsView, with a focusable More control (accessibilityLabel, accessibilityValue Expanded/Collapsed, identifiers for UI tests).

Event-form footer tips hide on web while a date picker owns the sidebar hint stack; Mod+0 sits behind More when tab navigation still applies.

(2) Stale "back to grid" (web)

SidebarMonthPickerHintEffect now publishes only while focus is inside the sidebar month picker (useIsSidebarMonthPickerFocused). Tests cover moving focus from the picker to a grid event (click and programmatic focus).

macOS clearMonthPickerFocus (separate from hints)

Native does not publish the month-picker status copy. focusEvent / focusGridEvent clear monthPickerFocusDate so the sidebar month ring and keyboard-router month-picker mode do not linger after the user focuses a grid event (including mouse click via focusGridEvent). This matches existing U / shortcut behavior and is covered by testFocusingAGridEventClearsMonthPickerFocus.

Relation to #5179

#5179 does not touch contextual-hint-tiers or useDatePickerSidebarHints; merge order is independent.

Verify

CI at branch head is authoritative. Local: bun test:scripts, targeted web tests, e2e spec update for tiered footer.

Manual walkthrough (1), web date picker collapsed row

Sidebar shows move date, pick, close, and More

Open in Web Open in Cursor 

cursoragent and others added 3 commits November 9, 2026 14:30
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>
@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 7 commits November 9, 2026 14:45
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>
@tyler-dane
tyler-dane added this pull request to the merge queue Nov 9, 2026
Merged via the queue into main with commit bb84006 Nov 9, 2026
38 checks passed
@tyler-dane
tyler-dane deleted the cursor/contextual-hint-prioritization-6e94 branch November 9, 2026 19:07
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