Skip to content

frontend(feat): add live preview band to catalog KitCard - #58

Merged
Ducksss merged 1 commit into
devfrom
claude/kit-card-live-preview
Jun 12, 2026
Merged

Ducksss merged 1 commit into
devfrom
claude/kit-card-live-preview

Conversation

@Ducksss

@Ducksss Ducksss commented Jun 12, 2026

Copy link
Copy Markdown
Owner

What

The /components catalog rendered installable kits via KitCard with no visual preview, while the landing already renders them live through the demo twins. This closes that gap by reusing the existing twins on the catalog card.

  • KitPreviewThumb (new): maps slug → the landing's HeroBasicDemo / FeatureGridBasicDemo, dropped into a fixed-height DemoScaleFrame (h-44 + bottom-fade mask — the same idiom HeroProductFrame uses). The "Live preview" pill sits outside the masked frame so the fade never touches it. Unknown slugs render nothing.
  • KitCard: renders the band above the body; the article is now overflow-hidden with padding moved into a body wrapper.

Notes

  • Reuses dev's canonical twins rather than duplicating them, so the class-drift guard (tests/int/demo-twins) keeps covering them.
  • KitGrid's posts-suite skeletons are untouched — the planned-vs-real fidelity gap is deliberate.

Verification

  • pnpm lint — clean
  • pnpm exec tsc --noEmit — clean
  • demo-twins int spec — 3/3
  • e2e suite (E2E_PORT=3100) — 13/13, including the no-horizontal-overflow assertion on /components
  • Spot-checked desktop + 375px mobile (0px horizontal overflow)

🤖 Generated with Claude Code

The /components catalog rendered installable kits via KitCard with no
visual preview, while the landing already renders them live through the
demo twins. Close that gap by reusing the existing twins on the card.

- KitPreviewThumb: maps slug -> the landing's HeroBasicDemo /
  FeatureGridBasicDemo, dropped into a fixed-height DemoScaleFrame
  (h-44 + bottom-fade mask, the same idiom HeroProductFrame uses). The
  "Live preview" pill sits outside the masked frame so the fade never
  touches it. Unknown slugs render nothing.
- KitCard: render the band above the body; the article is now
  overflow-hidden with padding moved into a body wrapper.

Reuses dev's canonical twins rather than duplicating them, so the
class-drift guard (tests/int/demo-twins) keeps covering them. KitGrid's
posts-suite skeletons are untouched (deliberate planned-vs-real gap).

Verified: pnpm lint, tsc --noEmit, demo-twins int (3/3), and the e2e
suite (E2E_PORT=3100, 13/13) including the no-horizontal-overflow check
on /components; spot-checked desktop + 375px (0px overflow).

Co-Authored-By: Claude Fable 5 <[email protected]>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@vercel

vercel Bot commented Jun 12, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
payload-components Ready Ready Preview, Comment Jun 12, 2026 10:24am

@Ducksss
Ducksss merged commit 353ddc6 into dev Jun 12, 2026
4 checks passed
@Ducksss
Ducksss deleted the claude/kit-card-live-preview branch June 12, 2026 10:27

This branch was successfully deployed

1 active deployment
Preview — 2aade49b Deployed Jun 12, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant