Skip to content

improve: give Template cards standalone artwork and a two-column layout - #201656

Merged
Patrick-Erichsen merged 1 commit into
mainfrom
template-cards-without-backplates
Nov 19, 2026
Merged

Patrick-Erichsen merged 1 commit into
mainfrom
template-cards-without-backplates

Conversation

@Patrick-Erichsen

Copy link
Copy Markdown
Contributor

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 HEAD passes (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.

Before: small artwork on backplates in four columns

After: standalone artwork and horizontal cards in a 2 by 2 grid

Before: annotated card bounds

After: annotated card bounds

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

@clawsweeper clawsweeper Bot added clawsweeper:intake:feature Preliminary submission classification; full source review pending. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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. 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 gives Template cards standalone artwork, horizontal content, and a responsive two-column catalog layout.

Example: Browse Featured Templates at 1440×900.

  • Before: Four narrow cards appear in one row with small artwork on colored backplates.
  • After: Four horizontal cards form a 2×2 grid with larger standalone artwork and right-aligned Add buttons.

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused presentation change with directly inspected visual evidence, useful browser coverage, and passing exact-head gates.
Proof confidence 🐚 platinum hermit (4/6) ✨ media proof bonus Sufficient (screenshot): Inspected before/after browser screenshots exercise the actual Control UI card renderer with synthetic catalog data at 1440×900 and demonstrate the changed artwork, identity placement, grid, and Add visibility; mocked Gateway data is appropriate for this presentation-only change.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Preference · Worth it: Yes · Fix scope: Complete
User problem: Small backplated artwork and dense cards give Template identity and descriptions limited visual space.
Reason: The supplied maintainer-authorship facts establish direction, and the inspected result delivers that direction with limited implementation cost.

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
Reviewed head: 5caa1646a2006a8b7fca58e4a6dfe80ffc22d3cc

Before merge

None.

Findings

None.

Agent review details

How this fits together

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

Technical review

Best 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

  • Card identity, artwork, and narrow-card reflow changes intended behavior with a stated reason (fix(ui): Claw card names break one word per line on narrow cards #179787: Move names below artwork on narrow cards to prevent fragmented wrapping; later shared styling carried this behavior forward.)
  • Reserved card and skeleton geometry keeps the original intent (2159567: Keep loaded cards aligned with their placeholders and reveal first-screen artwork with the text.)
  • Overview shelf size changes intended behavior with a stated reason (413d2fc: Present discovery shelves in the catalog layout; the new design explicitly requests four cards per overview section.)
  • Shared package artwork backplates changes intended behavior with a stated reason (c1ecbca: Share package presentation and preserve the then-approved appearance across preview and review surfaces.)

Testing

Proof path: shipped entry point.

Security

None.

Evidence

What I checked:

Likely related people:

  • Patrick Erichsen: Raw commit 2159567 adds ui/src/pages/agents-home/templates-explore.tsx:62 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: high; commits: 2159567b9ffc; files: ui/src/pages/agents-home/templates-explore.tsx)
  • Peter Steinberger: Raw commit f0d7334 adds ui/src/pages/agents-home/claws-explore.tsx:108 relative to its recorded parents. This identifies author metadata, not feature responsibility or a PR merger. (role: source-line author; confidence: medium; commits: f0d7334db0e5; files: ui/src/pages/agents-home/claws-explore.tsx)

PR surface

Source -4, Tests +74. Total +70 across 4 files. Added test files: 0.

View PR surface stats
Area Files Added Removed Net
Source 2 59 63 -4
Tests 2 89 15 +74
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 4 148 78 +70

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:

  • add P3: This is a bounded catalog presentation improvement without a demonstrated broken core workflow.
  • add proof: sufficient: Contributor real behavior proof is sufficient.
  • add proof: 📸 screenshot: Contributor real behavior proof includes screenshot evidence.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is a bounded catalog presentation improvement without a demonstrated broken core workflow.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit and patch quality is 🦞 diamond lobster.
  • 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.

Reviewed November 19, 2026, 1:25 AM ET / 06:25 UTC.

@Patrick-Erichsen
Patrick-Erichsen merged commit d77b586 into main Nov 19, 2026
99 of 100 checks passed
@Patrick-Erichsen
Patrick-Erichsen deleted the template-cards-without-backplates branch November 19, 2026 06:28
@Patrick-Erichsen

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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 P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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: M 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