Repository navigation
refactor(ui): one job per sidebar zone — shell chrome controls, header presence, slim footer - #112936
Conversation
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
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. |
…l chrome, presence to chat header, slim footer
f052dff to
b67ac04
Compare
|
Merged via squash.
|
…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
* 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
* 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
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:
shell-chrome-controlscluster (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-expandfloating button and is hidden onopenclaw-native-nav/openclaw-native-web-chromehosts (native strip owns those) and mobile (topbar owns them).viewer-facepilevariant="session"), seeded from the connect snapshot and updated via the existing gatewaypresenceevent subscription. It reads as "who is here on this thread" instead of ambient footer chrome.lobster-pet-standindeleted; 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):
Artifact manifest: https://artifacts.openclaw.ai/pr-sidebar-density-2026-07/artifact-manifest.json
Evidence
node scripts/run-vitest.mjs):app-sidebar.test.ts159 passed,lobster-pet.test.ts51 passed,chat-pane-header.test.ts17 passed,viewer-facepile.test.ts5 passed,app-host.test.ts33 passed.native-nav-sidebar-toggle.e2e.test.ts9/9 passed;sidebar-customization.e2e.test.ts9 passed plus 1 pre-existing failure reproduced on cleanmain@ 5cc1e6b (stale legacy pinned-row expectation, unrelated; flagged for separate follow-up).pnpm tsgo:core:test,pnpm tsgo:ui,pnpm lint:coregreen on Blacksmith Testbox;check-max-lines-ratchetgreen after rebase onto latestmain.scripts/prreview 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.