Repository navigation
improve(ui): lift sidebar section headers on hover and mark online owners - #136985
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: blocked before merge. Reviewed September 3, 2026, 12:12 PM ET / 16:12 UTC. ClawSweeper reviewWhat this changesThe PR brightens Control UI sidebar headers and, under person grouping, adds owner presence indicators and access to the shared person activity card. Merge readiness⛔ Blocked before merge - 3 items remain Keep open: the prior accessibility concern is addressed, but the new self-exclusion logic regresses an established gateway snapshot shape and can add a presence dot and person-card action to the viewer’s own section. Priority: P3 Review scores
Verification
How this fits togetherThe Control UI sidebar combines loaded session ownership with live Gateway presence to render grouped session headers. Header person actions use the shared people-card runtime to show current activity and authorized session links. flowchart LR
A[Gateway session list] --> C[Person-grouped sidebar]
B[Gateway presence] --> C
C --> D[Owner header]
D --> E[Shared people-card runtime]
E --> F[Activity card and session links]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource +181, Tests +169, Docs +1. Total +351 across 12 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Derive the self profile id from the typed identity when present and otherwise from the canonical self id, then exclude that id from both the header presence map and person-card action; cover the id-only snapshot with a focused regression case. Do we have a high-confidence way to reproduce the issue? Yes, from source: combine an id-only snapshot self user with a typed-profile self presence entry and a matching person-owned session; the new map retains that self profile while the header guard treats it as another person. Is this the best way to solve the issue? No. The intended shared projection is sound, but it must use the same canonical self id precedent as person grouping so optional identity metadata does not change self exclusion. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 3755763d7949. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (3 earlier review cycles)
|
…ners Sidebar section headers now lift their label to the text color while hovered or keyboard-focused, in every grouping mode, without a background fill: headers toggle rather than navigate, so they get the row color lift but not the row pill. Under Group by Person, the owner avatar in a section header carries a small green dot while that profile has live presence. The dot fades once the Online roster's idle rule applies and disappears on disconnect. It reuses the roster's presence projection and idle rule, is computed once per person-grouped list render, and is never shown on the viewer's own section. The dot is a role="img" element labeled "Online" or "Idle", matching the existing attention dot on the same headers. Surface: Control UI sessions sidebar (section headers, Group by Person). Docs: concepts/multi-user "Reading the avatars".
Under Group by Person, another person's section header is now a chevron collapse toggle plus a person button (avatar + name) that opens the same activity card the Online roster rows open: hover, keyboard focus, click, or tap; click pins it like a roster row, and a chevron press collapses the section and dismisses the card. The people runtime keys off a generic data-person-card region instead of roster-only selectors, so both surfaces share one controller, one card, and one lazy-load path. Owners who are not connected get the card too, marked Offline with a muted dot, without ephemeral connection facts, and with their recent sessions and the Activity link; the runtime builds that identity from the loaded roster's owner/creator attribution. The viewer's own section and agent-owned sections keep the classic single toggle. Other grouping modes are unchanged. Surface: Control UI sessions sidebar (Group by Person headers, people card). Docs: concepts/multi-user "People cards".
The person button now exposes its live Online/Idle state as its accessible description via aria-describedby on the presence indicator. The sidebar test follows main's /activity/<id> person routing.
7a8a41f to
e43fe98
Compare
|
Applied the accessibility rank-up move: the person-header action now exposes Online/Idle as its accessible description via Rebased onto main. The two red lanes ( All five requested local gates pass: focused sidebar presence tests, person-grouping browser E2E, changed-file checks, UI style lint, and i18n verification. New head: e43fe98 |
|
Merged via squash.
|
* refs/remotes/origin/main: fix(plugins): reject unverifiable pinned npm installs (#136725) improve(ui): lift sidebar section headers on hover and mark online owners (#136985) test(cron): reuse isolated run suite hooks (#137341) test(channels): reuse shared indexed call guards (#137350) fix(ui): sidebar header controls read misaligned after the + button lost its border (#137317) fix(qa-channel): preserve conversation kind for implicit actions (#137343) fix: target the source checkout in Control UI repair commands (#137354) chore: reduce CI job count and database test overhead (#137352) fix(ios): preserve chat live edge across keyboard transitions (#136660) refactor(control-ui): consolidate mention inbox requests (#137375) fix(openai): preserve ChatGPT HTTP status for retry pacing (#137146) fix(mcp): hide policy-denied plugin tools from ACP sessions [AI] (#136546) test(queue): reuse shared deferred fixtures (#137338) fix(gateway): repair the Gateway E2E shard (browser suite project, skill resource argv, Codex diagnostic) (#137358)
…ners (openclaw#136985) * improve(ui): lift sidebar section headers on hover and mark online owners Sidebar section headers now lift their label to the text color while hovered or keyboard-focused, in every grouping mode, without a background fill: headers toggle rather than navigate, so they get the row color lift but not the row pill. Under Group by Person, the owner avatar in a section header carries a small green dot while that profile has live presence. The dot fades once the Online roster's idle rule applies and disappears on disconnect. It reuses the roster's presence projection and idle rule, is computed once per person-grouped list render, and is never shown on the viewer's own section. The dot is a role="img" element labeled "Online" or "Idle", matching the existing attention dot on the same headers. Surface: Control UI sessions sidebar (section headers, Group by Person). Docs: concepts/multi-user "Reading the avatars". * feat(ui): open the person card from Group by Person section headers Under Group by Person, another person's section header is now a chevron collapse toggle plus a person button (avatar + name) that opens the same activity card the Online roster rows open: hover, keyboard focus, click, or tap; click pins it like a roster row, and a chevron press collapses the section and dismisses the card. The people runtime keys off a generic data-person-card region instead of roster-only selectors, so both surfaces share one controller, one card, and one lazy-load path. Owners who are not connected get the card too, marked Offline with a muted dot, without ephemeral connection facts, and with their recent sessions and the Activity link; the runtime builds that identity from the loaded roster's owner/creator attribution. The viewer's own section and agent-owned sections keep the classic single toggle. Other grouping modes are unchanged. Surface: Control UI sessions sidebar (Group by Person headers, people card). Docs: concepts/multi-user "People cards". * fix(ui): describe person-header presence for assistive tech The person button now exposes its live Online/Idle state as its accessible description via aria-describedby on the presence indicator. The sidebar test follows main's /activity/<id> person routing. * refactor(ui): keep the presence description note out of the rendered header
What Problem This Solves
Session section headers in the Control UI sidebar felt inert: hovering a header only revealed its chevron and action buttons while the uppercase label stayed muted, even though every session row and every person in the Online roster lights up under the pointer. Under Group by Person the header avatar carried no presence signal, and the person it names had no way to open the same information card the Online roster offers, so seeing who is around and what they are working on meant scrolling back up to the roster or opening the Activity page.
Why This Change Was Made
Three deliberately quiet additions to the shared section header (
.sidebar-recent-sessions__head, used by custom groups, person/project sections, coding catalogs, and the Online section)::focus-visibleelement, its label and inherited color lift from muted to--text, the same lift session rows do. There is intentionally no background pill: a pill implies "this goes somewhere", and headers toggle rather than navigate. The rule applies uniformly in every grouping mode.--okdot with a background ring while that profile has live presence. The dot fades (opacity: 0.45) once the roster's idle rule applies (no input for two minutes) and disappears when they leave. The signal comes from the same presence projection and idle rule the Online roster uses (projectPresenceViewers+isPresenceViewerIdle), computed once per person-grouped list render. The viewer's own section never shows a dot. The dot is arole="img"element labeled "Online" or "Idle", mirroring the existing attention dot on the same headers.data-person-cardregion instead of roster-only selectors, so both surfaces share one controller, one card, and one lazy-load path. An owner who is not connected gets the card too, marked Offline with a muted dot, no ephemeral connection facts, and their recent sessions plus the Activity link; the runtime builds that identity from the loaded roster's owner/creator attribution. The viewer's own section and agent-owned sections keep the classic single toggle (no card, no dot).Why a separate person button rather than opening the card from the whole header: on touch there is no hover, so the person's name must be tappable to reach the card at all, and the collapse toggle must keep its own
aria-expanded. Other grouping modes keep today's single-toggle header byte-for-byte.Non-goals: no header background pill, no changes to card positioning or delays, no changes to the Online roster's behavior, no new config.
User Impact
Section headers respond to the pointer and keyboard like the rest of the sidebar. Under Group by Person you can see at a glance which session owners are online, idle, or away, and hovering, focusing, or tapping a person's name in their section header opens their card (online status, where they are connected, last activity, what they are viewing, recent sessions, View activity) without leaving the list. Offline owners still get a card with their recent sessions and the Activity link. Docs: Reading the avatars and People cards.
Evidence
Tests:
ui/src/test-helpers/app-sidebar-cases/presence.tsdrives the real sidebar through gateway presence events under person grouping: dot with "Online",--idlewith "Idle", removed on disconnect; Bob (absent) and the viewer's own section have no dot and the viewer's section has no card trigger. It then opens Ada's card from her header button (h2 "Ada", status "Online", collapse toggle still reports its own expanded state), closes it with Escape (focus returns to the button), proves a real chevron press collapses the section and dismisses the card, and opens Bob's offline card (status "Offline", no facts list, Recent sessions link, View activity link).ui/src/e2e/session-person-grouping-presence.e2e.test.tsasserts the hovered header label's computed color equals--text, that only Ada's section carries the dot, that hovering Ada's header button shows the "Activity for Ada" dialog, and that hovering Bob's shows an "Offline" card without facts.ui/src/e2e/people-activity-card.e2e.test.ts(roster) still passes on the generalized runtime.pnpm test ui/src/components/app-sidebar.test.ts -t presenceand-t ownership, both e2e files,node scripts/check-changed.mjs,pnpm lint:ui:styles,pnpm ui:i18n:verify: green.pnpm ui:i18n:baselineregenerated no baseline change.Before/after, dark theme, mocked gateway through the Control UI e2e harness (Playwright + Chromium). "You" is the signed-in viewer; Ada and Bob are other owners. Rows under Ada show her avatar only while she is viewing that session, which is existing behavior.
The card from a person header (before: hovering a header did nothing beyond revealing the chevron):
After, 2x: hover the "ADA" header, Ada connects, her card opens from the header, Ada goes idle, Ada disconnects, then Bob's offline card. The "YOU" section never gets a dot or a card.
attachment-2102624804.mp4