Skip to content

feat(ui): peek a section's sidebar from the closed rail - #199826

Merged
vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/side-rail-06-rail-peek
Nov 17, 2026
Merged

vyctorbrzezowski merged 4 commits into
mainfrom
brzezowski/side-rail-06-rail-peek

Conversation

@vyctorbrzezowski

@vyctorbrzezowski vyctorbrzezowski commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

What Problem This Solves

With the sidebar closed, seeing a section's list means opening the whole sidebar.

User Impact

Hovering a rail section while the sidebar is closed peeks its sidebar; leaving closes it again.

Why This Change Was Made

Adds the peek to the rail on top of the per-section sidebars.

Evidence

Screenshots come from the Control UI mock at the end of the series, so the after image can show later parts too.

Closed rail before, and the People peek after (left: main, right: after):

Closed rail before, and the People peek after

  • pnpm tsgo:ui passes at this PR's head.
  • The unit tests of the files this PR touches pass at its head; the full UI unit suite passes at the end of the series (one failure also on main: a Workboard German relative-time string, "vor 1min", from the local ICU).
  • Local autoreview (Codex) over the whole series; its three findings are fixed in this series.
  • The full UI e2e suite was not run locally.

Side rail series, part 5 of 16. Stacked on #199825; review only this PR's commits.

Approved navigation-stack JS budget

Vyctor approved the measured JavaScript byte cost for this navigation stack. These cumulative measurements compare this layer with paired main base 1d82bed0a7fef79012c38ea7e6184911aba27e63. Each cap equals the original main cap plus the measured delta, preserving existing headroom without adding another margin.

Metric Cumulative gzip delta Cap
Largest JS asset +2,976 B 575,416 B
Chat boot JS +3,172 B 1,328,752 B
New Session boot JS +3,010 B 819,642 B

CSS ceilings, request counts, startup ceilings and gate logic are unchanged. Byte measurements are delivery-size evidence, not latency measurements.

Maintainer validation

Reviewed and rebased this layer on predecessor 9dc0cd4d918ca44b6b92406de7aeb41104921d9c; current head is b9be8d9a278cdc16e9c4e93f336fa1c08d156830. The own-layer tree, original human authors and signatures were checked. UI typechecking passed on this candidate. Previously verified functional and integrated visual proof was reused where inputs are unchanged; the maintainer also exercised the integrated stack on a real Gateway.

The listener repair preserves hover timing, touch/mobile exclusion, navigation and cleanup. The existing rail-peek browser E2E passed.

The maintainer authorized sequential CI bypass after repairing known PR-caused failures. Hosted CI may still be running; this is not a claim of full hosted CI success. The unrelated owner-approval timing failure is tracked separately in #200810.

@clawsweeper

clawsweeper Bot commented Nov 15, 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.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 15, 2026
@clawsweeper

clawsweeper Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs changes before merge.

What this changes

This PR adds temporary sidebar previews when hovering over sections in the collapsed desktop rail.

Example: At 1280 × 800, hover over Users with the sidebar collapsed.

  • Before: Viewing the Users list requires opening the sidebar.
  • After: After 300 ms, the Users sidebar floats over the content without changing the page.

Review scores

Measure Result What it means
Overall readiness 🧂 unranked krab (1/6) Useful, focused feature direction, but the draft has two actionable defects and no supplied behavior proof.
Proof confidence 🧂 unranked krab (1/6) Real behavior proof is not required for maintainer- or bot-authored pull requests.
Patch quality 🦪 silver shellfish (2/6) 2 actionable review findings remain.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: Users must fully open the sidebar to inspect a section's list.
Reason: The maintainer-authored direction provides a useful preview while reusing the existing sidebar and preserving the page layout.

Merge readiness

⛔ Needs changes before merge - 2 items remain

Keep this maintainer-authored draft open; the feature has clear value, with two focused repairs needed before completion.

Priority: P3
Reviewed head: 795c3533ab210242cf569bff96c90f6a6e21a805

Before merge

  • Preserve selection-only clicks inside the Sessions peek (P2) - With the sidebar collapsed, hover Sessions and Alt-click or Shift-click a session row. The existing row handler toggles or extends selection without navigating, but this handler sees an anchor and calls end(true), hiding the list immediately. Dismiss on navigation intent while preserving the existing selection gestures, and cover this case in the sidebar tests.
  • Use the supported listener bindings for peek events (P2) - These direct addEventListener calls, together with the pointerover binding below, violate the applicable Solid policy and match the explicit TSX rejection in scripts/check-control-ui-controllers.mts. The normal controller check will reject this production file. Use JSX handlers or the existing listen/nativeListener primitives with paired cleanup instead of adding direct TSX listeners.

Findings

  • [P2] Preserve selection-only clicks inside the Sessions peek — ui/src/components/app-sidebar-rail.tsx:155-158
  • [P2] Use the supported listener bindings for peek events — ui/src/components/app-sidebar-rail.tsx:120-121

Tests

  • Missing end-to-end proof: Provide sanitized before/after screenshots and runtime evidence from the built Control UI showing hover preview, unchanged content geometry, dismissal, navigation, and permanent opening; redact credentials and non-public endpoints.
Agent review details

How this fits together

The Control UI rail selects the existing sidebar renderer; pointer events temporarily change its section and CSS reveals it over the page.

flowchart LR
  A[Pointer over rail] --> B[Peek delay]
  B --> C[Existing sidebar owner]
  C --> D[Section renderer]
  D --> E[Floating sidebar]
  E --> F[Dismiss or navigate]
Loading

Technical review

Best possible solution:

Retain the existing sidebar owner, preserve non-navigation selection gestures, and bind peek events through the supported listener primitives.

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

Source inspection establishes unconditional dismissal for selection-only anchor clicks and forbidden listener bindings; no target code or tests were executed.

Is this the best way to solve the issue?

Reusing the section renderer and existing clipping layout is appropriately scoped; the added browser scenario protects distinct visible behaviors without unnecessary test scaffolding.

Full review comments:

  • [P2] Preserve selection-only clicks inside the Sessions peek — ui/src/components/app-sidebar-rail.tsx:155-158
    With the sidebar collapsed, hover Sessions and Alt-click or Shift-click a session row. The existing row handler toggles or extends selection without navigating, but this handler sees an anchor and calls end(true), hiding the list immediately. Dismiss on navigation intent while preserving the existing selection gestures, and cover this case in the sidebar tests.
    Confidence: 0.98
  • [P2] Use the supported listener bindings for peek events — ui/src/components/app-sidebar-rail.tsx:120-121
    These direct addEventListener calls, together with the pointerover binding below, violate the applicable Solid policy and match the explicit TSX rejection in scripts/check-control-ui-controllers.mts. The normal controller check will reject this production file. Use JSX handlers or the existing listen/nativeListener primitives with paired cleanup instead of adding direct TSX listeners.
    Confidence: 1

Overall correctness: patch is incorrect
Overall confidence: 0.97

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Section sidebar rendering keeps the original intent (a2bdd1d: The stacked parent provides per-section sidebars; this PR temporarily selects those existing sections.)
  • Collapsed desktop clipping keeps the original intent (471bdaf: The existing layout keeps navigation at expanded width and clips it to avoid repeated layout during toggling; peek temporarily removes clipping without reserving more content space.)

Testing

Proof path: none.

Security

None.

Evidence

What I checked:

PR surface

Source +100, Tests +72. Total +172 across 3 files. Added test files: 1.

View PR surface stats
Area Files Added Removed Net
Source 2 100 0 +100
Tests 1 72 0 +72
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 3 172 0 +172

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:

No label changes.

Label justifications:

  • P3: This is a desktop navigation convenience feature with limited blast radius.
  • rating: 🧂 unranked krab: Overall readiness is 🧂 unranked krab; proof is 🧂 unranked krab and patch quality is 🦪 silver shellfish.
  • status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action.

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 15, 2026, 6:04 PM ET / 23:04 UTC.

@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from 4e4d523 to e9cd019 Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 795c353 to 301972b Compare November 16, 2026 07:05
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from e9cd019 to 774c07a Compare November 16, 2026 16:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 301972b to 32d8082 Compare November 16, 2026 16:08
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from 774c07a to e6e7635 Compare November 16, 2026 18:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 32d8082 to dabd89e Compare November 16, 2026 18:11
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from e6e7635 to b53be76 Compare November 16, 2026 22:53
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch 2 times, most recently from e235fbb to 074a995 Compare November 17, 2026 00:43
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from 9939bab to b095c2c Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 074a995 to 71f356d Compare November 17, 2026 18:31
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from b095c2c to bb87370 Compare November 17, 2026 19:22
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 71f356d to 227ef1e Compare November 17, 2026 19:22
@openclaw-barnacle openclaw-barnacle Bot added the scripts Repository scripts label Nov 17, 2026
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-05-section-sidebars branch from bb87370 to e861165 Compare November 17, 2026 21:17
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 227ef1e to 7114c78 Compare November 17, 2026 21:22
@vyctorbrzezowski
vyctorbrzezowski marked this pull request as ready for review November 17, 2026 21:22
@vyctorbrzezowski
vyctorbrzezowski changed the base branch from brzezowski/side-rail-05-section-sidebars to main November 17, 2026 21:50
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 7114c78 to 4f44382 Compare November 17, 2026 21:56
vyctorbrzezowski and others added 4 commits November 17, 2026 14:59
With the sidebar closed, resting the pointer for 300 ms on a rail item
that has a sidebar shows that sidebar floating beside the rail, over
the content, without changing the page. Leaving the sidebar hides it;
choosing a link in it navigates and hides it, and the sidebar stays
closed. Choosing the rail item itself opens the sidebar for good.

Touch input, the mobile drawer and settings never peek.
@vyctorbrzezowski
vyctorbrzezowski force-pushed the brzezowski/side-rail-06-rail-peek branch from 4f44382 to b9be8d9 Compare November 17, 2026 22:02
@vyctorbrzezowski
vyctorbrzezowski merged commit b255cc5 into main Nov 17, 2026
45 of 47 checks passed
@vyctorbrzezowski
vyctorbrzezowski deleted the brzezowski/side-rail-06-rail-peek branch November 17, 2026 22:04
@vyctorbrzezowski

Copy link
Copy Markdown
Member Author

Merged as b255cc5 after reviewing the layer and its integration with main. Preserved the approved design and human credit. Known PR-caused failures were repaired and focused checks passed; CI bypass was explicitly authorized by the maintainer. The inherited owner-approval test timing issue is tracked separately in #200810.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 18, 2026
)

Preserve the approved navigation design. Reviewed the own-layer change, current main integration and applicable focused proof. Known PR-caused failures were repaired before landing; the maintainer explicitly authorized CI bypass. The unrelated owner-approval test timing issue is tracked separately in openclaw#200810.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: S 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