Skip to content

fix(ui): align Inbox popover tabs with hub tabs and theme the mascot icon - #128256

Merged
steipete merged 3 commits into
mainfrom
steipete/ui-redesign-sweep-38f751
Aug 23, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/ui-redesign-sweep-38f751

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

The sidebar Inbox popover's tab strip didn't fit the rest of the Control UI:

  • The active-tab pill highlight floated above an unrelated full-width hairline, so the "indicator" and the line never related to each other.
  • Counts were rendered as bare text glued next to the label (Approvals0).
  • Zero counts were always shown, adding noise for empty tabs.
  • Keyboard focus drew two rings at once: Web Awesome's stock host outline plus the panel's own ::part(base) ring.
  • The Ask OpenClaw lobster icon hardcoded a light-surface red gradient (#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).

  • Zero counts hide their badge (count: n > 0 ? n : null).
  • The lobster icon's colors now flow through --lobster-icon-* tokens: brighter stops on dark (:root default), original artwork restored under [data-theme-mode="light"]. SVG presentation attributes can't carry var(), so the stops use inline style.
  • Dead focusTab branch removed from selectTab.

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 approval mocked dev server):

Before After
before dark after dark

Focus state — doubled ring before, single soft accent ring after:

Before After
before focus after focus

After, light theme: after light

Tab strip close-up (3x) — underline indicator + badges: tabs zoom

Zero counts hidden (default fixture, Approvals has 0): tabs zero

Brightened dark-mode lobster: header dark

