Skip to content

fix(ui): sidebar section chevrons after labels, collapsed-only counts - #110448

Merged
steipete merged 1 commit into
mainfrom
claude/arrow-positioning-grid-c146e6
Jul 18, 2026
Merged

steipete merged 1 commit into
mainfrom
claude/arrow-positioning-grid-c146e6

Conversation

@steipete

Copy link
Copy Markdown
Contributor

What Problem This Solves

Sidebar section headers (Threads, Groups, Coding, and native-session catalogs) rendered the collapse chevron before the label, so section labels sat indented relative to the session titles below them instead of sharing one left edge. Headers also always showed a row count, which is redundant noise while a section is expanded and its rows are visible.

Why This Change Was Made

Requested by the maintainer: chevron should follow the label so section labels and session titles align in one grid, and the counter should only appear when a section is collapsed (when the count is the only signal of hidden content).

User Impact

  • Section labels now left-align with session titles below them (THREADS, then chevron).
  • Row counts render only while a section is collapsed and non-empty (THREADS › 6); expanded sections show just the label and chevron.
  • Catalog error indicators (alert triangle) still render regardless of collapse state.
  • Header left inset now matches the session-row text inset (9px) so both columns share one grid line.

Before / after (expanded) and after (collapsed):

Before After (expanded) After (collapsed)
before after expanded after collapsed

Evidence

  • node scripts/run-vitest.mjs ui/src/components/app-sidebar.test.ts — 107 tests pass.
  • Live-verified in the Control UI mock harness (dev:ui:mock): expanded zones show label + chevron with no count; collapsed Threads/Coding show THREADS › 6 / CODING › 1; screenshots above are from that harness.
  • ui/src/e2e/codex-sessions.e2e.test.ts updated: the expanded catalog section now asserts the count element is absent (counts are collapsed-only).
  • Codex autoreview (gpt-5.6-sol) clean: no accepted/actionable findings.

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: XS maintainer Maintainer-authored PR labels Jul 18, 2026
@steipete
steipete merged commit 679f9fc into main Jul 18, 2026
109 of 114 checks passed
@steipete
steipete deleted the claude/arrow-positioning-grid-c146e6 branch July 18, 2026 05:50
@clawsweeper clawsweeper Bot added proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 18, 2026
@clawsweeper

clawsweeper Bot commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs real behavior proof before merge. Reviewed July 18, 2026, 1:48 AM ET / 05:48 UTC.

Summary
The branch moves sidebar-section chevrons after their labels, limits non-error row counts to collapsed sections, aligns the header inset with session-row text, and updates the associated E2E assertion.

PR surface: Source -2, Tests -1. Total -3 across 4 files.

Reproducibility: yes. from source: both header renderers currently have a distinct count element whose visibility is governed by collapsed state in this patch. A full visual reproduction was not independently run in this read-only pass.

Review metrics: none identified.

Merge readiness
Overall: 🦐 gold shrimp
Proof: 🦐 gold shrimp
Patch quality: 🐚 platinum hermit
Result: blocked until stronger real behavior proof is added.

Overall follows the weaker of proof and patch quality, so missing proof can cap an otherwise strong patch.

Rank-up moves:

  • Confirm the linked before/after screenshots visibly cover expanded and collapsed headers plus catalog-error indicator behavior.
  • Record the explicit maintainer decision on whether expanded section counts should be hidden everywhere.

Proof guidance:

  • [P1] Needs stronger real behavior proof before merge: The PR supplies Control UI mock-harness screenshots and a successful dedicated proof check, but the linked images could not be independently inspected in this review pass; before merge, confirm the evidence is redacted and visibly demonstrates expanded, collapsed, and catalog-error behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Risk before merge

  • [P1] The change intentionally removes expanded-state count visibility across both built-in sections and native-session catalogs; maintainer review should confirm that this presentation rule remains desirable for all catalog variants.
  • [P1] The live screenshots linked from the PR body could not be independently inspected here, so their coverage of expanded, collapsed, and error states remains unconfirmed by this review.

Maintainer options:

  1. Decide the mitigation before merge
    Confirm the supplied before/after evidence covers regular, catalog, and error headers, then land the focused visual consistency change if the collapsed-only count rule is the intended Control UI convention.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Next step before merge

  • [P1] Protected maintainer UI direction and independently uninspected screenshot evidence require a human acceptance decision, not an automated repair.

Maintainer decision needed

  • Question: Should the protected maintainer UI direction—show numeric section counts only while collapsed—be accepted consistently for both ordinary session sections and native-session catalogs?
  • Rationale: The patch applies a deliberate presentation policy across two header implementations; the maintainer label requires an explicit human decision rather than automated cleanup.
  • Likely owner: steipete — The supplied PR context identifies steipete as both the author and the source of the requested UI direction.
  • Options:
    • Accept collapsed-only counts (recommended): Confirm that counts should be hidden while rows are visible and retained only as a collapsed-section summary across all sidebar catalog types.
    • Keep expanded counts for selected catalogs: Specify any catalog or error-state exception that needs a different information-density rule before this branch is merged.

Security
Cleared: The four-file UI, CSS, and test-only diff adds no dependency, workflow, permission, secret, package-resolution, or executable-artifact surface.

Review details

Best possible solution:

Confirm the supplied before/after evidence covers regular, catalog, and error headers, then land the focused visual consistency change if the collapsed-only count rule is the intended Control UI convention.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: both header renderers currently have a distinct count element whose visibility is governed by collapsed state in this patch. A full visual reproduction was not independently run in this read-only pass.

Is this the best way to solve the issue?

Unclear pending maintainer confirmation: the patch is a narrow shared presentation rule and updates the adjacent E2E expectation, but hiding expanded counts is a deliberate UI-policy choice rather than a mechanically required bug fix.

AGENTS.md: found and applied where relevant.

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

Label changes

Label changes:

  • add P3: This is a narrowly scoped Control UI presentation refinement with no indicated data, security, delivery, or availability impact.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR supplies Control UI mock-harness screenshots and a successful dedicated proof check, but the linked images could not be independently inspected in this review pass; before merge, confirm the evidence is redacted and visibly demonstrates expanded, collapsed, and catalog-error behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR supplies Control UI mock-harness screenshots and a successful dedicated proof check, but the linked images could not be independently inspected in this review pass; before merge, confirm the evidence is redacted and visibly demonstrates expanded, collapsed, and catalog-error behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.

Label justifications:

  • P3: This is a narrowly scoped Control UI presentation refinement with no indicated data, security, delivery, or availability impact.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 📣 needs proof: The PR needs real behavior proof before ClawSweeper can clear the contributor ask. Needs stronger real behavior proof before merge: The PR supplies Control UI mock-harness screenshots and a successful dedicated proof check, but the linked images could not be independently inspected in this review pass; before merge, confirm the evidence is redacted and visibly demonstrates expanded, collapsed, and catalog-error behavior. After adding proof, update the PR body; ClawSweeper should re-review automatically. If it does not, the PR author or someone with repository write access can comment @clawsweeper re-review.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The PR supplies Control UI mock-harness screenshots and a successful dedicated proof check, but the linked images could not be independently inspected in this review pass; before merge, confirm the evidence is redacted and visibly demonstrates expanded, collapsed, and catalog-error behavior.
Evidence reviewed

PR surface:

Source -2, Tests -1. Total -3 across 4 files.

View PR surface stats
Area Files Added Removed Net
Source 3 18 20 -2
Tests 1 2 3 -1
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 20 23 -3

What I checked:

  • Protected maintainer handling: The provided PR context includes the maintainer label; repository review policy requires protected-label items to remain open for explicit maintainer handling.
  • Changed catalog behavior: The catalog-header branch renders an alert indicator regardless of collapse state, but renders a numeric count only when the catalog is collapsed and has rows. (ui/src/components/app-sidebar-session-catalogs.ts:200, 8600ae9559bb)
  • Changed built-in section behavior: The built-in section header now renders its numeric count only when collapsed and non-empty, while retaining the running-state indicator separately. (ui/src/components/app-sidebar-session-list.ts:361, 8600ae9559bb)
  • Focused regression assertion: The E2E change asserts that an expanded native-session catalog has no count element, matching the proposed collapsed-only rule. (ui/src/e2e/codex-sessions.e2e.test.ts:272, 8600ae9559bb)
  • Submitted validation context: The PR body reports 107 focused sidebar tests passing, a Control UI mock-harness live verification, and screenshot evidence; the supplied check state also shows the dedicated Real behavior proof check succeeded. (8600ae9559bb)

Likely related people:

  • steipete: The PR body says the visual behavior was requested by a maintainer, and the only supplied commit implementing this UI adjustment is authored by steipete; deeper current-main provenance could not be collected in the restricted read-only execution environment. (role: requested UI direction and branch author; confidence: low; commits: 8600ae9559bb; files: ui/src/components/app-sidebar-session-catalogs.ts, ui/src/components/app-sidebar-session-list.ts, ui/src/styles/layout.css)
What the crustacean ranks mean
  • 🦀 challenger crab: rare, exceptional readiness with strong proof, clean implementation, and convincing validation.
  • 🦞 diamond lobster: very strong readiness with only minor maintainer review expected.
  • 🐚 platinum hermit: good normal PR, likely mergeable with ordinary maintainer review.
  • 🦐 gold shrimp: useful signal, but proof or patch confidence is still limited.
  • 🦪 silver shellfish: thin signal; proof, validation, or implementation needs work.
  • 🧂 unranked krab: not merge-ready because proof is missing/unusable or there are serious correctness or safety concerns.
  • 🌊 off-meta tidepool: rating does not apply to this item.

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.

How this review workflow works
  • 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.

@steipete

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant