Repository navigation
improve: preview a Template without expanding its files in chat - #202060
Conversation
OpenClaw-Publication: 3839cda0-db84-83fe-b2c7-0709afb1d9d3
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
Template publication in the running chatClean comparisonBefore: the file inspector filled the chat. After: a 600 × 177 px summary opens it on demand. Annotated comparisonSame synthetic Template, theme and viewport on base f685aad and candidate ffc01b7; subsequent E2E-only changes did not alter the renderer. WalkthroughsPreview → workspace files → source → Back → Close → Publish → Pending → Published. Real app timers; only idle video playback is accelerated (8×). Desktop publish-desktop.mp4Mobile viewport publish-mobile.mp4All 11 statesIndividual browser frames
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. |
|
Codex review: needs maintainer review before merge. What this changesThis 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.
Review scores
ProductKind: Feature · Worth it: Yes · Fix scope: Complete 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 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe 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
Technical reviewBest 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
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
PR surfaceSource -42, Tests +184, Docs +4. Total +146 across 15 files. Added test files: 0. View PR surface stats
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes: No label changes. Label justifications:
Rating scale6/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. WorkflowClawSweeper edits this one comment on every review. Comment HistoryReview history (2 earlier review cycles)Reviewed November 19, 2026, 8:20 PM ET / November 20, 2026, 01:20 UTC (Revision 3). |
OpenClaw-Publication: 9c904a34-7654-8d84-9a3e-dd8e20200bb8
Pending card after removing the email alertThese 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.
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.mp4publish-mobile.mp4 |
OpenClaw-Publication: 83d80806-7fbf-87b9-9712-24eff635628a
…-publish-card-preview # Conflicts: # ui/src/styles/templates-catalog.css
OpenClaw-Publication: 38faf0ff-2d3d-8cb3-bbdd-48d6f6e5cb3a
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|
OpenClaw-Publication: 5e2ac27c-ce02-80bc-8d57-e22b2dc69eac
|
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.
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. |
|
@clawsweeper re-review |
|
🦞👀 Re-review progress:
|



































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