Repository navigation
frontend(feat): add live preview band to catalog KitCard - #58
Merged
Merged
Conversation
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]>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
/componentscatalog rendered installable kits viaKitCardwith 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'sHeroBasicDemo/FeatureGridBasicDemo, dropped into a fixed-heightDemoScaleFrame(h-44+ bottom-fade mask — the same idiomHeroProductFrameuses). 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 nowoverflow-hiddenwith padding moved into a body wrapper.Notes
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— cleanpnpm exec tsc --noEmit— cleandemo-twinsint spec — 3/3E2E_PORT=3100) — 13/13, including the no-horizontal-overflow assertion on/components🤖 Generated with Claude Code