Skip to content

feat(bay): redesign the Bay page chrome and deslop its copy - #1405

Merged
steipete merged 2 commits into
mainfrom
steipete/cleanup-pr-deploy-6ef169
Sep 4, 2026
Merged

steipete merged 2 commits into
mainfrom
steipete/cleanup-pr-deploy-6ef169

Conversation

@steipete

@steipete steipete commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

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 previewSource origin indirection, the expandActive alias, the throttle-card monkey patch on renderBayControl, 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-observability responses 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 literal fetch("/api/status", and no direct GitHub API URL. Proof below.

Documentation Impact

docs/openclaw-bay-demo.md (active public observer guide) is updated: Last verified moves to 2026-09-04 against baseline ea976d0cda362d3547f0058f25174f6a1c97ff18, a page-order paragraph is added, and the System details disclosure is renamed to Queue telemetry. docs/live-dashboard.md is unchanged because routes, public fields, and queue projections are untouched. pnpm run check:docs passes.

Evidence

Before (production /bay, 1600px):

OpenClaw Bay before the redesign

After (this branch over live production data, 1600px):

OpenClaw Bay after the redesign

After, Queue telemetry expanded:

Queue telemetry cards expanded

After, narrow viewport (600px):

OpenClaw Bay at 600px

pr-behavior-proof

Claim: the redesigned /bay page renders live production data end to end and every interactive control behaves as before. Exercised surface: the /bay HTML, CSS, and inline script in a real browser. Scenario/fixture: this branch's bayHtml() served by a local Node preview that proxies read-only GET /api/* and /bay-assets/* to https://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-pressed and 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 reports scrollWidth equal 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:

pnpm run build:dashboard · lint:dashboard · check:dashboard-strict · format:check · check:docs — pass
node --test test/dashboard-smoke.test.ts test/openclaw-bay-proof-network.test.ts — 7 pass, 0 fail

The full pnpm run check gate runs in CI (pnpm check job) 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:

Scope Added Removed Net
Production 321 206 +115
Docs 8 3 +5

Update after ClawSweeper review (head 6ba2e55)

CI's pnpm check on 06c12bd7 failed two tests in test/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 /bay through 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, the expandActive extraction becomes expandQueue, the sandbox contexts gain the page's fmt/sentence helpers, 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/status in 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:scripts and pnpm run check:static pass; the page rebuild is byte-identical apart from the sample-note sentence, so the browser proof above still applies. CI pnpm check is the full gate on this head.

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.
@clawsweeper

clawsweeper Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: sufficient Contributor real behavior proof is sufficient. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. 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 Sep 4, 2026
@clawsweeper

clawsweeper Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 4, 2026, 2:19 AM ET / 06:19 UTC.

ClawSweeper review

What this changes

The 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
Reviewed head: 6ba2e555af6677d3afe3922221e38fde7b614edd

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Strong browser proof and focused regression coverage support a sound presentation change with no blocking review finding.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): The changed production owner is the Bay HTML/CSS/inline-script renderer. The supplied real-browser captures and interaction trace exercise the redesigned /bay page over read-only production API data, including controls, drawers, filtering, timing ranges, and a narrow viewport; the current-head update is described as test alignment plus the sample-note wording.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (screenshot): The changed production owner is the Bay HTML/CSS/inline-script renderer. The supplied real-browser captures and interaction trace exercise the redesigned /bay page over read-only production API data, including controls, drawers, filtering, timing ranges, and a narrow viewport; the current-head update is described as test alignment plus the sample-note wording.
Evidence reviewed 6 items Introduced scope: The verified base-to-head diff changes only the Bay renderer, its observer guide, and the focused worker-route test; the renderer reorganizes the existing page without changing Worker routes.
Read-only API boundary retained: The current renderer continues to obtain status, lifecycle, history, and throttle data from same-origin dashboard API routes; no direct GitHub browser request or mutation control was introduced.
Route and privacy regression coverage: The updated focused route test continues to exercise the rendered page and asserts the public-reference projection, absence of private markers, and absence of direct GitHub fetches while adapting expected UI text and helper extraction.
Findings None None.
Security None None.

How this fits together

OpenClaw 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]
Loading

Before merge

None.

Agent review details

Security

None.

Review metrics

Metric Value Why it matters
Renderer and regression scope production +321/-206, tests +47/-50, docs +8/-3 The change is concentrated in the Bay presentation layer with matching focused route-test maintenance.

Technical review

Best 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.

Labels

Label justifications:

  • P3: This is a focused presentation and documentation improvement to an existing observer dashboard.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🦞 diamond lobster and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (screenshot): The changed production owner is the Bay HTML/CSS/inline-script renderer. The supplied real-browser captures and interaction trace exercise the redesigned /bay page over read-only production API data, including controls, drawers, filtering, timing ranges, and a narrow viewport; the current-head update is described as test alignment plus the sample-note wording.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is the Bay HTML/CSS/inline-script renderer. The supplied real-browser captures and interaction trace exercise the redesigned /bay page over read-only production API data, including controls, drawers, filtering, timing ranges, and a narrow viewport; the current-head update is described as test alignment plus the sample-note wording.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence. The changed production owner is the Bay HTML/CSS/inline-script renderer. The supplied real-browser captures and interaction trace exercise the redesigned /bay page over read-only production API data, including controls, drawers, filtering, timing ranges, and a narrow viewport; the current-head update is described as test alignment plus the sample-note wording.

Evidence

What I checked:

  • Introduced scope: The verified base-to-head diff changes only the Bay renderer, its observer guide, and the focused worker-route test; the renderer reorganizes the existing page without changing Worker routes. (dashboard/bay-page.ts:38, 6ba2e555af66)
  • Read-only API boundary retained: The current renderer continues to obtain status, lifecycle, history, and throttle data from same-origin dashboard API routes; no direct GitHub browser request or mutation control was introduced. (dashboard/bay-page.ts:386, 6ba2e555af66)
  • Route and privacy regression coverage: The updated focused route test continues to exercise the rendered page and asserts the public-reference projection, absence of private markers, and absence of direct GitHub fetches while adapting expected UI text and helper extraction. (test/dashboard-worker-bay-records-routes.test.ts:6199, 6ba2e555af66)
  • Documentation remains aligned: The observer guide now describes the revised page order and renamed Queue telemetry disclosure while retaining the existing observer-only and no-browser-GitHub contract. (docs/openclaw-bay-demo.md:23, 6ba2e555af66)
  • Bay feature history: Recent history identifies Peter Steinberger, RoboClaw, and Martin Cleary as repeated contributors to Bay’s finder, lifecycle, telemetry, and public-dashboard behavior. (dashboard/bay-page.ts, 8d76b82df542)
  • Current-head proof supplied: The PR body supplies before/after and narrow-viewport browser captures plus a detailed real-browser interaction trace; it also reports 122 focused Bay tests passing on the current head. The later commit updates route-test expectations after the visual implementation. (dashboard/bay-page.ts:345, 6ba2e555af66)

Likely related people:

  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • RoboClaw: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Martin Cleary: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

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 (1 earlier review cycle)
  • reviewed 2026-09-04T06:02:34.475Z sha 06c12bd :: needs maintainer review before merge. :: none

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.
@steipete
steipete merged commit 30a9051 into main Sep 4, 2026
16 of 18 checks passed
@steipete
steipete deleted the steipete/cleanup-pr-deploy-6ef169 branch September 4, 2026 06:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient Contributor real behavior proof is sufficient. 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant