Skip to content

refactor(ui): one job per sidebar zone — shell chrome controls, header presence, slim footer - #112936

Merged
steipete merged 5 commits into
mainfrom
claude/sidebar-ui-density-2200d3
Jul 23, 2026
Merged

steipete merged 5 commits into
mainfrom
claude/sidebar-ui-density-2200d3

Conversation

@steipete

@steipete steipete commented Jul 23, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

The desktop web sidebar packs too many concepts into its chrome. The brand row stacks three icon buttons (new thread, search, collapse) next to the agent card, and the footer bar hosts six unrelated tenants at once: product logo (plus the lobster logo stand-in), your identity, the presence facepile, the build chip, offline status, and settings. The Mac app already solved half of this by moving search/collapse into the native titlebar strip; plain web kept the dense layout.

Why This Change Was Made

Restructure toward one job per zone, converging web with the Mac titlebar model instead of maintaining two divergent layouts:

  • Sidebar brand row keeps only the agent card and new thread.
  • A new shell-chrome-controls cluster (top-left of the content area, the web equivalent of the Mac titlebar strip) hosts sidebar collapse/expand (⌘B) and command-palette search (⌘K), and gains new-thread while the rail is collapsed — mirroring what the Mac titlebar strip already does. It replaces the collapsed-only .shell-nav-expand floating button and is hidden on openclaw-native-nav / openclaw-native-web-chrome hosts (native strip owns those) and mobile (topbar owns them).
  • Presence moves to the chat pane header next to the workspace chip, scoped to viewers of that pane's session (viewer-facepile variant="session"), seeded from the connect snapshot and updated via the existing gateway presence event subscription. It reads as "who is here on this thread" instead of ambient footer chrome.
  • Footer slims to identity + settings, with offline status appearing only while offline. The build chip leaves the footer (version stays reachable via About/settings; the component remains in use by the agent menu). The footer logo goes, and with it the lobster pet's logo-visit gag (lobster-pet-standin deleted; ledge wandering unchanged).

Net −436 LOC.

User Impact

Desktop web users get a visibly calmer sidebar: one action in the header, two in the footer. Sidebar collapse/expand and search live at the top-left of the content area on every route, in both nav states (previously the collapse control disappeared into the sidebar and search was sidebar-only). Presence appears contextually on the thread you are viewing. Keyboard shortcuts (⌘B, ⌘K) are unchanged. Mac native app layouts are unchanged. Mobile is unchanged. The lobster pet no longer impersonates the footer logo (the logo it replaced is gone); its other behaviors are intact.

Before/after (mock-gateway fixture data):

State Before After
Expanded before expanded after expanded
Collapsed before collapsed after collapsed

Artifact manifest: https://artifacts.openclaw.ai/pr-sidebar-density-2026-07/artifact-manifest.json

Evidence

  • Focused suites (local, node scripts/run-vitest.mjs): app-sidebar.test.ts 159 passed, lobster-pet.test.ts 51 passed, chat-pane-header.test.ts 17 passed, viewer-facepile.test.ts 5 passed, app-host.test.ts 33 passed.
  • Browser e2e: native-nav-sidebar-toggle.e2e.test.ts 9/9 passed; sidebar-customization.e2e.test.ts 9 passed plus 1 pre-existing failure reproduced on clean main @ 5cc1e6b (stale legacy pinned-row expectation, unrelated; flagged for separate follow-up).
  • Gates: pnpm tsgo:core:test, pnpm tsgo:ui, pnpm lint:core green on Blacksmith Testbox; check-max-lines-ratchet green after rebase onto latest main.
  • Screenshots captured via the repo mock-gateway e2e harness (seeded fixture sessions/presence; no live data).
  • Review state: Codex autoreview clean (gpt-5.6-sol, xhigh — "no accepted/actionable findings", TruffleHog clean); scripts/pr review artifacts validated (READY FOR /prepare-pr). ClawSweeper worker died twice on 2026-07-23 (leases 06:24Z and 08:25Z both expired without posting a review; re-review was triggered and also died), so no rank-up moves exist to apply — landing on the autoreview + validated artifacts instead.

@steipete
steipete marked this pull request as ready for review July 23, 2026 06:04
@openclaw-barnacle openclaw-barnacle Bot added app: web-ui App: web-ui size: L maintainer Maintainer-authored PR docs Improvements or additions to documentation labels Jul 23, 2026
@steipete

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Jul 23, 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: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@clawsweeper

clawsweeper Bot commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

ClawSweeper status: review started.

I am starting a fresh review of this pull request: refactor(ui): one job per sidebar zone — shell chrome controls, header presence, slim footer This is item 1/1 in the current shard. Shard 0/1.

This placeholder means the worker is alive and reading the current context. I will edit this same comment with the actual review when the claws are done clicking.

Crustacean status: shell secured, claws on keyboard, evidence pebbles being sorted.

@steipete
steipete force-pushed the claude/sidebar-ui-density-2200d3 branch from f052dff to b67ac04 Compare July 23, 2026 09:35
@steipete
steipete merged commit 1e5096c into main Jul 23, 2026
160 of 162 checks passed
@steipete
steipete deleted the claude/sidebar-ui-density-2200d3 branch July 23, 2026 09: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 Jul 24, 2026
…r presence, slim footer (openclaw#112936)

* refactor(ui): one job per sidebar zone — move search/collapse to shell chrome, presence to chat header, slim footer

* test(ui): point drawer-collapse e2e step at shell chrome nav toggle

* refactor(ui): unexport lobsterLookStyleVars after logo stand-in removal

* docs(web): describe shell chrome controls, slim footer, and header presence facepile

* fix(ui): keep cluster search on native-nav hosts; draft-aware collapsed new-thread
steipete added a commit that referenced this pull request Aug 18, 2026
* feat(ui): add sidebar Online presence section and Activity session feed

Adds a sidebar "Online" section (visible only when at least one other
identity is connected, idle users dimmed) that links into a new
session-feed default view on the existing Activity page: search, time
window, and per-person facets over day-grouped sessions, with a
per-person identity header (devices, viewing-now) when one person is
selected. Removes the dead footer viewer-facepile roster that the
sidebar-zone refactor (#112936) left unmounted.

Client-only; no gateway/protocol changes.

* test(ui): make activity capture date-boundary safe
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 20, 2026
* feat(ui): add sidebar Online presence section and Activity session feed

Adds a sidebar "Online" section (visible only when at least one other
identity is connected, idle users dimmed) that links into a new
session-feed default view on the existing Activity page: search, time
window, and per-person facets over day-grouped sessions, with a
per-person identity header (devices, viewing-now) when one person is
selected. Removes the dead footer viewer-facepile roster that the
sidebar-zone refactor (openclaw#112936) left unmounted.

Client-only; no gateway/protocol changes.

* test(ui): make activity capture date-boundary safe
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 size: L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant