Skip to content

improve(ui): consolidate dashboard chat visibility into one Chat/Split/Dashboard toggle - #120487

Merged
steipete merged 3 commits into
mainfrom
steipete/cranky-northcutt-7d70cc
Aug 8, 2026
Merged

steipete merged 3 commits into
mainfrom
steipete/cranky-northcutt-7d70cc

Conversation

@steipete

@steipete steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What Problem This Solves

Resolves a problem where hiding the chat on a session dashboard left users stranded: the only way back was a floating, vertically-rotated "Show chat" button pinned to the board edge, which reads as decoration rather than a control. Chat visibility was spread across three separate affordances — the Chat | Dashboard face toggle, an icon-only dock dropdown buried among ~8 other header action buttons, and the floating reopen button — so "where did my chat go" had no discoverable answer.

Why This Change Was Made

One concept (how the chat is shown on the dashboard) deserves one control. The header now renders a single segmented switch:

  • Chat — conversation only (as before)
  • Split — dashboard + docked chat; a compact caret attached to the pill picks the dock side (left / right / bottom) and remembers it per tab
  • Dashboard — board only; this is the former "Hide chat", so no separate hide/reopen affordance is needed

The floating rotated button, the standalone dock-menu icon button, and their CSS (desktop + mobile overrides) are deleted. Read-only sessions (dock mutation not allowed) keep the plain two-option Chat | Dashboard toggle instead of a disabled three-state. The chatDock board state, agent-driven dock commands, and reopen-side persistence are untouched — this is purely a control-surface consolidation.

User Impact

Chat visibility on dashboards is now always explained by the visible state of one header toggle, and the header has fewer buttons than before. No config, protocol, or board-state changes; the removed i18n keys (reopenChat, dockHidden) were only used by the deleted controls.

Evidence

  • node scripts/run-vitest.mjs ui/src/pages/chat/board-session-surface.test.ts — 21 passed
  • node scripts/run-vitest.mjs ui/src/pages/chat — 113 files passed, 2567 tests passed
  • pnpm tsgo:ui — clean; pnpm lint:ui:styles — clean; oxfmt check clean; pnpm ui:i18n:baseline — no artifact drift
  • Codex autoreview (gpt-5.6-sol, high): clean, no actionable findings
  • Live verification in the mock-gateway dev harness (scripts/control-ui-mock-dev.ts): mode mapping for all face/dock combos, caret dropdown mutating the dock, Dashboard hiding chat (board-only surface, no stray reopen button), Split restoring the remembered dock side
Before (floating rotated button + separate dock menu) After (one toggle, caret in Split)
Floating "Show chat" on board edge; icon-only dock dropdown in header Chat | Split ▾ | Dashboard segmented control; caret shows Dock chat left/right/bottom

@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: M maintainer Maintainer-authored PR labels Aug 8, 2026
@steipete
steipete marked this pull request as ready for review August 8, 2026 05:41
@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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Aug 8, 2026
@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: found issues before merge. Reviewed August 8, 2026, 7:43 AM ET / 11:43 UTC.

ClawSweeper review

What this changes

This PR replaces separate dashboard chat controls with a unified Chat, Split, and Dashboard header switch plus a dock-side picker.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

The consolidation is focused, but the read-only fallback can mark Dashboard active while the chat remains visible; resolve that mode meaning before merge.

Priority: P3
Reviewed head: ccc2f03db883fe50bcb521dcdb23105f712c8f57
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is focused and well-covered at the component level, but the read-only state needs a product-consistent correction before merge.
Proof confidence 🌊 off-meta tidepool Not applicable: The supplied repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the claimed mock-gateway run was not independently artifact-verified.
Patch quality 🦐 gold shrimp (3/6) 1 actionable review finding remain.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: The supplied repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the claimed mock-gateway run was not independently artifact-verified.
Evidence reviewed 6 items Read-only selection mismatch: The fallback renders only Chat and Dashboard using the face as its selected value; a dashboard face with a visible dock therefore selects Dashboard.
Visible chat remains mounted: The board surface still receives the visible dock whenever the face is dashboard, so the selected Dashboard state can render a chat pane.
Changed test codifies the contradiction: The new fallback test expects Dashboard to be active for a visible right dock without dock-mutation access.
Findings 1 actionable finding [P2] Keep the selected mode truthful for read-only boards
Security None None.

How this fits together

The Control UI resolves each session board’s face and per-tab chat dock, then renders the header control and the board/chat layout. The switch changes local face state and, where permitted, asks the existing board owner to persist dock visibility or position.

flowchart LR
  A[Session board state] --> B[Board view resolver]
  B --> C[Header view switch]
  C --> D{Can change dock?}
  D -->|Yes| E[Persist dock visibility or side]
  D -->|No| F[Two-option fallback]
  E --> G[Board and chat surface]
  F --> G
Loading

Decision needed

Question Recommendation
For a read-only board with a visible stored chat dock, should the control show a non-editable Split state or retain Chat/Dashboard while defining Dashboard as board-with-chat in that restricted state? Show the actual Split state: Keep the mode name truthful by representing the visible chat as Split while omitting the dock-side picker when mutation is unavailable.

Why: The two choices produce different control semantics and documentation; source evidence does not establish which operator experience is intended.

Before merge

  • Keep the selected mode truthful for read-only boards (P2) - When dock mutation is unavailable, this branch renders only Chat and Dashboard using face as the value. A read-only board with face="dashboard" and a visible dock therefore selects Dashboard even though the renderer still shows chat; the updated docs define that state as Split. Preserve Split as the displayed state without a picker, or explicitly adopt and document different read-only semantics.
  • Resolve merge risk (P1) - Read-only viewers can see a visible chat beneath an active Dashboard label, leaving the unified mode’s meaning unresolved for a supported permission state.

Findings

  • [P2] Keep the selected mode truthful for read-only boards — ui/src/pages/chat/board-session-surface.ts:99-107
Agent review details

Security

None.

PR surface

Source -48, Tests +95, Docs +3. Total +50 across 11 files.

View PR surface stats
Area Files Added Removed Net
Source 8 133 181 -48
Tests 1 124 29 +95
Docs 2 13 10 +3
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 11 270 220 +50

Review metrics

Metric Value Why it matters
Production versus test delta production +146/-191 (net -45); tests +124/-29 (net +95) The change removes duplicated UI controls while adding focused mode-mapping coverage; there is no unjustified production growth.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Make the selected control state match the rendered surface for read-only boards, then cover that permission path alongside the editable Split and Dashboard modes.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Make the selected control state match the rendered surface for read-only boards, then cover that permission path alongside the editable Split and Dashboard modes.

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

Yes, from source: open a board as a viewer without operator write access while its active tab has a visible dock; the fallback selects Dashboard although the board renderer retains the chat pane.

Is this the best way to solve the issue?

No; the editable path is coherent, but the read-only fallback must either expose Split truthfully or document a deliberately different Dashboard meaning.

Full review comments:

  • [P2] Keep the selected mode truthful for read-only boards — ui/src/pages/chat/board-session-surface.ts:99-107
    When dock mutation is unavailable, this branch renders only Chat and Dashboard using face as the value. A read-only board with face="dashboard" and a visible dock therefore selects Dashboard even though the renderer still shows chat; the updated docs define that state as Split. Preserve Split as the displayed state without a picker, or explicitly adopt and document different read-only semantics.
    Confidence: 0.96

Overall correctness: patch is incorrect
Overall confidence: 0.96

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🌊 off-meta tidepool and patch quality is 🦐 gold shrimp.
  • add status: ⏳ waiting on author: ClawSweeper has contributor-facing work open and is waiting for author action. Not applicable: The supplied repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the claimed mock-gateway run was not independently artifact-verified.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦐 gold shrimp, so this older rating label is no longer current.
  • remove status: 👀 ready for maintainer look: Current PR status label is status: ⏳ waiting on author.

Label justifications:

  • P3: This is a bounded Control UI semantics problem in a permission-restricted dashboard path, not a delivery, security, or availability regression.
  • 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: The supplied repository state identifies this as a MEMBER-authored PR, so the external-contributor proof gate does not apply; the claimed mock-gateway run was not independently artifact-verified.

Evidence

What I checked:

Likely related people:

  • steipete: Peter Steinberger authored the existing dashboard shell and the PR’s central control wiring; history and blame place the behavior in this ownership area. (role: feature owner and recent area contributor; confidence: high; commits: 48639663b0aa, 73d3ee0dd401, ccc2f03db883; files: ui/src/pages/chat/chat-pane-board.ts, ui/src/pages/chat/board-session-surface.ts, ui/src/pages/chat/chat-pane-header.ts)

Rank-up moves

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

  • Resolve the read-only Chat/Split/Dashboard semantics and update the focused mapping test and dashboard guides to match.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-08T05:47:00.480Z sha 0baf97b3f4663c4c977e6019ff103c4f1c90e713 :: needs changes before merge. :: [P2] Update the dashboard guides for the new visible modes
  • reviewed 2026-08-08T07:49:13.842Z sha 679a83d :: needs maintainer review before merge. :: none

@steipete
steipete force-pushed the steipete/cranky-northcutt-7d70cc branch from 0baf97b to 5da12fd Compare August 8, 2026 06:08
@openclaw-barnacle openclaw-barnacle Bot added the docs Improvements or additions to documentation label Aug 8, 2026
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed 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. labels Aug 8, 2026
@steipete
steipete force-pushed the steipete/cranky-northcutt-7d70cc branch from 679a83d to 39dae00 Compare August 8, 2026 10:46
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 8, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event repository_dispatch).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

…t/Dashboard toggle

The dashboard face spread chat visibility across three separate
affordances: a two-option face toggle, an icon-only dock dropdown among
the header actions, and a floating vertically-rotated "Show chat"
button on the board edge that users could not discover. One concept,
three controls.

The header now renders a single segmented control - Chat | Split |
Dashboard - where Split is dashboard plus docked chat and Dashboard is
board-only (the former "Hide chat"). A compact caret attached to the
pill picks the dock side (left/right/bottom) and only appears in Split
mode when dock mutation is allowed; read-only sessions keep the plain
two-option Chat | Dashboard toggle. The floating reopen button, the
standalone dock menu button, and their CSS (including the mobile
overrides) are deleted, so the header ends up with fewer buttons than
before.

Verified in the mock-gateway dev harness: mode mapping, caret dropdown,
unhide-to-remembered-side, and hidden dock rendering board-only.
…dk baseline

BoardVisibleChatDock lost its last external consumer when the board
view switch consolidated dock controls; keep it file-local so the
production unused-export scan stays clean.

Also regenerate docs/.generated/plugin-sdk-api-baseline.sha256: the
session-catalog module hash was stale on main (check fails on clean
origin/main after the agent-attribution reverts), which blocks every
PR's check-plugin-sdk-api-baseline job.
@steipete
steipete force-pushed the steipete/cranky-northcutt-7d70cc branch from 39dae00 to ccc2f03 Compare August 8, 2026 11:36
@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. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Aug 8, 2026
@steipete
steipete merged commit 2d5ff47 into main Aug 8, 2026
107 checks passed
@steipete
steipete deleted the steipete/cranky-northcutt-7d70cc branch August 8, 2026 11:48
@steipete

steipete commented Aug 8, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

steipete added a commit that referenced this pull request Aug 8, 2026
Rebase onto main moved the board dock to .chat-pane__dock-caret (PR #120487); selector+fixture updated, measured width 793px.
steipete added a commit that referenced this pull request Aug 8, 2026
)

* fix(ui): keep split-pane close button reachable in narrow panes

Pane headers used viewport media queries, so split panes could shrink far below the viewport without adapting their controls. Move header responsiveness to inline-size container queries and apply a priority ladder that sheds split and secondary actions before the close control can be clipped.

* test(ui): focus surviving pane action in narrow splits

* fix(ui): cover full narrow-pane header composition

* fix(ui): shed secondary split-header controls through 640px

closes the 521-640px interval where secondary controls returned before the pane could fit them, per ClawSweeper P1 on eb90baa.

* fix(ui): prove full split-header fits just above the shed cutoff

Measured full-composition width 728px; cutoff raised to 720px accordingly, per ClawSweeper P1 on b3b0b1c.

* fix(ui): avoid shadowing split-header fixture variable

* fix(ui): hide the dock caret in narrow split headers

Rebase onto main moved the board dock to .chat-pane__dock-caret (PR #120487); selector+fixture updated, measured width 793px.
steipete added a commit that referenced this pull request Aug 8, 2026
…120605)

The visible-dock union existed twice: BoardVisibleChatDock (hand-written
literal union in lib/board/settings.ts, persistence layer) and
VisibleBoardDock (derived from the protocol BoardTab shape in
chat-pane-shared.ts, render layer). Follow-up from #120487.

Keep one canonical exported type in lib/board/settings.ts, now derived
from BoardTab so persisted settings can never drift from the wire
contract, and migrate all render-layer consumers to it. Net -5 LOC,
type-only.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
…t/Dashboard toggle (openclaw#120487)

* improve(ui): consolidate dashboard chat visibility into one Chat/Split/Dashboard toggle

The dashboard face spread chat visibility across three separate
affordances: a two-option face toggle, an icon-only dock dropdown among
the header actions, and a floating vertically-rotated "Show chat"
button on the board edge that users could not discover. One concept,
three controls.

The header now renders a single segmented control - Chat | Split |
Dashboard - where Split is dashboard plus docked chat and Dashboard is
board-only (the former "Hide chat"). A compact caret attached to the
pill picks the dock side (left/right/bottom) and only appears in Split
mode when dock mutation is allowed; read-only sessions keep the plain
two-option Chat | Dashboard toggle. The floating reopen button, the
standalone dock menu button, and their CSS (including the mobile
overrides) are deleted, so the header ends up with fewer buttons than
before.

Verified in the mock-gateway dev harness: mode mapping, caret dropdown,
unhide-to-remembered-side, and hidden dock rendering board-only.

* fix(ci): unexport board dock settings union and repair stale plugin-sdk baseline

BoardVisibleChatDock lost its last external consumer when the board
view switch consolidated dock controls; keep it file-local so the
production unused-export scan stays clean.

Also regenerate docs/.generated/plugin-sdk-api-baseline.sha256: the
session-catalog module hash was stale on main (check fails on clean
origin/main after the agent-attribution reverts), which blocks every
PR's check-plugin-sdk-api-baseline job.

* docs(web): describe the Chat/Split/Dashboard switch and dock-side picker
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
…claw#120460)

* fix(ui): keep split-pane close button reachable in narrow panes

Pane headers used viewport media queries, so split panes could shrink far below the viewport without adapting their controls. Move header responsiveness to inline-size container queries and apply a priority ladder that sheds split and secondary actions before the close control can be clipped.

* test(ui): focus surviving pane action in narrow splits

* fix(ui): cover full narrow-pane header composition

* fix(ui): shed secondary split-header controls through 640px

closes the 521-640px interval where secondary controls returned before the pane could fit them, per ClawSweeper P1 on eb90baa.

* fix(ui): prove full split-header fits just above the shed cutoff

Measured full-composition width 728px; cutoff raised to 720px accordingly, per ClawSweeper P1 on b3b0b1c.

* fix(ui): avoid shadowing split-header fixture variable

* fix(ui): hide the dock caret in narrow split headers

Rebase onto main moved the board dock to .chat-pane__dock-caret (PR openclaw#120487); selector+fixture updated, measured width 793px.
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 9, 2026
…penclaw#120605)

The visible-dock union existed twice: BoardVisibleChatDock (hand-written
literal union in lib/board/settings.ts, persistence layer) and
VisibleBoardDock (derived from the protocol BoardTab shape in
chat-pane-shared.ts, render layer). Follow-up from openclaw#120487.

Keep one canonical exported type in lib/board/settings.ts, now derived
from BoardTab so persisted settings can never drift from the wire
contract, and migrate all render-layer consumers to it. Net -5 LOC,
type-only.
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 docs Improvements or additions to documentation maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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