Skip to content

improve: preview a Template without expanding its files in chat - #202060

Merged
Patrick-Erichsen merged 19 commits into
mainfrom
openclaw/dawn-langoustine
Nov 20, 2026
Merged

Patrick-Erichsen merged 19 commits into
mainfrom
openclaw/dawn-langoustine

Conversation

@Patrick-Erichsen

@Patrick-Erichsen Patrick-Erichsen commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

A prepared Template fills the conversation with a file inspector even when the publisher only wants the summary. Publication can take minutes, and a lost response must not lead to a second upload.

User Impact

The draft stays in a compact chat card. Preview opens the file inspector used for Import; Publish works from the card or the dialog. Pending shows a blue badge and View submission. There is no email alert or automatic redirect. On publication the card offers Copy link. An uncertain submission offers Check status, not a second upload; a confirmed failure offers Retry.

Why This Change Was Made

Preview and Publish use the same reviewed archive. Revising the draft closes an outdated preview. While the card is active, it checks a pending submission 30 seconds after each response and stops on a final receipt. Opening the submission on ClawHub is the publisher’s choice. Email delivery is not part of the Control UI contract. The link uses the Gateway-provided Template URL; viewing an unpublished release there depends on the signed-in pending listing on ClawHub.

Evidence

  • Current Pending and delayed-status screenshots: desktop/mobile comparisons and both walkthroughs. These supersede those states and the videos in the original 11-state gallery. Running bundled UI with scripted Gateway responses, 1440 × 844 and 390 × 844; only idle video playback is accelerated.
  • On the alert-free candidate, a real disposable Gateway sent one reviewed archive to a loopback registry and checked the same attempt at +30.312 s and +60.481 s. No duplicate upload, navigation or new tab. Neither the hosted link nor production email delivery was exercised by this test.
  • 20 focused creator tests and four responsive Chromium scenarios passed on the alert-free candidate. The pristine base rendered Publish but no Preview; the new Preview opens the exact file, goes Back and closes without uploading.
  • The preceding CSS repair passed hosted CI, including the performance and lint gates without changing budgets. Against f9553398b8e its local paired CSS delta was −990 B raw and +58 B gzip (allowance +64 B). This follow-up removes the email notice, its copy and its dedicated CSS rules.

@clawsweeper

clawsweeper Bot commented Nov 19, 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.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui size: L labels Nov 19, 2026
@Patrick-Erichsen

Patrick-Erichsen commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor Author

Template publication in the running chat

Clean comparison

Before: the file inspector filled the chat. After: a 600 × 177 px summary opens it on demand.

comparison desktop

comparison mobile

Annotated comparison

comparison desktop annotated

comparison mobile annotated

Same synthetic Template, theme and viewport on base f685aad and candidate ffc01b7; subsequent E2E-only changes did not alter the renderer.

Walkthroughs

Preview → workspace files → source → Back → Close → Publish → Pending → Published. Real app timers; only idle video playback is accelerated (8×).

Desktop

publish-desktop.mp4

Mobile viewport

publish-mobile.mp4

All 11 states

All eleven desktop states

All eleven mobile states

Individual browser frames
State Desktop Mobile
Unpublished Desktop unpublished Mobile unpublished
Preview Desktop preview Mobile preview
Publishing Desktop publishing Mobile publishing
Pending Desktop pending Mobile pending
Published Desktop published Mobile published
Updating draft Desktop updating draft Mobile updating draft
Draft unavailable Desktop draft unavailable Mobile draft unavailable
Unconfirmed Desktop unconfirmed Mobile unconfirmed
Checking status Desktop checking status Mobile checking status
Status delayed Desktop status delayed Mobile status delayed
Not published Desktop not published Mobile not published

The recordings use scripted Gateway replies in isolated Chromium; mobile is a viewport, not a physical device. Separately a real local Gateway sent one exact archive to a loopback registry and checked the same attempt at +30.056 s and +60.098 s. No hosted publication, scan, or email was attempted.

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature 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: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed clawsweeper:intake:feature Preliminary submission classification; full source review pending. labels Nov 19, 2026
@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR replaces the expanded Template inspector in chat with a compact card, optional Preview dialog, and paced publication checks.

Example: Review the Release Brief Template at a 390 × 844 viewport.

  • Before: The file inspector occupies most of the conversation.
  • After: A compact summary offers Preview and Publish; Preview opens the existing read-only inspector.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) Useful and supported by visible product evidence, focused regression coverage, and preserved publication ownership; hosted registry behavior is outside the claimed proof.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected bundled-Control-UI screenshots demonstrate the compact desktop/mobile card, optional shared inspector, current Pending presentation, and preserved portrait; the author separately reports a disposable Gateway upload and paced checks against a loopback registry, without claiming hosted publication.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Product

Kind: Feature · Worth it: Yes · Fix scope: Complete
User problem: A prepared Template occupies much of the conversation even when the publisher only needs its summary and publication action.
Reason: The supplied maintainer-authored direction has clear visual value, preserves optional inspection and explicit publication, and adds no configuration or persisted format.

Merge readiness

✅ Ready for maintainer review

Keep open: this PR provides a useful compact Template review flow that current main lacks, with no actionable introduced defect found; current-head CI is still running.

Priority: P2
Reviewed head: 17f3a63bfb30ce54140123b51b3e74ce6d4b9428

Before merge

None.

Findings

None.

Agent review details

How this fits together

The Control UI presents Gateway-owned Template drafts and publication receipts, sending explicit review and publish requests through the existing creator flow.

flowchart LR
  A[Chat draft card] --> B[Creator flow]
  A --> C[Preview dialog]
  C --> D[Shared archive inspector]
  B --> E[Gateway draft owner]
  E --> F[Registry publication]
  F --> E
  E --> B
Loading

Technical review

Best possible solution:

Use the compact card and existing shared inspector while retaining exact-archive publication and established uncertain-upload recovery.

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

This is a presentation enhancement; current-main source and the supplied before images establish the expanded inspector behavior without executing target code.

Is this the best way to solve the issue?

The implementation reuses the existing archive inspector, modal, artwork renderer, and publication owner; the shared CSS consolidation supports the existing performance budget without introducing competing state.

AGENTS.md: found and applied where relevant.

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

Provenance checked

  • Inline review and publication recovery changes intended behavior with a stated reason (c1ecbca: Keep read-only inspection and explicit publication in the requesting conversation, bound to the immutable reviewed archive, without automatically resubmitting uncertain uploads.)
  • Shared Template presentation and catalog geometry keeps the original intent (d77b586: Give Template artwork and identity more room while preserving Add, responsive layout, and matching loading geometry.)
  • Deferred creator lifecycle keeps the original intent (aa65a0e: Load creator implementation on first use while keeping publication ownership and issued-write settlement independent of presentation lifetime.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

PR surface

Source -42, Tests +184, Docs +4. Total +146 across 15 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 11 482 524 -42
Tests 3 230 46 +184
Docs 1 10 6 +4
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 15 722 576 +146

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.

Labels

Label changes:

No label changes.

Label justifications:

  • P2: This improves Template publishing ergonomics and status polling on a limited, Labs-gated surface.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.
  • proof: sufficient: Contributor real behavior proof is sufficient.
  • proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-11-19T21:20:04.614Z sha 6807dc0 :: needs changes before merge. :: [P2] Replace the unconditional publication-email promise | [P2] Remove the CSS growth rejected by the performance gate
  • reviewed 2026-11-19T22:49:33.701Z sha 094f24e :: needs maintainer review before merge. :: none

Reviewed November 19, 2026, 8:20 PM ET / November 20, 2026, 01:20 UTC (Revision 3).

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Pending card after removing the email alert

These four comparisons and two walkthroughs supersede the Pending / delayed-status captures and both videos in the original gallery. Other states are unchanged. Left: original alert; right: revised card.

Desktop (1440 × 844) Mobile (390 × 844)
Pending Pending desktop Pending mobile
Status check delayed Status delayed desktop Status delayed mobile

Walkthroughs below: desktop then mobile. Real bundled Chromium UI, scripted Gateway. Only idle playback is accelerated (8×).

Separately, a real disposable Gateway uploaded the exact reviewed archive once and checked the same submission at +30.312 s and +60.481 s, through Pending to Published. Neither acceptance nor polling navigated or opened a tab. The test used a loopback registry; neither the hosted ClawHub destination nor email delivery was tested. The card makes no email promise.

publish-desktop.mp4
publish-mobile.mp4

Patrick-Erichsen and others added 3 commits November 19, 2026 14:33
OpenClaw-Publication: 83d80806-7fbf-87b9-9712-24eff635628a
…-publish-card-preview

# Conflicts:
#	ui/src/styles/templates-catalog.css
Patrick-Erichsen and others added 2 commits November 19, 2026 14:38
OpenClaw-Publication: 38faf0ff-2d3d-8cb3-bbdd-48d6f6e5cb3a
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

@clawsweeper clawsweeper Bot added 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. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. labels Nov 19, 2026
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Template portrait integration at 17f3a63: the compact card uses the reviewed archive’s portrait when present, with Blobster as the fallback. Preview shows the same portrait. Both captures use the same synthetic review in the bundled Control UI, real Chromium and a scripted Gateway; no upload was requested. The before image uses the earlier compact-card build, not current main.

Before After
Fallback despite supplied portrait Reviewed portrait in the compact card

Same reviewed portrait in Preview

The upstream avatar regression failed before repair and passed afterward. The clean exact-base bundle comparison, UI build, UI type-check, 26 focused tests and six Chromium checks passed; one browser case was skipped.

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
Exact review queued.

Re-review progress:

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 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: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XL 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