Skip to content

fix(ui): make expanded Template previews readable on phones - #196564

Merged
roboclaw-bot merged 6 commits into
mainfrom
openclaw/ui-rhythm-template-review
Nov 10, 2026
Merged

roboclaw-bot merged 6 commits into
mainfrom
openclaw/ui-rhythm-template-review

Conversation

@roboclaw-bot

@roboclaw-bot roboclaw-bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

What Problem This Solves

Fixes cramped optional-item previews when reviewing a Template on a phone.

User Impact

Users can inspect optional workspace files and requirements across the full row width, with the checkbox and label above the expanded preview. Closed rows and desktop layouts stay unchanged; no migration or user action is required.

Why This Change Was Made

The existing row now stacks only when its native disclosure is open at widths up to 560px. This keeps the change in the Template Creator stylesheet without new state, wrappers, fixed heights, or changes to selection, review, publication, or shared Settings page gutters.

Evidence

  • Built, typed Template review route: at 390px the optional file preview grows 145.2 → 334px and the skill preview 191.4 → 334px. Phone geometry assertions fail on original base 0b9114291429df561ed41340cdc035f51e0f163b and pass with the fix; closed rows and desktop remain unchanged.
  • On integrated head a44fca8e63258330872c9a64499fb8f4637971be, creator E2E is 6 passed / 1 opt-in live case skipped (15.57s test time, 27.63s runner wall time). All six post-integration captures are byte-identical to the inspected images; existing GitHub assets below are reused.
  • The four affected chat-test files pass together under the CI Bun/config: 55/55, 7.11s wall time. Targeted types and the staged test-line ratchet pass. Prior focused lint/format proof remains applicable to the unchanged PR-owned files.
  • Current-main performance comparison against c6fc5bd784b5bc1c8b94a069247796551eea3b7f passes below both absolute CSS ceilings: raw 1,712,750 → 1,712,770 bytes (+20; 115 bytes headroom); normalized gzip 328,828 → 328,840 bytes (+12; 19 bytes headroom). Startup CSS is unchanged. No caps or shared scalar were raised.
  • Main integration is tied to the initial-token CI failure, not ordinary base drift: live PR/run metadata for a29d52… still named base 63f493…, before the landed token fix in #196567. The merge brings in verified main c6fc5bd… without conflicts or a duplicate token repair. All six PR-owned files remain byte-identical to a29d52d73bebf14d113b7ec37e47ee3d83c2379e.
  • Fresh independent GPT-6.1 Sol P0–P2 autoreview of the complete six-file candidate against integrated main: scoped-clean, no actionable findings. Source review, not an independent test execution. Net authored change: 5 production CSS lines / 120 test lines, with an exact per-PR test allocation. New-head hosted CI is separate from these local results.
CI repair provenance and bounded reproduction
  • Original CSS failure: +108 raw bytes put its candidate 75 bytes over the cap. Consolidating the Template Creator disclosure cursor owner removed 88 raw bytes without changing layout. The current integrated measurement above supersedes the earlier old-base absolute warning.
  • Recovery failure: a test read load.mock.results[0] after only the host-render microtask. It now awaits the same exact recovery-call assertion; complete 5MB output and tool-disclosure assertions stay intact. Unmodified focused replay passed, so the full CI scheduling race was not independently reproduced.
  • Contention failure: a fixture-owned pending layout frame reproduced the exact missing-answer/composer-and-Stop result for answer and finishing. The test now checks Stop immediately, awaits the unchanged answer assertion, and retains Stop interaction and status checks. No sleep or timeout increase.
  • Prepared-row repair commit: a29d52d73bebf14d113b7ec37e47ee3d83c2379e. The identical 26→31 failure occurred in this PR and PR #196566. One owner repair is retained here.
  • The optional prewarmer returns undefined while loading, then calls the content renderer for legitimate HTML warming without mounting DOM. A controlled pending→ready probe produced 21→26 callbacks, the same +5 growth: ordinary rows 22, 23, 25, 26 and 27. DOM rows 14–21 were unchanged, with zero preparing rows. The full CI shard timing was not replayed and this is not labeled inherited.
  • The two-line prepared-row repair qualifies the real prewarmer’s readiness before measurement. The original frame/task sequence and final strict no-extra-render assertion are unchanged. Cold-case proof and the full 30-case file pass. No diagnostic mocks/logs, timer changes, broad helper flush, sleep, or timeout increase remains.

Chromium and synthetic Gateway transport only; no physical-device/WebKit or live provider/registry publication claim. All publication responses in the creator browser suite are synthetic.

Phone preview — 390px, dark

BeforeAfter
Before: cramped optional file previewAfter: full-width optional file preview
Additional inspected states: light phone, skill preview, unchanged desktop

After: light phone optional file preview

After: phone skill preview

After: unchanged desktop optional file preview

Worked on by:

Work sessions

Linked for team reference; these sessions aren’t public.

Worked on by

roboclaw-bot and others added 2 commits November 10, 2026 09:36
Stack only open optional-item disclosures at phone widths; retain compact closed rows and the desktop layout. Extend the existing creator browser flow with readable-preview and selection/refresh coverage.

Co-authored-by: vincentkoc <[email protected]>
Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 7c108ea8-a547-4642-954b-fe22eefffae1
@clawsweeper

clawsweeper Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@clawsweeper clawsweeper Bot added clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. and removed clawsweeper:intake:bug Preliminary submission classification; full source review pending. clawsweeper:intake:needs-environment Preliminary submission classification; full source review pending. clawsweeper:intake:needs-repro Preliminary submission classification; full source review pending. labels Nov 10, 2026
@clawsweeper

clawsweeper Bot commented Nov 10, 2026

Copy link
Copy Markdown
Contributor

Codex review: blocked before merge.

What this changes

Expanded optional Template previews stack below their checkbox and label on screens up to 560px wide.

Example: Open workspace/checklist.md while reviewing a Template at a 390px viewport.

  • Before: The preview shares the row with its label and wraps into a narrow column.
  • After: The label sits above a full-width preview.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The visual fix is focused and supported by direct screenshots, but unresolved required CI failures limit merge confidence.
Proof confidence 🦞 diamond lobster (5/6) ✨ media proof bonus Sufficient (screenshot): Inspected screenshots exercise the built Template review route at 390px, showing the file preview before and after plus light-theme and skill-preview states; synthetic Gateway responses do not replace the changed browser layout owner.
Patch quality 🦐 gold shrimp (3/6) No actionable review findings were identified.

Product

Kind: Bug fix · Worth it: Yes · Fix scope: Complete
User problem: Expanded optional Template previews become difficult to read in a narrow column on phones.
Reason: The inspected screenshots show a meaningful readability improvement from a small stylesheet change, and maintainer authorship establishes the direction.

Merge readiness

⛔ Blocked before merge - 1 item remains

Keep open: this PR provides a focused, visually verified improvement that current main still needs; required CI failures remain unresolved.

Priority: P2
Reviewed head: 1250d4c134d5003e0d8cbe4e5224df57c5b588b6

Before merge

  • Resolve merge risk - The CI owner must resolve the CSS ceiling failure and establish whether the chat recovery failure is inherited before merge.

Findings

None.

Agent review details

How this fits together

The Control UI renders Gateway-provided Template review items as selectable rows with native disclosures; this change controls their responsive presentation.

flowchart LR
  A[Gateway review result] --> B[Template review view]
  B --> C[Optional item row]
  C --> D[Checkbox and label]
  C --> E[Native disclosure]
  F[Responsive stylesheet] --> C
Loading

Technical review

Best possible solution:

Keep the responsive fix in the existing Template stylesheet, using the native disclosure state.

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

Current-main CSS and the supplied before screenshot establish the narrow phone layout; no target code was executed during this review.

Is this the best way to solve the issue?

The patch uses the existing layout owner and native open state, preserving compact closed rows and desktop behavior without additional markup or state.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against ce91f94f83be.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Keep the responsive fix in the existing Template stylesheet, using the native disclosure state.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Provenance checked

  • Optional review row layout keeps the original intent (c9a7947: The original feature provided a compact sectioned package-review modal; the later rename preserved that layout.)
  • Creator browser scenario and proof preparation keeps the original intent (perf(test): skip unused browser proof preparation #188685: Browser consolidation retained distinct scenarios while avoiding unused captures and repeated browser startup; new screenshots remain opt-in and reuse existing helpers.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit c9a7947 adds ui/src/styles/claw-creator.css:61 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: c9a7947148bb; files: ui/src/styles/claw-creator.css)

PR surface

Source +7, Tests +111, Other +2. Total +120 across 3 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 1 7 0 +7
Tests 1 127 16 +111
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 1 2 0 +2
Total 3 136 16 +120

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Production versus test growth Production +7 lines; tests +111 net lines The production fix is minimal; the existing browser scenario gains responsive geometry, scroll reachability, retained disclosure and selection coverage without another harness.

Labels

Label changes:

  • add P2: Phone users can still review and publish Templates, but expanded previews are unnecessarily cramped.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.

Label justifications:

  • P2: Phone users can still review and publish Templates, but expanded previews are unnecessarily cramped.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦞 diamond lobster and patch quality is 🦐 gold shrimp.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

Rank-up moves

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

  • Establish baseline attribution for the two failing required checks and resolve any patch-caused failure.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 10, 2026, 4:55 AM ET / 09:55 UTC.

roboclaw-bot and others added 4 commits November 10, 2026 10:10
Reuse the Template Creator disclosure cursor owner to remove 88 emitted CSS bytes without changing layout. Wait for the existing transcript recovery request assertion rather than the host render microtask. Reduce the exact test-line grant by the removed line.

Co-authored-by: vincentkoc <[email protected]>
Keep Stop available immediately while an existing layout frame delays transcript admission. Reproduce the timing with a fixture-owned pending frame and await the unchanged answer assertion; preserve abort/send and status checks.

Co-authored-by: vincentkoc <[email protected]>
Wait for the real optional prewarmer before the measured scroll sequence. Keep the existing frame/task sequence and strict no-extra-render assertion intact; HTML warming also invokes the content renderer without mounting rows.

Co-authored-by: vincentkoc <[email protected]>
Integrate verified main c6fc5bd for the named initial-token failure. PR and CI metadata still pinned the older63f493base. Preserve the prepared-row repair and all other PR-owned files byte-for-byte; affected55tests and current-main performance comparison pass.

Co-authored-by: vincentkoc <[email protected]>
@roboclaw-bot
roboclaw-bot merged commit 71c83b7 into main Nov 10, 2026
83 checks passed
@roboclaw-bot
roboclaw-bot deleted the openclaw/ui-rhythm-template-review branch November 10, 2026 11:29
@roboclaw-bot

Copy link
Copy Markdown
Collaborator Author

Merged via squash.

roboclaw-bot added a commit that referenced this pull request Nov 10, 2026
Integrate canonical main 5ac2102 to reuse the prepared-row test readiness repair from merged PR #196564 for the named CI failure on 25af986. Preserve the investigated, cause-unproven Sessions WebKit resize failure and its transport limitations; this integration does not claim to repair it.

Co-authored-by: vincentkoc <[email protected]>
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Nov 11, 2026
…#196564)

* fix(ui): make expanded Template previews readable on phones

Stack only open optional-item disclosures at phone widths; retain compact closed rows and the desktop layout. Extend the existing creator browser flow with readable-preview and selection/refresh coverage.

Co-authored-by: vincentkoc <[email protected]>

* fix(ui): make expanded Template previews readable on phones

Worked on by:
- @vincentkoc

Co-authored-by: vincentkoc <[email protected]>
OpenClaw-Publication: 7c108ea8-a547-4642-954b-fe22eefffae1

* fix(ui): trim creator styles and await transcript recovery

Reuse the Template Creator disclosure cursor owner to remove 88 emitted CSS bytes without changing layout. Wait for the existing transcript recovery request assertion rather than the host render microtask. Reduce the exact test-line grant by the removed line.

Co-authored-by: vincentkoc <[email protected]>

* test(ui): await deferred answer before contention assertions

Keep Stop available immediately while an existing layout frame delays transcript admission. Reproduce the timing with a fixture-owned pending frame and await the unchanged answer assertion; preserve abort/send and status checks.

Co-authored-by: vincentkoc <[email protected]>

* test(ui): qualify prewarmer readiness before counting row work

Wait for the real optional prewarmer before the measured scroll sequence. Keep the existing frame/task sequence and strict no-extra-render assertion intact; HTML warming also invokes the content renderer without mounting rows.

Co-authored-by: vincentkoc <[email protected]>

---------

Co-authored-by: vincentkoc <[email protected]>
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 P2 Normal backlog priority with limited blast radius. proof: 📸 screenshot Contributor real behavior proof includes screenshot evidence. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. size: S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant