Repository navigation
improve: give Template cards standalone artwork and a two-column layout - #201656
Conversation
|
🦞👀 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. |
|
Codex review: needs maintainer review before merge. What this changesThis PR gives Template cards standalone artwork, horizontal content, and a responsive two-column catalog layout. Example: Browse Featured Templates at 1440×900.
Review scores
ProductKind: Preference · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep open: this maintainer-directed visual improvement is focused, supported by inspected screenshots, and has no actionable findings; exact-head CI passes. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherThe Control UI receives Template catalog entries through Gateway RPC and renders discovery cards, loading placeholders, and package artwork. flowchart LR
A[Gateway catalog RPC] --> B[Templates Explore]
B --> C[Shared Template card]
B --> D[Loading skeleton]
C --> E[Template artwork]
C --> F[Detail or Add action]
Technical reviewBest possible solution: Use the existing Template card, artwork component, and matching skeleton to deliver the approved layout. Do we have a high-confidence way to reproduce the issue? The supplied before screenshot and base CSS establish the existing presentation; this is an intentional design change rather than a reported runtime defect. Is this the best way to solve the issue? The patch uses the existing presentation owners, removes superseded reflow rules, and adds no production state or parallel renderer. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against cf9a9839e03b. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
PR surfaceSource -4, Tests +74. Total +70 across 4 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:
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 Reviewed November 19, 2026, 1:25 AM ET / 06:25 UTC. |
|
Merged via squash.
|
What Problem This Solves
Template artwork sits on a colored backplate, and the dense catalog layout separates each Template’s description from its name and owner. The requested design gives the artwork and identity more room without hiding the Add action.
User Impact
Template overview sections show four horizontal cards in a desktop 2×2 grid, with standalone artwork on the left, name and owner above the description, and Add centered on the right. Narrow screens use a single column. No configuration changes or migration are required.
Why This Change Was Made
Reuse the existing Template card and loading skeleton instead of adding another renderer. Their shared geometry reserves two description lines and keeps loaded cards in place. The grid override is scoped to Templates; plugin catalog grids are unchanged. Template package/detail artwork also loses its backplate.
Simplification: remove the old container-query/title-reflow path and redundant grid-area rules. Production delta: +59/−63 lines; tests: +89/−15 lines, primarily extending the existing browser scenario to cover custom/fallback artwork, 2×2 geometry, long identities, and mobile overflow. No new production state, effects, subscriptions, or handlers.
Evidence
The four-card request regression fails on the base (eight requested) and passes with this change. All 27 focused discovery/artwork tests pass, and
pnpm check:changed --base HEADpasses (types, lint, formatting, ratchets and dead-code checks). Eleven selected Chromium checks pass, covering loading placeholder stability, desktop/mobile layout, direct Add with retained input, and rolled-back Add errors.Before/after captures use the real Control UI with the same synthetic catalog, light theme, 1440×900 viewport, and scale. Before:
43ed271df4a1bc109d8fe07c502985f40c116d6a; after: this PR’s unchanged production layout. These fixtures prove frontend rendering and mocked Gateway RPC/event handling, not real installation, persistence, or live ClawHub delivery. The existing custom image fixture is the application’s Blobster asset.Clean before/after images are followed by annotated copies of those same frames below.