Skip to content

test(ui): load the sidebar Pages stylesheet in the Pages layout case - #200847

Merged
vincentkoc merged 1 commit into
mainfrom
fix/sidebar-pages-test-stylesheet-20261117
Nov 17, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/sidebar-pages-test-stylesheet-20261117

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Problem

ui/src/components/app-sidebar.sessions.test.ts › "keeps Pages flat and rail pins independently ordered" fails on main. The case injects sidebar-reorder.css and sidebar-rail.css by name, then asserts the Pages row is display: flex; align-items: center. #200013 moved the .sidebar-pages__entry rules out of sidebar-rail.css into a new sidebar-pages.css imported by app-sidebar-pages.tsx, so the injected styles no longer contain them and the row computes as display: block.

The component and stylesheets are correct; only the test fixture is stale. This currently fails checks-ui for PRs whose CI selects the UI lanes.

Change

Add sidebar-pages to the stylesheets the case injects. No product change.

Proof

  • app-sidebar.sessions.test.ts: 1 failed / 111 passed on main at 0c19bcdf293; 112/112 with this change.
  • pnpm check:changed passes.

Follow-up to the side-rail series #200010, #200011, #200012 and #200013 by @vyctorbrzezowski.

@clawsweeper

clawsweeper Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@vincentkoc
vincentkoc marked this pull request as ready for review November 17, 2026 23:23
@vincentkoc
vincentkoc enabled auto-merge (squash) November 17, 2026 23:27
@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 17, 2026
@clawsweeper

clawsweeper Bot commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR loads sidebar-pages.css in the existing Pages layout test.

Example: Run the Pages layout case with the example/boards plugin entry.

  • Before: The fixture omits the Pages stylesheet, so the row computes as display: block and fails the flex-layout assertion.
  • After: The fixture loads the owning stylesheet, supplying display: flex and align-items: center.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) A minimal, source-verified test repair with reported red/green validation and no findings; independent runtime confirmation remains limited to available CI results.
Proof confidence 🦐 gold shrimp (3/6) This changes test setup only; inspected related-series screenshots show navigation UI rather than this repair, and shipped-entry-point proof is unnecessary.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes · Fix scope: Complete
User problem: UI CI reports a layout failure despite the production component loading the correct stylesheet.
Reason: The maintainer-authored repair restores useful validation without weakening assertions or changing product behavior.

Regression provenance

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

Merge readiness

✅ Ready for maintainer review

Keep open: this maintainer-authored PR makes the smallest complete repair to a stale test fixture, preserves its assertions, and introduces no actionable defect.

Priority: P2
Reviewed head: 99bf9e0735c488a4f2443b388fe673c569bc19bd

Before merge

None.

Findings

None.

Agent review details

How this fits together

The sidebar test mounts the real UI components with synthetic navigation data and injects production CSS before checking rendered structure, computed styles, and pin ordering.

flowchart LR
  A[Sidebar test suite] --> B[Pages layout case]
  C[Production stylesheets] --> B
  D[Synthetic plugin navigation] --> B
  B --> E[Mounted sidebar]
  E --> F[Layout and ordering assertions]
Loading

Technical review

Best possible solution:

Retain the single fixture-list addition so the existing assertions consume the production stylesheet that owns Pages layout.

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

The omitted stylesheet and unchanged computed-style assertions establish the failure path, supported by the author's reported red/green run; no tests were executed during this read-only review.

Is this the best way to solve the issue?

This directly repairs the fixture's missing input while respecting the intentional lazy stylesheet split and preserving coverage.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against c97a173b040b.

Provenance checked

  • Explicit stylesheet fixture keeps the original intent (524f17f: The prior test consolidation preserved distinct behavior checks; the explicit stylesheet fixture supports computed-style assertions.)
  • Lazy Pages stylesheet ownership keeps the original intent (cc8d64a: Load Pages row and pin styles with the existing lazy component without adding Chat or New Session startup requests.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

PR surface

Tests 0. Total 0 across 1 file. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Labels

Label changes:

  • add P2: A focused test-fixture defect breaks UI validation without changing shipped user behavior.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P2: A focused test-fixture defect breaks UI validation without changing shipped user behavior.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 17, 2026, 6:36 PM ET / 23:36 UTC.

@vincentkoc
vincentkoc merged commit 32aeb42 into main Nov 17, 2026
213 of 216 checks passed
@vincentkoc
vincentkoc deleted the fix/sidebar-pages-test-stylesheet-20261117 branch November 17, 2026 23:50
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash auto-merge.

vyctorbrzezowski added a commit that referenced this pull request Nov 18, 2026
…ts (#200808)

Rework the Automations detail view around the prompt and run history.

Maintainer approved the CI budget exception: total CSS 337,923 B gzip / 1,743,065 B raw, 611 B / 2,831 B above the ceilings. Startup CSS is unchanged. The other CI failure is the inherited Pages stylesheet fixture already fixed by #200847.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
…ts (openclaw#200808)

Rework the Automations detail view around the prompt and run history.

Maintainer approved the CI budget exception: total CSS 337,923 B gzip / 1,743,065 B raw, 611 B / 2,831 B above the ceilings. Startup CSS is unchanged. The other CI failure is the inherited Pages stylesheet fixture already fixed by openclaw#200847.

Co-authored-by: Vyctor H. Brzezowski <[email protected]>
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 P2 Normal backlog priority with limited blast radius. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant