Repository navigation
feat(marketing): scroll-scrubbed scene primitive, record marks and cross-page view transitions (#1254) - #1265
Merged
Merged
Conversation
…ks and page cuts ScrollScene pins a stage under the header and scrubs it with the reader's own scroll position through CSS view timelines: no script, nothing intercepted, a static poster under reduced motion or without support. Meridian Supply's records, golden record and evidence live once, and every score comes from one Fellegi-Sunter helper. Marketing pages cut into each other through React 19.3's ViewTransition. CHAPTERS moves to a React-free module and a spec now holds it to the page. Co-Authored-By: Claude Opus 5.5 <[email protected]>
… a navigation The URL can change before the new page commits, and the menu closes on that commit: reopening it earlier toggled the still-open menu shut. Reproduced by delaying the route's payload; seen once under the full tier's load. Co-Authored-By: Claude Opus 5.5 <[email protected]>
athvin
force-pushed
the
issue/1254-marketing-scenes-foundation
branch
from
November 26, 2026 19:24
94bc583 to
def04cf
Compare
athvin
marked this pull request as ready for review
November 26, 2026 19:25
Contributor
|
The marketing preview was removed because this PR is closed or merged. |
athvin
temporarily deployed
to
marketing-preview
November 26, 2026 19:32 — with
GitHub Actions
Inactive
This branch was previously 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.
Closes #1254
What
The foundation for the cinematic marketing epic (#1253), with no visible page change yet beyond the cut between pages:
ScrollScene(components/marketing/scene/): a sticky stage scrubbed by the reader's own scroll position through CSS view timelines. It ships no script, intercepts no input and does not snap. Its unconditioned styles are a static poster layout; pinning and scrubbing only switch on underprefers-reduced-motion: no-preferencewith view-timeline support.meridian.tsholds the records, golden record and evidence, andscore.tsholds the one Fellegi–Sunter helper every printed score comes from.RecordCard,EvidenceBarandGoldenCardare the marks every scene draws with.<ViewTransition>(cut.tsx), and reduced motion makes the cut instant.CHAPTERSmoves to a React-freechapters.ts, and a spec now holds it to the page. The skill claimed this was enforced; nothing enforced it.Why
Every page except home is static prose. The scenes that follow (#1255 onward) need one primitive, one dataset and one grammar, so a number or a shape on one page cannot contradict another.
Proof
Run locally on this branch (before the rebase onto
de8687b9, which touched only the API schema and the docs spec):corepack pnpm check— eslint, Prettier, tsc, the BFF/authz scripts, and vitest with the coverage floor: 1,100 tests passed.corepack pnpm build— every marketing route still prints○(static) or●(SSG).desktop-chromium,mobile-chromeandmobile-safari,--retries=0: 972 passed, 137 skipped, 1 failed.marketing-pages.spec.ts› "every header link navigates": the URL can change before the new page commits, so reopening the menu toggled it shut.marketing-pages+marketing-scenespassed 360/360 with--repeat-each=2.make skills-checkandmake agent-bridge-checkare green.make checkwas not run: no Rust, entity or SQL changes, sorust.yml'sdetecthas nothing to build.Risk & rollback
git revert <merge-sha>.Post-merge ledger
Closed by: agent · session
Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfconbrians-MacBook-Pro· 2026-11-26T19:41:28Zmainis green with this change on it — the merge SHA, and the runthat proves it. A later head SHA with this commit as an ancestor counts;
a cancelled run with zero jobs does not: merge
9fe0be5a; on that SHArust45884372303,frontend45884372271,images45884372343,marketing preview45884372266,infra45884372178 anddevcontainer45884372322 allsuccess.imagesbuilt, or correctly never ran because nothing that goes intoan image changed:
images45884372343successon9fe0be5a(the web image carries the marketing change).deployconverged — proved by a line the running process emitted, notby the image digest and not by the workflow conclusion:
deploy45884605543 resolveder-web: 9fe0be5a… -> sha256:8f963b64…, deployed it to the inactive colour and cut over. The liveweb-api-green-74fd4c8d7c-v7bn9(started 19:35:04Z) runser-web@sha256:8f963b64…,ready=true, and its process logged▲ Next.js 16.4.6/✓ Ready. From inside that pod,/product's stylesheet/_next/static/chunks/28jt_3kstsofs.csscontainsmarketing-cut, the cut this PR adds. (Checked after the owner refreshed SSO, which had expired at the first attempt.)deploy,drift,kind's nightly leg) is green, or knowingly red for a reason that is notthis change:
deploygreen (above).driftandkind's nightly leg have not run on9fe0be5ayet and were already red on every scheduled run before it (drift45765434785/45557667867/45337430745;kind45770773490…, red since 2026-11-10, kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix #1106). This diff touches onlyfrontend/and.claude/, which neither exercises.Donethrough the automation rather than byhand, and the issue closed: Marketing scenes: a scroll-scrubbed scene primitive, shared record marks and cross-page view transitions #1254
CLOSED/COMPLETED, closerPullRequest #1265; cardStatus: Done.(a skill, a reference, memory) — or nothing new was learned: the
landing-pageskill's new Scenes section (the reduced-motion clamp vs scroll timelines, theanimationshorthand reset, WebKit needing a viewport meta to scrub, opacity only on foreground text), plus the drift fixes in the same file.Specific to this change
ScrollSceneconsumers, and their functional specs exercise pinning and scrubbing on all three projects.Context — plan, discoveries, measurements, files
Plan
ScrollScene+scene.css: progressive enhancement; the poster is the base layoutmeridian.ts,score.ts,marks.tsxMarketingCut(page-kitPage+ the four pages without it, wrapped without re-indenting)chapters.ts+marketing-scenes.spec.tsREHEARSAL.mdsnapping lines correctedCSS.supportsand scrubbing per Playwright project; whatanimations: "disabled"does to a scrub; whether the reduced-motion clamp stops itDiscoveries
The global reduced-motion clamp does not stop a scrubbed animation. A probe with
animation-duration: 0.01ms !importantunder emulated reduced motion still sat at 250 of 1,000px at a quarter of the range, in Chromium. That is whyscene.cssenables scrubbing only insideno-preference.Playwright's
animations: "disabled"leaves a scroll-driven animation tracking. After a screenshot itsplayStatewas stillrunning, and it read 250 at a quarter of the range. Scene baselines use the reduced-motion poster anyway, as every existing marketing baseline does.WebKit only scrubs when the page has a viewport meta tag. Without
<meta name="viewport">it reportedCSS.supportstrue and never moved. With the tag it matched Chromium across six forms, including the exactview-timeline-inset+animation-range: containformscene.cssuses. Next emits the tag on every page.Re-indenting
docs/page.tsxto wrap it would have produced a ~680-line diff in a file other sessions edit. The four pages withoutPagegain a two-line default export instead.React cancels the root view transition (
documentElement.style.viewTransitionName = "none"). Only<ViewTransition>boundaries animate, so the header and footer stay live through a cut. Each page renders its own boundary, because a layout persists and never enters or exits.A pre-existing race in the header-links test. Seen once under the full tier's load. It is not caused by the cut: warm navigations close the menu in the same frame as the URL change, whether or not motion is on. A cold first navigation can commit about 600ms after the URL changes, though, and the test reopened the menu in that window. I first read this as React holding passive effects until a view transition finishes, and measured it before changing any product code. That theory was wrong, so the nav component is untouched and only the test waits for the close.
Measurements
node scratchpad/probe/sda-probe.mjsandsda-webkit.mjs(local, not committed). Chromium translates 0/500/1000 at contain 0/50/100%. WebKit (iPhone 15) with the viewport meta translates 0/500/1000 fornamed+range.auditfromCHAPTERS→Expected value: "audit".Expected: 0, Received: 2(Chromium) and4(WebKit).marketing-scenes.spec.tsran--repeat-each=4on all three projects with 36/36 passing. One earliermobile-safarirun hitTarget page, context or browser has been closedonce; it did not reproduce in 48 runs. The assertion now matches cut animations by name instead of readingeffect.pseudoElement.Files
frontend/src/components/marketing/scene/{scroll-scene.tsx,scene.css,marks.tsx,meridian.ts,score.ts}frontend/src/components/marketing/{cut.tsx,cut.css,chapters.ts,story-chapters.tsx,pages/page-kit.tsx}frontend/src/app/(marketing)/{page,pricing/page,docs/page,docs/api/page}.tsx: a two-line cut wrapper eachfrontend/tests/{unit/marketing-scene-score.test.ts,component/marketing-scene.test.tsx,functional/marketing-scenes.spec.ts}.claude/skills/landing-page/SKILL.md,frontend/src/components/marketing/demo/REHEARSAL.md