Repository navigation
feat(landing): component wall hero + motion.dev choreography - #370
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Important Review skippedReview was skipped due to path filters ⛔ Files ignored due to path filters (2)
CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including ⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
📝 WalkthroughWalkthroughThe landing page adds reusable motion primitives, replaces CSS scroll reveals, introduces an animated component wall hero, updates section composition, adds reduced-motion and no-script fallbacks, and revises end-to-end assertions and visual baseline execution. ChangesLanding motion and component wall
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant HeroSection
participant ComponentWall
participant WallBand
participant demosBySlug
HeroSection->>ComponentWall: Render wall and catalog count
ComponentWall->>WallBand: Render configured bands
WallBand->>WallBand: Loop duplicated cards with pause and reduced-motion controls
ComponentWall->>demosBySlug: Resolve each demo by slug
demosBySlug-->>ComponentWall: Return demo component
Possibly related PRs
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Self-reviewReviewed the diff before handing it to CodeRabbit. One real bug found and fixed in 🔴 Revealed sections were invisible without JavaScript — fixedMotion reveals ship their hidden This was a regression, not a pre-existing limit: the CSS Measured rather than reasoned about, with
Fixed with a Also addressed
Checked and found fine
Still outstandingLinux visual baselines need re-minting via the |
|
@coderabbitai review |
✅ Action performedReview finished.
|
|
Deployment failed with the following error: |
…he page Replaces the hero's single-component install replay with the catalog itself: three rows of the real demo twins drifting past at different speeds. A hero has one job, and for a registry that job is range — one block installing proves the CLI, sixty blocks alive prove the product. The replay is not lost; it moves to the workflow section, where 'run the command' is literally step one and the transcript answers it. Motion: - motion.dev now owns the landing's scroll choreography (Reveal / RevealStagger / RevealItem), replacing the CSS animation-timeline reveal-on-scroll, which is now removed. - The wall's drift is a motion value rather than a keyframe because it has to pause: off-screen it does no work at all, and hovering a row holds it still so a visitor can read a block. - Entrances that gate first paint stay CSS. A motion `initial` ships as inline opacity:0 in the SSR HTML, so putting the LCP headline (or the wall itself) behind hydration would cost real Core Web Vitals for no visual gain. - Reduced motion pins every final frame before hydration via a CSS net, so the reduced-motion visual contract and no-JS renders stay whole. Co-Authored-By: Claude Opus 5 <[email protected]>
…shots The first pass was functional but rushed. Four things fixed, each measured rather than eyeballed: - Every card was guillotined mid-sentence. Worse, cropping each twin to its top third meant every card showed the SAME anatomy (eyebrow → headline → paragraph), so a wall built to prove range read as repetition. Measured all 67 twins at the wall's layout width and curated to the 18 that render complete at ~150-212px, so a pricing table, an orbit diagram and a testimonial grid are visibly different objects. - Each twin was wrapped in a bordered card while already drawing its own frame. The doubled edge is what made the rows look like screenshots in widgets; the block is now the card, with the label as a caption outside it. - The 11px mono label out-sized the headline of the block it labelled. Chrome louder than content is the thing that reads as unfinished. - Drift ran at ~150px/s, which is a carousel in a hurry rather than a wall. Now ~48px/s. Also: cards size to their content instead of sitting in fixed boxes with dead space, edges dissolve via a real alpha mask (opaque overlays seamed against the emerald hero wash), and shadow-frame replaces a 1px hairline that read as a wireframe at this scale. Co-Authored-By: Claude Opus 5 <[email protected]>
Self-review of the motion migration turned up a real regression: motion reveals ship their hidden `initial` state as inline opacity:0 in the SSR HTML and are only released on hydration, so with JavaScript disabled — or if the bundle simply fails to arrive — all 21 revealed elements stayed invisible and the whole landing page below the hero rendered blank. Verified with Playwright (javaScriptEnabled: false): 21/21 hidden before, 0/21 after. The CSS reveal this replaced degraded gracefully, so this was a regression, not a pre-existing limit. A <noscript> style net pins the finished frame in exactly that case and is inert whenever scripting works. Also from the review pass: - RevealItem now documents that it is inert outside a RevealStagger (it has no trigger of its own by design — giving it one would destroy the stagger). - Dropped RevealStagger's unused delay prop and two dead class hooks. - HeroSection reads componentEntries directly instead of via a re-export. Co-Authored-By: Claude Opus 5 <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
…res in visual-baselines.yml ran bare `pnpm test:e2e`, which starts `pnpm dev`, while release-gate runs `PLAYWRIGHT_SERVER_MODE=production` against `pnpm start`. A dev render is not pixel-identical to a production one, so every minted baseline was subtly wrong: the landing mobile baseline came out 1px taller than the gate's render, and a 1px page-height shift cascades into a whole-page diff far past maxDiffPixelRatio. Builds first and mints under production mode so a minted baseline is directly comparable to the gate's. Co-Authored-By: Claude Opus 5 <[email protected]>
…ssion The release gate failed on a 1px mobile page-height difference that cascaded into a 3% whole-page pixel diff, well past the 1.5% tolerance. Two causes, both in the wall: - Card widths of 230/380 divided by the 0.3 zoom to fractional layout widths (766.67/1266.67). Sub-pixel text layout at a fractional width let the rendered card height flip by 1px between otherwise identical runs. 231/330/384 give integer layout widths (770/1100/1280). - Cards sized to their content, so the wall's height — and therefore the ~17,000px of mobile page below it — depended on how each twin happened to wrap. The box is fixed per breakpoint now and centres its content, so page height is structurally independent of card contents. Verified with 6 consecutive production-mode runs: desktop 10027px and mobile 16847px, identical every time. Co-Authored-By: Claude Opus 5 <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
dev's content-quote logoLabel change (#360) alters a twin the wall renders, so the landing page is 34px taller than the pre-rebase baselines recorded. Co-Authored-By: Claude Opus 5 <[email protected]>
1017136 to
a1f50f7
Compare
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/app/globals.css (1)
696-701: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winUse an opaque mask colour token.
Replace the literal
blackmask stops with a named token defined inglobals.css, so these gradients follow the site’s token-only colour contract.As per coding guidelines,
src/app/globals.cssmust “use token-only colours” and “add a token inglobals.cssinstead.”🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In `@src/app/globals.css` around lines 696 - 701, Replace the literal black stops in the webkit and standard mask-image gradients with the opaque mask colour token defined in globals.css. Reuse the same token consistently for every currently black stop while preserving the existing gradient percentages and transparency stops.Source: Coding guidelines
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Nitpick comments:
In `@src/app/globals.css`:
- Around line 696-701: Replace the literal black stops in the webkit and
standard mask-image gradients with the opaque mask colour token defined in
globals.css. Reuse the same token consistently for every currently black stop
while preserving the existing gradient percentages and transparency stops.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: 05f16871-f963-4c9b-b133-a75eb93eb22c
⛔ Files ignored due to path filters (4)
tests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-desktop-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-desktop-chromium-linux.pngis excluded by!**/*.pngtests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-darwin.pngis excluded by!**/*.pngtests/e2e/frontend.e2e.spec.ts-snapshots/landing-home-mobile-chromium-linux.pngis excluded by!**/*.png
📒 Files selected for processing (16)
.github/workflows/visual-baselines.ymlsrc/app/globals.csssrc/app/layout.tsxsrc/components/site/graphics/ComponentWall.tsxsrc/components/site/graphics/WallBand.tsxsrc/components/site/motion/Reveal.tsxsrc/components/site/motion/landing-motion.csssrc/components/site/sections/CatalogSection.tsxsrc/components/site/sections/ClientShowcase.tsxsrc/components/site/sections/CommunityCta.tsxsrc/components/site/sections/FaqSection.tsxsrc/components/site/sections/HeroSection.tsxsrc/components/site/sections/StackBand.tsxsrc/components/site/sections/WiringSection.tsxsrc/components/site/sections/WorkflowSection.tsxtests/e2e/frontend.e2e.spec.ts
) The wall fix in #392 measured the phone and the desktop. It did not measure the band between them, and that is where the cropping was worst: content-quote, content-feature-media and content-feature-split ran 88/80/79px past a 212px frame at 640-1023px, against 32/26/25px at 390px. The fade absorbs 28px, so those three were still visibly losing a sentence on a tablet after #392 shipped — the same defect as before, one breakpoint over. Cause is the documented caveat, sharper than expected: the twins pick their variant from the VIEWPORT, not from the width the wall lays them out at, and the stacked variants are tallest in the tablet band, not on a phone. Fixed by giving that band a 256px frame (taller than desktop's 216px) and widening the fade to 2.75rem over the same range. Both are scoped to 640-1023px on purpose: 390px and 1440px are pinned by visual baselines and neither moves, which is why no baseline is re-minted here. Worst overrun in the band is now 44px against a 44px fade. Also asserts the fit, at three widths, because a curated fit measured at one width is what produced both regressions. The guard was verified by reverting the per-breakpoint zoom: it fails at 128px on phone and 93px on tablet while desktop still passes, which is exactly the blind spot that let #370 through. A second test pins the frame fade, which has already gone missing once. The 60px ceiling is not snug to the current 44px — it catches losing-a-paragraph regressions without failing on copy edits. Verified: 44/44 frontend e2e (both landing baselines unchanged), 10/10 axe, eslint and tsc clean. Co-authored-by: Claude Opus 5 <[email protected]>
…e days Triaged every bot review on the 60 PRs merged since 2026-07-24. Copilot was quota-limited on all of them and Codex's one finding (#340 Linux baselines) was handled by #342, so everything actionable is CodeRabbit's. Most of its findings were already closed by #378/#380 or superseded by later work; two were false positives. These five were still open and worth taking. - frontend.e2e: pin the tablet wall fade (#399). The 2.75rem override IS that PR, and nothing asserted it — the existing fade check runs at 390px, outside the 640-1023px query, so deleting the rule stayed green, and the overrun ceiling is deliberately loose enough (60px) to swallow the 44px residue too. Asserted exactly, because matching the residue is the point. - templates-a11y: accept the 3D identity as settled (#394). A reveal written with translate3d, or carrying a translateZ(0) compositor hint, serialises as matrix3d — the check saw only the 2D identity and would have failed the gate for a reveal sitting exactly where it belongs. - painted-contrast: name the no-glyph-pixel skips (#394). unresolvedSelectors already exists so a skip cannot hide which node it dropped; this is the other way an unmeasurable node leaves the run, and it was a bare count. - ComponentWall: fix the zoom comment (#396). It claimed every card shows true desktop proportions at every size. zoom pins the 1280px layout width, not the breakpoint — frontend.e2e's own comment says as much — and that claim is exactly what would mislead the next person curating frame heights. - CONTRIBUTING: document the changed-vs-all snapshot trap (#375). A bare --update-snapshots skips baselines whose diff lands under tolerance, which is the same stale-baseline half-mint the section warns about, minus the missing file that would have revealed it. visual-baselines.yml explains this at length; the local instructions did not. Skipped, with reasons: tokenising the wall fade heights and the mask-image black stops (#399/#396/#370) — the token rule scans component utilities, not globals.css, which defines tokens and carries raw lengths throughout, and a mask's black is an alpha keyword rather than a colour; fading only confirmed-overflow cards (#396) — the valve exists for content that has not changed yet; moving privacy copy into site.ts (#372) — real per AGENTS.md, but about/blog/brand-guide hold local copy too, so this belongs in one deliberate pass; subset-aware blog visual validation (#375) — outputRoot defaults to the repo, so a --slug render is incremental against committed assets and the full-catalog gate is the correct final check. Verified: lint, tsc, the three affected int specs, and both e2e specs green (frontend 44 passed, templates-a11y 43 passed) in production mode. Co-Authored-By: Claude Opus 5 <[email protected]>
…e days (#411) Triaged every bot review on the 60 PRs merged since 2026-07-24. Copilot was quota-limited on all of them and Codex's one finding (#340 Linux baselines) was handled by #342, so everything actionable is CodeRabbit's. Most of its findings were already closed by #378/#380 or superseded by later work; two were false positives. These five were still open and worth taking. - frontend.e2e: pin the tablet wall fade (#399). The 2.75rem override IS that PR, and nothing asserted it — the existing fade check runs at 390px, outside the 640-1023px query, so deleting the rule stayed green, and the overrun ceiling is deliberately loose enough (60px) to swallow the 44px residue too. Asserted exactly, because matching the residue is the point. - templates-a11y: accept the 3D identity as settled (#394). A reveal written with translate3d, or carrying a translateZ(0) compositor hint, serialises as matrix3d — the check saw only the 2D identity and would have failed the gate for a reveal sitting exactly where it belongs. - painted-contrast: name the no-glyph-pixel skips (#394). unresolvedSelectors already exists so a skip cannot hide which node it dropped; this is the other way an unmeasurable node leaves the run, and it was a bare count. - ComponentWall: fix the zoom comment (#396). It claimed every card shows true desktop proportions at every size. zoom pins the 1280px layout width, not the breakpoint — frontend.e2e's own comment says as much — and that claim is exactly what would mislead the next person curating frame heights. - CONTRIBUTING: document the changed-vs-all snapshot trap (#375). A bare --update-snapshots skips baselines whose diff lands under tolerance, which is the same stale-baseline half-mint the section warns about, minus the missing file that would have revealed it. visual-baselines.yml explains this at length; the local instructions did not. Skipped, with reasons: tokenising the wall fade heights and the mask-image black stops (#399/#396/#370) — the token rule scans component utilities, not globals.css, which defines tokens and carries raw lengths throughout, and a mask's black is an alpha keyword rather than a colour; fading only confirmed-overflow cards (#396) — the valve exists for content that has not changed yet; moving privacy copy into site.ts (#372) — real per AGENTS.md, but about/blog/brand-guide hold local copy too, so this belongs in one deliberate pass; subset-aware blog visual validation (#375) — outputRoot defaults to the repo, so a --slug render is incremental against committed assets and the full-catalog gate is the correct final check. Verified: lint, tsc, the three affected int specs, and both e2e specs green (frontend 44 passed, templates-a11y 43 passed) in production mode. Co-authored-by: Claude Opus 5 <[email protected]>
What
Replaces the hero's single-component install replay with the catalog itself — three rows of the real demo twins drifting past at different speeds — and puts motion.dev in charge of the landing page's scroll choreography.
A hero has one job, and for a registry that job is range. One block installing proves the CLI works; sixty blocks alive proves there's a product. The replay isn't lost: it moves to the workflow section, where "run the command" is literally step one and the transcript answers it.
The wall
Every twin is rendered from
demosBySlug— the same registry/componentsand the docs render from. Nothing here is a screenshot or a mockup.The card set is curated from measurement, not by eye. I rendered all 67 twins at the wall's exact layout width and kept the 18 that come out complete at ~150–212px. That constraint is load-bearing: cropped to their top thirds, every twin shows the same eyebrow → headline → paragraph anatomy, and a wall built to prove range reads as repetition instead. Blocks are excluded on geometry, not quality — logo clouds are too short to fill a card;
faq-accordion/pricing-cards/feature-bento/team-gridare tall enough to need cropping.Motion
Reveal/RevealStagger/RevealItem(src/components/site/motion/Reveal.tsx) replace the CSSanimation-timelinereveal-on-scroll, which is removed. They follow the same contract as the existing template surfaces:useReducedMotion()is a hydration bug (it is alwaysfalseduring SSR), so reduced motion zeroes the transition instead.landing-motion.csspins the finished frame before hydration.<Section>.Two deliberate departures worth reviewing:
The drift is a motion value, not a keyframe — because it has to pause. Off-screen the band does no work at all (this is what makes an infinite animation acceptable on a landing page), and hovering a row holds it still so a visitor can actually read a block.
Entrances that gate first paint stay CSS. A motion
initialships as inlineopacity:0in the SSR HTML, so putting the LCP headline — or the wall itself — behind hydration would cost real Core Web Vitals and render a blank hero with JS off. Motion owns everything below the fold plus the drift; CSS owns first paint.Verification
tsc --noEmit,pnpm lintpnpm test:intfrontend.e2e.spec.ts/pnpm buildMeasured in real Chromium (the in-app preview's IntersectionObserver is unreliable, so this was probed with Playwright rather than eyeballed):
Test changes
keeps the desktop hero composition compactrewritten for the new hero: it now guards that the wall never pushes the install command off a 900px fold, and never scrolls the page sideways.aria-hidden, and the catalog size stated beside it is derived fromcomponentEntriesso it cannot drift.terminal replay renders its final transcript…additionally asserts the replay now lives in the workflow section (its Replay control staysmotion-reduce:hidden, so that is asserted hidden, not visible).Linux visual baselines need re-minting via the
visual-baselines.ymlworkflow dispatch. Only the darwin baselines are updated in this PR — CI will compare against Linux images that still show the old hero and will fail until that runs.🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Accessibility