Repository navigation
fix(web): tier contextual hints and sync month picker hints to focus - #5195
Merged
Merged
Conversation
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>
Contributor
|
Boot bundle: 574.2 KB gzip (+0.0 KB vs main) |
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>
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
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
SidebarMonthPickerHintEffectinto webSidebarStatusBar, not by a native status-line publisher today.(1) Tiered contextual hints (web + macOS form footer)
@core/shortcuts/contextual-hint-tiersdefines primary (~3 actions) and secondary rows. Web usesProgressiveShortcutTipParts(More/Less,aria-expanded) in the sidebar date-picker line and event-form footer. macOS mirrors the same tiers inEventFormFooterTipsView, with a focusable More control (accessibilityLabel,accessibilityValueExpanded/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)
SidebarMonthPickerHintEffectnow 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/focusGridEventclearmonthPickerFocusDateso the sidebar month ring and keyboard-router month-picker mode do not linger after the user focuses a grid event (including mouse click viafocusGridEvent). This matches existingU/ shortcut behavior and is covered bytestFocusingAGridEventClearsMonthPickerFocus.Relation to #5179
#5179 does not touch
contextual-hint-tiersoruseDatePickerSidebarHints; 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