Skip to content

A fold header's chevron and menu button follow official's hover and focus; a quote's source icon has its name - #1262

Merged
Hona merged 4 commits into
devfrom
upstream-f/pin-group-hover
Nov 25, 2026
Merged

Hona merged 4 commits into
devfrom
upstream-f/pin-group-hover

Conversation

@Hona

@Hona Hona commented Nov 25, 2026 •

Copy link
Copy Markdown
Member

Addresses the four differences from official that #1144 left open, using the Rune additions landed by #1257 (pin 5342f14d, holding rune#2231 and rune#2215). The diff against dev is three files.

What changes

A pin group's header (side tabs) and a Recent group's header (List) under Consolidated:

  • The chevron fades in and out over 150 ms, where it cut in and faded out over 0.1 s. It also turns over the same 150 ms.
  • The chevron shows with the pointer anywhere on the header's row, the row's menu button included. Before, it hid with the pointer on the menu button.
  • Keyboard focus on the toggle draws its ring and the chevron, and no hover fill. Before, the toggle's hover fill was drawn under the ring.
  • The menu button shows for the row's hover or its own focus only. Before, it also showed with focus on the toggle.
  • A pin group's hover fill follows the row, so it is drawn with the pointer on the menu button too.
  • A Recent header's button has no hover fill; its words take the base ink under the pointer. Before, it drew a fill and the words did not change.

A quote's source icon in a user message:

  • The icon has its source's name and shows it as a tooltip. Before, the name was the quote's description and the icon had no tooltip.

How

Official: packages/app/src/shell/titlebar/pinned-area.tsx:350 (the toggle's fill on the row's hover), :376 (the chevron), :417 (the menu button); recent-sessions.tsx:1201 (the button's words), :1222-1225 (the chevron), :1231 (the menu); packages/session-ui/src/message/user-message-quotes.tsx:76 (the icon's title and aria-label).

  • apps/desktop/src/shell/view/sidebar/pinned_area.rs: the row is a hover group that only the pointer lights (hover_group_pointer); the toggle has no hover colour of its own, since that would make it the group of what it holds, and draws its fill as a layer of the row's group; group_chevron is the chevron for both headers (group_focus_within the toggle, group_motion and rotate_motion of 150 ms).
  • apps/desktop/src/shell/view/sidebar/recent.rs: the same for a Recent group's header.
  • crates/session-view/src/user_quotes.rs: InlineIcon::label and InlineIcon::help; the quote's description goes.

How it differs from official

  • A Recent header's words with the pointer on its Group and sort button (partly; Rune follow-up owed). Official's stay muted there: the words follow the button's own hover (recent-sessions.tsx:1201). Ours take the base ink (#fafafa, seen in case 8), because they follow the header's hover: a member follows its nearest group, and the chevron in the same button must follow the header. Exact needs a member that names its group in Rune; small follow-up Rune draft owed.
  • The chevron's turn on toggle press. Official turns over 150 ms. Case 7 confirmed that in ours it turns at once (at 60 ms after tap release with motion on, the 14x14 chevron crop differs by 0 px from settled, and by 34 px from open), because the toggle's press calls tx.instant().

Run