Validation:

  • node scripts/check-changed.mjs green (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.
  • Codex autoreview (--mode uncommitted): clean, no findings.

…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.
@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@steipete
steipete marked this pull request as ready for review August 23, 2026 15:40
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: S maintainer Maintainer-authored PR labels Aug 23, 2026
The hub-tab strip names tabs by visible content (label + badge count), not
the removed per-tab aria-label.
@clawsweeper clawsweeper Bot added rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. P2 Normal backlog priority with limited blast radius. merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. labels Aug 23, 2026
@clawsweeper

clawsweeper Bot commented Aug 23, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge. Reviewed August 23, 2026, 12:23 PM ET / 16:23 UTC.

ClawSweeper review

What this changes

The 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 provenance

Possible regression — suspected (reviewed change). No predecessor PR is attributed.

Merge readiness

⚠️ Ready for maintainer review - 4 items remain

Keep open: the visual consolidation is sound, but it removes the Inbox tablist’s accessible name for screen-reader users.

Priority: P2
Reviewed head: 854c6f467620ec2f5939ee21a74c930bd59114fe

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch has strong visual intent but needs one focused accessibility repair before it is ready.
Proof confidence 🌊 off-meta tidepool Not applicable: Not applicable: this maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless supplies before/after UI screenshots.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: Not applicable: this maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless supplies before/after UI screenshots.
Evidence reviewed 5 items Dependency contract signal: The repository’s Web Awesome adapter imports the tab-group runtime and documents that a host aria-label is not forwarded to its internal shadow tablist.
Existing accessible behavior: Current main explicitly calls the adapter to set the Inbox tablist label after the tab group renders.
Introduced regression: The PR switches the Inbox to the shared renderer, which sets only the host aria-label and does not invoke the adapter.
Findings 1 actionable finding [P2] Preserve the Inbox tablist’s accessible name
Security None None.

Live Verification

Command: node scripts/run-vitest.mjs ui/src/components/sidebar-attention-layout.browser.test.ts

Result: FAIL (partial) — step 2 expect_output Inbox panel layout: expected terminal output was not visible within 30 seconds: "Inbox panel layout"

node scripts/run-vitest.mjs ui/src/components/sidebar-attention-layout.browser.test.ts
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128256-bWacmB/target$ node scripts/run-vitest.mjs ui/src/components/sidebar-attention-layout.browser.test.ts
[test] starting test/vitest/vitest.ui.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-128256-bWacmB/target

node scripts/run-vitest.mjs ui/src/components/sidebar-attention-layout.browser.test.ts
 ↓  ui  ui/src/components/sidebar-attention-layout.browser.test.ts (1 test | 1 skipped)

 Test Files  1 skipped (1)
      Tests  1 skipped (1)
   Start at  16:24:21
   Duration  1.20s (transform 339ms, setup 101ms, import 102ms, tests 0ms, environment 610ms)

[test] passed 1 Vitest shard in 1.65s
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128256-bWacmB/target$ node scripts/run-vitest.mjs ui/src/components/sidebar-attention-layout.browser.test.ts
[test] starting test/vitest/vitest.ui.config.ts

 RUN  v4.1.10 /tmp/clawsweeper-live-proof-128256-bWacmB/target

 ↓  ui  ui/src/components/sidebar-attention-layout.browser.test.ts (1 test | 1 skipped)

 Test Files  1 skipped (1)
      Tests  1 skipped (1)
   Start at  16:24:23
   Duration  1.01s (transform 164ms, setup 53ms, import 81ms, tests 0ms, environment 597ms)

[test] passed 1 Vitest shard in 1.45s
runner@runnervm76f27:/tmp/clawsweeper-live-proof-128256-bWacmB/target$






















Assertions:

  • FAIL expect_output: Inbox panel layout

How this fits together

The 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
Loading

Before merge

  • Preserve the Inbox tablist’s accessible name (P2) - This replaces the current Inbox-specific syncTabGroupLabel binding with renderHubTabs. The shared renderer only labels the host, while web-awesome-tabs.ts documents that Web Awesome does not forward that label to its shadow [role="tablist"]; the Inbox tab control therefore loses its accessible name. Put the forwarding in the shared renderer (or retain it here) and assert the shadow tablist label.
  • Resolve merge risk (P1) - Merging would leave the Inbox tablist without its accessible name even though the visible label remains.
  • Resolve merge risk (P1) - The read-only checkout lacks the installed Web Awesome package source; the repository-owned adapter is direct evidence of the required behavior.
  • Complete next step (P2) - A narrow shared-renderer repair can address the blocking accessibility defect without changing product direction.

Findings

  • [P2] Preserve the Inbox tablist’s accessible name — ui/src/components/sidebar-attention-panel.runtime.ts:134-149
Agent review details

Security

None.

PR surface

Source -40, Tests +5. Total -35 across 7 files.

View PR surface stats
Area Files Added Removed Net
Source 5 58 98 -40
Tests 2 23 18 +5
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 7 81 116 -35

Review metrics

Metric Value Why it matters
Production versus test LOC production +58/-98, tests +23/-18 The refactor is net-negative production code, but it removes an accessibility-specific binding that must be retained.

Merge-risk options

Maintainer options:

  1. Restore the internal tablist label (recommended)
    Update the shared renderer so the supplied accessible label reaches Web Awesome’s shadow tablist, then add focused browser coverage.
Copy recommended automerge instruction
@clawsweeper automerge

Special instructions:
Restore shared tablist accessible-name forwarding and add a focused browser assertion.

Technical review

Best 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:

  • [P2] Preserve the Inbox tablist’s accessible name — ui/src/components/sidebar-attention-panel.runtime.ts:134-149
    This replaces the current Inbox-specific syncTabGroupLabel binding with renderHubTabs. The shared renderer only labels the host, while web-awesome-tabs.ts documents that Web Awesome does not forward that label to its shadow [role="tablist"]; the Inbox tab control therefore loses its accessible name. Put the forwarding in the shared renderer (or retain it here) and assert the shadow tablist label.
    Confidence: 0.98

Overall correctness: patch is incorrect
Overall confidence: 0.98

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against 1d54ce376ec8.

Labels

Label justifications:

  • P2: The patch introduces a bounded accessibility regression in the Inbox filter tabs.
  • merge-risk: 🚨 other: The UI refactor can remove the accessible name from the internal tablist despite preserving its visible label.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: Not applicable: this maintainer-authored PR is exempt from the external-contributor proof gate; its body nevertheless supplies before/after UI screenshots.

Evidence

Acceptance criteria:

  • [P1] node scripts/run-vitest.mjs ui/src/components/hub-tabs.test.ts.
  • [P1] node scripts/run-vitest.mjs ui/src/components/sidebar-attention-layout.browser.test.ts.

What I checked:

Likely related people:

  • Ayaan Zaidi: The available local blame baseline attributes the Web Awesome tab accessibility adapter to this commit; partial history prevents stronger feature ownership attribution. (role: current-main provenance contributor; confidence: low; commits: 500c9b4ea64c; files: ui/src/components/web-awesome-tabs.ts, ui/src/components/sidebar-attention-panel.runtime.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Restore the internal tablist label and add a browser assertion for it.

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

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.
@steipete
steipete merged commit 917fab2 into main Aug 23, 2026
150 checks passed
@steipete
steipete deleted the steipete/ui-redesign-sweep-38f751 branch August 23, 2026 16:54
@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 24, 2026
…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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

app: web-ui App: web-ui maintainer Maintainer-authored PR merge-risk: 🚨 other 🚨 Merging this PR has meaningful risk outside the owned taxonomy. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: M status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant