Skip to content

feat(marketing): /pricing — bars that grow, figures that roll, and every system's records adding to one total (#1262) - #1280

Merged
athvin merged 4 commits into
mainfrom
issue/1262-marketing-pricing-motion
Nov 26, 2026
Merged

athvin merged 4 commits into
mainfrom
issue/1262-marketing-pricing-motion

Conversation

@athvin

@athvin athvin commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Closes #1262

🚧 Claimed by an agent session — 2026-11-26T21:43:57Z, session Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfc on brians-MacBook-Pro.
The claim is this open draft PR: closing it releases the ticket.

Post-merge is part of this pull request. The ledger below records whether
the follow-up work actually happened. /land-pr closes it.

What

/pricing: bars that grow, figures that roll, and every system's records adding to one total (#1253).

  • Bars stop jumping. Each term and savings bar is the track's full width, scaled to its share. It grows in with bar-grow, then eases to a new share by transform, never by animating width.
  • Figures roll. The headline price, each term's facts and per-year figure, and the savings figures (including the duplicates-resolved record total) roll through the stageshow kit's Roll, which moves only the characters that changed. The roll waits until the value settles, so a slider drag rolls once.
    • Screen readers get one plain copy of each figure; the calculators' polite live summaries announce changes.
    • In jsdom, and on the server's first render, the figure is plain text.
  • Roll ships alone in vendor/roll.js (7.9 KB), so /pricing does not load the home page's 76 KB stage runtime.
  • Records adding to one total. Above the calculator, Salesforce (420,000), API (210,000) and CSV (120,000) bars slide end to end into one 750,000-record total, which lands on Professional on a tier ruler. The tiers and the landing tier come from PRICING_CONFIG, and the total is the calculator's own starting count.

Why

The records-only rule was stated, not shown. The figure shows it: records add to one total, and only the total sets the price. The calculator's numbers now change the way the rest of the site's figures do, without layout jumps.

Proof

  • tsc, eslint (including the generated roll.js), prettier, make skills-check: green. next build prints ○ /pricing.
  • vitest (pricing-rule, pricing, savings, the figure's unit test, pricing-page, marketing-pages): 108 passed. The records-only rule test scans the new copy.
  • Playwright /pricing block, all three projects: 15 passed. It checks:
    • bars at full layout width, scaled;
    • the headline settling on the new value through Roll;
    • the figure settling on its own, and Replay restarting it from the stacked state;
    • the reduced-motion picture;
    • the poster baseline.
  • Mutations, each caught by its own test:
    • width bars fail the scaling test, with a layout width of 0.67 against the full track;
    • with no Roll, the headline has no .ss-roll.

Risk & rollback

  • Risk: RollingFigure is a small client wrapper inside the two existing calculator islands, and the figure's Replay is the hero's ScenePlayback. No new dependency: Roll is the repo's own MIT kit, rebuilt by its script.
  • Rollback: git revert <merge-sha>.

Post-merge ledger

Closed by: agent · session Claude Code:30a1182e-8c7e-47e3-92ac-cda64c13fcfc on brians-MacBook-Pro · 2026-11-26T22:32:03Z

  • main is green with this change on it — the merge SHA, and the run
    that proves it. A later head SHA with this commit as an ancestor counts;
    a cancelled run with zero jobs does not: 237550e0 — frontend 45904500574, rust 45904500417, infra 45904500652, devcontainer 45904500510, marketing preview 45904500509: all success on the merge SHA itself.
  • images built, or correctly never ran because nothing that goes into
    an image changed: built — 45904500542 success; er-web pushed 2026-11-26T22:25:04Z tagged 237550e0a8f4….
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: 45904704590 success. Pod web-api-blue-7b78dd5f74-kfqxg (started 22:26:27Z) runs er-web@sha256:160d8223…, whose only ECR tag is 237550e0…, and the er-web Service selects color: blue. Its er-web container logged ▲ Next.js 16.4.6 / ✓ Ready in 0ms; inside it GET /pricing → 200 serving records-pool and its stage, the scaled pricing-bars and the 750,000 total.
  • the push-only surface no pull request can pre-test (deploy, drift,
    kind's nightly leg) is green, or knowingly red for a reason that is not
    this change: deploy green (above). drift (latest 45765434785) and kind's nightly leg (latest 45770773490; red since 2026-11-10, kind probe red since 2026-11-10: KeyError 'token_hash' after the credential-omission fix #1106) are red on every scheduled run since before this change. This diff touches only frontend/ and .claude/, which neither exercises.
  • the board card reached Done through the automation rather than by
    hand, and the issue closed: /pricing: animated bars and totals, and records from every system adding to one total #1262 CLOSED/COMPLETED at 22:23:38Z with closer = PullRequest feat(marketing): /pricing — bars that grow, figures that roll, and every system's records adding to one total (#1262) #1280; its board Status reads Done, never set by hand.
  • follow-ups are open for everything deferred here — numbers: n/a — nothing deferred from this change. It also fixed the /product problem-figure test's stale-frame race; the other WebKit flakes are Frontend gate: WebKit-only marketing flakes (the story/docs axe test, the /docs walkthrough poster) #1281.
  • what was learned is written down where the next session will find it
    (a skill, a reference, memory) — or nothing new was learned: the landing-page skill (this diff): a figure in the first screen plays itself, and --story-container-surface is translucent; the build script now documents why it maps React's types; also the epic's memory file.

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  • bars: full width, scaleX share, bar-grow in, transform transition
  • Roll in its own vendor bundle; RollingFigure with settle-then-roll, one copy for screen readers, plain-text fallback
  • records-pool.tsx/.css: three systems into one total on one tier, tiers from the config; self-playing with Replay
  • tests (unit, component, functional, mutations); poster baselines; skill notes

Discoveries

  • The figure sits in the first screen: 496px down a 900px desktop, 420px down a 659px iPhone. A scroll-driven version would already be finished at load, so it plays itself on first view, as the hero does. This is now a scene rule in the landing-page skill.
  • The vendor build's declarations degraded to any outside its original checkout. The scratch tsconfig resolved react from the kit's own directory, which has no node_modules. It now maps React's types to the frontend's, and every existing declaration regenerates byte-identical.
  • --story-container-surface is translucent. The first bars mixed from it ghosted through each other mid-slide. They now mix from an opaque surface, also recorded in the skill.
  • The pricing-tier name stays plain text. Playwright asserts it with an exact toHaveText, and a screen-reader copy beside it would double its text.

Measurements

  • Bundle: vendor/roll.js 7,863 B + roll.css 1,858 B. index.js (76,389 B) and index.css (37,657 B) are unchanged.
  • The figure runs about 2.3 s, once, which is under the 5 s that would need a pause control.

Files

  • frontend/src/components/marketing/pricing/{records-pool.tsx,records-pool.css,rolling-figure.tsx,pricing-calculator.tsx,savings-calculator.tsx,pricing.css}
  • frontend/src/app/(marketing)/pricing/page.tsx
  • frontend/scripts/build-stageshow.mjs
  • frontend/src/components/marketing/demo/vendor/{roll.js,roll.css,roll.d.ts,README.md,types/motion/}
  • frontend/tests/unit/marketing-records-pool.test.ts
  • frontend/tests/functional/marketing-scenes.spec.ts, plus three snapshots
  • .claude/skills/landing-page/SKILL.md

@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

The marketing preview was removed because this PR is closed or merged.

bmoore813 and others added 4 commits November 26, 2026 14:14
…system's records adding to one total

- The term and savings bars are the track's full width scaled to their
  share: they grow in with bar-grow and ease to a new share by transform,
  never by animating width.
- The calculators' figures roll to new values through the stageshow kit's
  Roll, held until the value settles so a slider drag rolls once. Screen
  readers get one plain copy; the polite live summaries announce changes.
- Roll ships in its own vendor bundle (roll.js, 7.9 KB), so /pricing does
  not load the home page's stage runtime. The build now resolves React's
  types from the frontend, so every existing declaration regenerates
  byte-identical instead of degrading to any.
- Above the calculator, three systems' records slide end to end into one
  total that lands on its tier, read from the pricing config. It sits in
  the first screen, so it plays itself once when seen, with Replay.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…, not a stale one

Below the fold, the /product problem figure's records start in their
before-state, displaced and transparent. The test waited only for record 0
to be displaced, which that stale frame already is, so when WebKit had not
yet advanced the timeline after the scroll, it read opacity 0 and failed.
Reproduced in CI's own webkit shard in the pinned image: once in two runs.

It now waits for a frame only the deal can produce (the middle record
arrived, record 0 still displaced) and keeps the exact opacity assertion:
12 of 12 on all three projects, and a deal that fades as it slides still
fails it on every project (0.44).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Generated in the pinned Playwright container; only the three PNGs this
change explains.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@athvin
athvin force-pushed the issue/1262-marketing-pricing-motion branch from bef8169 to cf7357c Compare November 26, 2026 22:15
@athvin
athvin merged commit 237550e into main Nov 26, 2026
42 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 26, 2026 22:23 — with GitHub Actions Inactive
athvin added a commit that referenced this pull request Nov 27, 2026
… epic and #1279's duplicates Parquet export (#1300)

#1286 (248e296) was one commit, d245d4a. Its parent was a fresh main
(8b5b25a), but 75 files in its tree were the versions from dc45fd1:
a tree from an old worktree was committed on top of a new base. The
squash was CLEAN and the old code is self-consistent, so every gate
passed while it undid:

- the cinematic epic #1253: #1272, #1275, #1278, #1280, #1282, #1283
  and #1285, with their tests and visual baselines;
- #1279's Parquet export for duplicate groups (exports.rs, read.rs,
  export_write.rs and the ExportIn doc comment).

This is the merge #1286 should have produced, computed rather than
hand-picked:

1. Give d245d4a's tree its real parent, dc45fd1.
2. Three-way merge it into 2b8f0b8, the main it landed on, with base
   dc45fd1. No conflicts.
3. Carry the difference from 248e296 onto today's main with another
   three-way merge. No conflicts.

#1286's own work is kept: the usage endpoint, the record allowance, and
the docs on usage and the 402.

Closes #1299

Co-authored-by: bmoore813 <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

This branch was previously deployed

1 inactive deployment
marketing-preview — cf7357ce Deployed Nov 26, 2026 by athvin via remove closed PR previews #79
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.

/pricing: animated bars and totals, and records from every system adding to one total

2 participants