Headless on this PR's Windows x64 CI build (0b4db7a00, run 45711964463; 29 launches across two runs, every exit code read whole and 0; motion passes omitted --reduced-motion). The head holds dev with the Rune pin 5342f14d (#1257). Before = opencode-rune #1271's own PR build, head 278f9aaf38, run 45709668204: dev a5c55ecf42 with the same pin and the re-keyed profile, and nothing of this change. All 9 cases hold:

  1. A pin group at rest (Focus on sidebar-consolidated): chevron opacity 0, menu button pin-group-menu-g1 opacity 0, hover fill layer (#ffffff0f) opacity 0.
  2. The pointer on the group's toggle (motion on): at 60 ms (t=1.36), chevron opacity 0.837 (mid-fade over 150 ms) while hover fill (#ffffff0f) is 1 and menu button is 1; settled: all three 1.
  3. The pointer on the group's menu button (223, 223): chevron opacity 1, hover fill opacity 1, menu button 1. Before (278f9aaf38): chevron opacity 0 (hidden), no toggle fill layer.
  4. The pointer away (motion on): at 60 ms after leaving (t=1.86), chevron opacity 0.163 (mid-fade out) while hover fill is 0 and menu button is 0; settled: all three 0.
  5. Tab onto the toggle: focus ring true, chevron opacity 1, hover fill opacity 0 (no fill), menu button opacity 0. Before (278f9aaf38): toggle hover=1 (fill drawn) and menu button opacity 1.
  6. Tab again, onto the menu button: menu button focused (ring=true, opacity 1), chevron opacity 0, hover fill 0.
  7. A press on the toggle (motion on): group folds (expanded: true -> false, visible tabs below 6 -> 5), chevron points right (34 of 196 px differ from open in its 14x14 box); turns at once (0 px differ at 60 ms vs settled, matching tx.instant()).
  8. A Recent group's header (Needs attention on sidebar-consolidated-list-grouped): at rest: no fill (#00000000), label #aeaeae, chevron 0, menu 0. Hover on header (motion on): no fill, label turns to base ink #fafafa immediately, chevron rises (0.837 at 60 ms to 1), menu 1 at once (before: hover=1 fill drawn, label stayed #aeaeae). Hover on menu button: no fill, chevron 1, menu 1, label #fafafa (the named gap above). Pointer away: label #aeaeae and menu 0 at once, chevron fades (0.163 at 60 ms to 0). Tab on toggle: focus ring true, no fill, chevron 1, menu 0 (before: hover=1 fill, menu 1). Tab on menu button: menu focused (ring=true, opacity 1), chevron 0, no fill.
  9. A user message with a quote from the terminal (fixture file with a terminal quote, session 3): accessibility tree has {"role":"image","name":"Terminal","bounds":[489.5,150,14,14]} beside the quote's label (no description on the quote); resting the pointer at (496.5, 157) for 1.6 s draws the "Terminal" tooltip pill below the icon. Before (278f9aaf38): no image node, quote label carries description: "Terminal", and hovering draws no tooltip.

Merged on: CI run 45711964463 green on 0b4db7a00 (guardrails, macOS, Windows x64, Windows arm64, Linux x64; Linux arm64 skipped). dev took no file of this change since its base.

Not run: a real window; touch (where the chevron always shows); top tabs' pin groups, which this does not change; macOS; Linux.

Hona added 4 commits November 26, 2026 04:32
…ocus; a quote's source icon has its name

The four differences #1144 left open, with rune#2231 and rune#2215 from the pin bump.

A pin group's header and a Recent group's header: the row is a hover group that only the pointer lights; the chevron shows for the row's hover or the keyboard's focus on the toggle, on a 150 ms fade, and turns over the same time; the menu button shows for the row's hover or its own focus; a pin group's fill follows the row and is not drawn for focus; a Recent header's button has no fill and its words take the base ink (packages/app/src/shell/titlebar/pinned-area.tsx:350, :376, :417; recent-sessions.tsx:1201, :1222-1225, :1231).

A quote's source icon carries its source's name and shows it as a tooltip (packages/session-ui/src/message/user-message-quotes.tsx:76); the quote's description goes.
@Hona
Hona marked this pull request as ready for review November 25, 2026 23:31
@Hona
Hona merged commit 75cae15 into dev Nov 25, 2026
7 checks passed
@Hona
Hona deleted the upstream-f/pin-group-hover branch November 25, 2026 23:31
Hona added a commit that referenced this pull request Nov 26, 2026
… UP-226 (#1262) partly; UP-212 light-theme note (#1282)

Nine new official commits since c85b83eb08, none changing the desktop app, all skipped (6 server/core/ai/util, 1 cli-rs, 2 test-only). UP-232 -> partly (#1202 merged, three named gaps open). UP-226 -> partly (#1262 merged closing #1144's four differences; Recent header words under menu button and instant chevron turn remain open). UP-212 updated with the pin walk's light-theme reading.
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.

1 participant