Repository navigation
feat(bay): redesign the Bay page chrome and deslop its copy - #1405
Conversation
Rebuild the OpenClaw Bay chrome as one token-based stylesheet: a calmer masthead and hero with the last-hour review timing, a single shoreline toolbar for the finder, repository filters, tide, and view options, the illustrated beach directly below it, a cleaner durable lifecycle board, and the exact-review telemetry under a collapsed "Queue telemetry" disclosure with readable cards. Trim defensive and repetitive copy, format counts with thousands separators, and delete dead code: the unused SVG creature and master renderers, the never-rendered state-writer card, the preview-source indirection, the expandActive alias, the throttle-card monkey patch, the duplicated sample-note text, and CSS layered from two generations of the same selectors. The beach scene, data contracts, fetch targets, element ids, and observer-only behaviour are unchanged.
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 2:19 AM ET / 06:19 UTC. ClawSweeper reviewWhat this changesThe PR reorganizes and restyles the OpenClaw Bay dashboard and its observer guide, and updates route-level tests for the revised markup, copy, and helper names. Merge readiness✅ Ready for maintainer review Keep this PR open for maintainer review. It is a coherent, current redesign of the existing Bay dashboard; the introduced renderer preserves the read-only relative API paths and the updated route tests retain the public-reference and privacy protections, with no discrete correctness defect found. Priority: P3 Review scores
Verification
How this fits togetherOpenClaw Bay is ClawSweeper’s public, read-only dashboard. Browser users receive bounded pipeline and lifecycle data from dashboard APIs, explore it through interactive controls, and follow verified public GitHub links. flowchart LR
A[Dashboard status APIs] --> B[Bay page renderer]
B --> C[Public browser dashboard]
C --> D[Finder and view controls]
C --> E[Lifecycle and queue telemetry]
E --> F[Verified public links]
Before mergeNone. Agent review detailsSecurityNone. Review metrics
Technical reviewBest possible solution: Keep one responsive, observer-only Bay renderer with the redesigned hierarchy while retaining its bounded public projections, relative API calls, and focused route/privacy regression coverage. Do we have a high-confidence way to reproduce the issue? Not applicable: this PR changes an existing dashboard presentation rather than fixing a reported defect; its supplied browser evidence directly demonstrates the affected UI. Is this the best way to solve the issue? Yes: consolidating the existing Bay page while preserving its API and privacy contracts is a focused solution, and the corresponding route tests cover the changed rendered surface. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against aa7ed6c0cfe3. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (1 earlier review cycle)
|
Point the Bay route tests at the new copy and structure, drop the assertions and sandbox slice that exercised the removed state-writer helper, extract expandQueue instead of the deleted expandActive alias, and give the sandboxed script slices the page's fmt and sentence helpers. Keep the "Disappearing workers remain CHECKING until proved" hint in the initial sample note so that invariant stays asserted.
What Problem This Solves
OpenClaw Bay's chrome had grown cluttered around its illustrated beach. Two operator toggles lived in the masthead, the hero title wrapped onto two lines, four competing panels sat above the fold, most labels were 7–9px uppercase monospace, and every section repeated defensive copy ("30552 additional records are outside the public sample", "Canonical lifecycle projection only. This can be unavailable independently of queue and live activity."). The beach itself, the page's primary pipeline visualization, sat below a tall lifecycle board.
Why This Change Was Made
The chrome is rebuilt as one token-based stylesheet (system serif display face, system sans body, mono only for references and counters) with a calm sea/coral palette. The page now reads: hero with the last-hour review timing, one shoreline toolbar (finder, repository filters, tide, view options), the beach, the durable lifecycle board, the exact-review telemetry under a collapsed Queue telemetry disclosure, and a footer that carries the observer-only note once. Copy is trimmed to what a viewer needs, counts use thousands separators, and per-lane references keep their number visible when a card is tagged current.
Dead code is removed: the unused SVG creature and master renderers, the never-rendered state-writer card, the
previewSourceorigin indirection, theexpandActivealias, the throttle-card monkey patch onrenderBayControl, the duplicated sample-note text builder, and a stylesheet that layered two generations of the same selectors (48 duplicated selectors merged to their effective declarations; four unused keyframes dropped).Non-goals: the illustrated beach scene, critter placement/packing, tide, master sweeper, tunnel, and chat animations keep their geometry, timings, and class semantics. No Worker, route, API, or CSP change; no external fonts or assets.
User Impact
Viewers land on the beach with a legible "typical review" figure, one row of controls, readable lifecycle cards and telemetry, and a mobile layout with a scrollable nav row and full-width finder. Data, links, polling cadence, and the
/shortcut behave as before.OpenClaw Bay Impact
Bay is the affected surface, presentation only. It still reads the same
/api/status,/api/durable-lifecycle-bay,/api/health-history, and/api/github-egress-observabilityresponses through the same strict validators, makes no browser-to-GitHub request, and offers no mutation control. The smoke-test invariants hold: the page title, no robots meta, the literalfetch("/api/status", and no direct GitHub API URL. Proof below.Documentation Impact
docs/openclaw-bay-demo.md(active public observer guide) is updated:Last verifiedmoves to 2026-09-04 against baselineea976d0cda362d3547f0058f25174f6a1c97ff18, a page-order paragraph is added, and theSystem detailsdisclosure is renamed toQueue telemetry.docs/live-dashboard.mdis unchanged because routes, public fields, and queue projections are untouched.pnpm run check:docspasses.Evidence
Before (production
/bay, 1600px):After (this branch over live production data, 1600px):
After, Queue telemetry expanded:
After, narrow viewport (600px):
pr-behavior-proof
Claim: the redesigned
/baypage renders live production data end to end and every interactive control behaves as before. Exercised surface: the/bayHTML, CSS, and inline script in a real browser. Scenario/fixture: this branch'sbayHtml()served by a local Node preview that proxies read-only GET/api/*and/bay-assets/*tohttps://clawsweeper.openclaw.ai(public, cache-backed endpoints; no writes; no GitHub calls from the browser). Command and environment: macOS arm64, Node v24.20.0, pnpm 11.10.0; headless Chrome for the captures above and a scripted Chromium tab for interaction.Observable result: the captures above, plus scripted checks on the rendered page: the retired proof/batch toggle flips
aria-pressedand its active class, switches the timing scope line and the tide cluster ("1 / 20", "Last tide …"), and toggles back; Sweeper Patrol/On change switch the active segment; clicking a critter opens the item drawer with stage, status, source, reference, canonical item and repository links, and sets the#item-…hash; "+N more items" opens the overflow drawer with the new copy;/focuses the finder; find, not-found, and clear statuses render; the 24 h range button reloads coverage ("266 of 288 five-minute samples · 22 failed polls") and chart captions; the lane status line colors backlog trend and net rate independently. A 375px mobile probe reportsscrollWidthequal to the viewport (no horizontal overflow). Zero console errors across the session.Artifact or trace: the four captures above. Limits: local render over production public data; no
wrangler dev, no Worker change; deployment proof is the dashboard workflow's post-deploy smoke on merge.Gates on the committed head:
The full
pnpm run checkgate runs in CI (pnpm checkjob) on this exact head; the local run was started on a machine saturated by other work and is not used as evidence here.Validated commit:
06c12bd74139ad9e8058ecf3ebf621597055cb5a.Independent Codex review (autoreview): working tree scoped-clean with no findings; committed branch against
origin/main: scoped-clean, verdict "patch is correct" at confidence 0.97, no findings at P0.LOC delta from
git diff --numstat origin/main...HEAD:Update after ClawSweeper review (head 6ba2e55)
CI's
pnpm checkon06c12bd7failed two tests intest/dashboard-worker-bay-records-routes.test.ts("OpenClaw Bay is a public, indexable, hardened canonical route" and "OpenClaw Bay reprojects status into a closed aggregate client model"). Both pin Bay page strings and evaluate script slices in sandboxes; my first search for Bay tests missed them because they fetch/baythrough the worker harness. The second commit updates those expectations to the redesigned page: copy pins move to the new strings, the assertions and sandbox slice that exercised the deleted (never rendered) state-writer helper are removed, theexpandActiveextraction becomesexpandQueue, the sandbox contexts gain the page'sfmt/sentencehelpers, and the initial sample-note text keeps its "Disappearing workers remain CHECKING until proved" hint so that invariant stays asserted. Privacy invariants in those tests (no private markers, no/api/statusin the durable slice, no browser-to-GitHub calls) are unchanged and still pass.Proof on the new head:
node --test test/dashboard-worker-bay-records-routes.test.ts test/dashboard-smoke.test.ts test/openclaw-bay-proof-network.test.ts→ 122 tests, 122 pass, 0 fail;pnpm run lint:scriptsandpnpm run check:staticpass; the page rebuild is byte-identical apart from the sample-note sentence, so the browser proof above still applies. CIpnpm checkis the full gate on this head.