Repository navigation
fix(ui): align Inbox popover tabs with hub tabs and theme the mascot icon - #128256
Conversation
…icon The sidebar Inbox popover reinvented its tab strip: pill-highlight tabs floating above an unrelated hairline, counts glued to labels as bare text, zero counts always rendered, and a doubled focus ring (Web Awesome's stock host outline plus the panel's own part ring). Replace the hand-rolled strip with the shared renderHubTabs sub variant so the popover gets the system's underline indicator, track hairline (doubling as the header separator), pill count badges, and single focus ring; zero counts drop their badge. The Ask OpenClaw lobster icon hardcoded a light-surface red gradient that sank into dark backgrounds; its colors now flow through --lobster-icon-* theme tokens (brighter stops in dark, original artwork in light). Also removes the dead focusTab branch in selectTab.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
The hub-tab strip names tabs by visible content (label + badge count), not the removed per-tab aria-label.
|
Codex review: needs changes before merge. Reviewed August 23, 2026, 12:23 PM ET / 16:23 UTC. ClawSweeper reviewWhat this changesThe PR replaces the Inbox popover’s bespoke tabs with shared hub-tab styling, hides zero-count badges, and makes the lobster icon theme-aware. Regression provenancePossible regression — suspected (reviewed change). No predecessor PR is attributed. Merge readinessKeep open: the visual consolidation is sound, but it removes the Inbox tablist’s accessible name for screen-reader users. Priority: P2 Review scores
Verification
Live VerificationCommand: Result: FAIL (partial) — step 2 Assertions:
How this fits togetherThe Control UI Inbox popover groups approvals, automation alerts, and system notices. Its tabs select which notices appear in the list below while the shared renderer supplies the tab control. flowchart LR
A[Inbox alerts and approvals] --> B[Sidebar attention panel]
B --> C[Shared hub tab renderer]
C --> D[Web Awesome tablist]
D --> E[Selected Inbox list]
F[Theme tokens] --> G[Mascot icon]
G --> B
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceSource -40, Tests +5. Total -35 across 7 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Copy recommended automerge instructionTechnical reviewBest possible solution: Move the existing internal-tablist label forwarding into the shared hub-tab renderer and cover it with a browser assertion. Do we have a high-confidence way to reproduce the issue? Yes. Current main calls the label-forwarding adapter, while the PR removes that call and the shared renderer does not replace it. Is this the best way to solve the issue? No. Reusing shared tabs is the right direction, but the shared owner must preserve the existing internal tablist-label adaptation. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 1d54ce376ec8. LabelsLabel justifications:
EvidenceAcceptance criteria:
What 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
|
Web Awesome does not forward the host aria-label to its internal [role=tablist], so every renderHubTabs surface (and the Inbox popover after its hub-tab migration) lost the tablist's accessible name. Route the label through syncTabGroupLabel inside the shared renderer and assert the shadow tablist label.
|
Merged via squash.
|
…icon (openclaw#128256) * fix(ui): align Inbox popover tabs with hub tabs and theme the mascot icon The sidebar Inbox popover reinvented its tab strip: pill-highlight tabs floating above an unrelated hairline, counts glued to labels as bare text, zero counts always rendered, and a doubled focus ring (Web Awesome's stock host outline plus the panel's own part ring). Replace the hand-rolled strip with the shared renderHubTabs sub variant so the popover gets the system's underline indicator, track hairline (doubling as the header separator), pill count badges, and single focus ring; zero counts drop their badge. The Ask OpenClaw lobster icon hardcoded a light-surface red gradient that sank into dark backgrounds; its colors now flow through --lobster-icon-* theme tokens (brighter stops in dark, original artwork in light). Also removes the dead focusTab branch in selectTab. * test(ui): match Inbox approvals tab accessible name to hub-tab content The hub-tab strip names tabs by visible content (label + badge count), not the removed per-tab aria-label. * fix(ui): forward hub-tab aria-label to the shadow tablist Web Awesome does not forward the host aria-label to its internal [role=tablist], so every renderHubTabs surface (and the Inbox popover after its hub-tab migration) lost the tablist's accessible name. Route the label through syncTabGroupLabel inside the shared renderer and assert the shadow tablist label.
What Problem This Solves
The sidebar Inbox popover's tab strip didn't fit the rest of the Control UI:
Approvals0).::part(base)ring.#ff4d4d → #991b1b) that sank into dark backgrounds.Why This Change Was Made
The system already has a canonical tab design —
renderHubTabs(ui/src/components/hub-tabs.ts+ui/src/styles/hub-tabs.css): quiet text tabs, hairline track, accent underline indicator, pill count badges that tint when active, and correct single-focus-ring handling. The popover's hand-rolled strip predated it. This PR deletes the bespoke tab implementation and reuses the shared one, scoped so the track hairline doubles as the header/list separator (the "line" now is the indicator's track, not a stray border).count: n > 0 ? n : null).--lobster-icon-*tokens: brighter stops on dark (:rootdefault), original artwork restored under[data-theme-mode="light"]. SVG presentation attributes can't carryvar(), so the stops use inlinestyle.focusTabbranch removed fromselectTab.Production LOC delta: ≈ −40 (panel runtime −22, sidebar-issues.css −41, attention −3, vs. +12 token block and +14 SVG style verbosity).
User Impact
The Inbox popover reads like the rest of the app: underline-indicator tabs with pill badges, no zero-count noise, one focus ring, and a mascot icon that stays legible in dark mode. No behavior change to tab filtering, approvals, or dismissal flows; tab ids (
sidebar-issues-tab-*) and the tabpanel wiring are unchanged.Evidence
Before / after (dark,
--fixture approvalmocked dev server):Focus state — doubled ring before, single soft accent ring after:
After, light theme:
Tab strip close-up (3x) — underline indicator + badges:
Zero counts hidden (default fixture, Approvals has 0):
Brightened dark-mode lobster:
Validation:
node scripts/check-changed.mjsgreen (format, oxlint, stylelint, tsgo core+UI, i18n verify, dead-export scan).node scripts/run-vitest.mjs ui/src/components/sidebar-attention— 14 passed.vitest run --config ui/vitest.config.ts src/components/sidebar-attention-layout.browser.test.ts(real Chromium) — updated to assert the hub-tab structure: full-width track hairline, pill badge geometry, no horizontal scroll, rails flush.--mode uncommitted): clean, no findings.