Skip to content

feat(marketing): /docs — a pinned API storyboard for the six-step workflow (#1261) - #1278

Merged
athvin merged 5 commits into
mainfrom
issue/1261-marketing-docs-storyboard
Nov 26, 2026
Merged

athvin merged 5 commits into
mainfrom
issue/1261-marketing-docs-storyboard

Conversation

@athvin

@athvin athvin commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

Closes #1261

🚧 Claimed by an agent session — 2026-11-26T21:12:37Z, 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

/docs: the workflow, call by call (#1253).

  • A pinned walkthrough after #overview. The overview's six steps become nine HTTP exchanges in a terminal. Each request types itself in, then the line it sends and its abbreviated response follow.
  • The value each response hands to the next call is outlined in the flow's blue, where it is returned and again where it is used: the key into the next call's header, then the dataset's name, the draft's version, the upload's job and Meridian Supply's entity into the next call's path. The last call is an always assertion between Meridian's Salesforce and API records, the reviewer's decision made lasting.
  • No live calls (/docs/api: BFF-served public spec + grayscale API docs viewer #867). The real, copyable requests stay in the guide.
  • The storyboard's data is React-free (docs/storyboard.ts). A unit test holds every method, path, request field and response field it shows to openapi.public.json, and checks that each carried value is exactly what the next call uses.
  • docs overview visual baseline breaks whenever /docs changes length #1204 was already fixed by feat(api): tenant-admin dataset configuration — validate, dataset-scoped publish (#1010) #1266, which hides the header in that screenshot. The overview baseline stayed byte-identical while this PR made /docs a section longer.

Why

The guide explained the workflow in a list and in separate examples. The walkthrough shows how the calls connect, which is what an integrator needs before reading the reference: what each call returns, and where the next one uses it.

Proof

  • tsc, eslint, prettier, make skills-check: green. next build prints ○ /docs.
  • Drift test (marketing-api-storyboard.test.ts): 6 passed. Mutations, each caught by the test that owns that class:
    • a renamed path fails "calls only operations the contract has";
    • an undeclared field fails "shows only fields the contract declares";
    • a broken carry fails exactly one test, "hands each call exactly the value…".
  • Playwright, marketing tier plus marketing-docs on all three projects: 386 passed, 4 skipped.
  • Walkthrough spec, two mutations, each caught by its test:
    • with call 4 typed early, "one call after another" fails, because it reads 26% typed at beat 3's centre;
    • with the job's use unmarked, "outlines each value" counts 9 outlines instead of 10.
  • Axe, docs on all three projects: 6 passed. vitest marketing-pages + seo: green.
  • Baselines. Poster baselines marketing-api-storyboard × 3, generated in the pinned container.

Risk & rollback

  • Risk: a CSS-only scene and a React-free data module. No client island or dependency is added.
  • 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:25:35Z

  • 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: 6142205a — frontend 45903525362, rust 45903525494, infra 45903525384, devcontainer 45903525357, marketing preview 45903525843: all success on the merge SHA itself.
  • images built, or correctly never ran because nothing that goes into
    an image changed: built — 45903525376 success; er-web pushed 2026-11-26T22:16:24Z tagged 6142205aa5e6….
  • deploy converged — proved by a line the running process emitted, not
    by the image digest and not by the workflow conclusion: 45903763153 success. Pod web-api-green-695ccf8f59-d2tlj (started 22:17:59Z) runs er-web@sha256:48500e03…, whose only ECR tag is 6142205a…, and the er-web Service selects color: green. Its er-web container logged ▲ Next.js 16.4.6 / ✓ Ready in 0ms; inside it GET /docs → 200 serving scene-api-storyboard, the #walkthrough section, the carry outlines and Meridian's entity id.
  • 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: /docs: a pinned API storyboard for the six-step workflow #1261 CLOSED/COMPLETED at 22:14:47Z with closer = PullRequest feat(marketing): /docs — a pinned API storyboard for the six-step workflow (#1261) #1278; its board Status reads Done, never set by hand.
  • follow-ups are open for everything deferred here — numbers: deferred — Frontend gate: WebKit-only marketing flakes (the story/docs axe test, the /docs walkthrough poster) #1281 (the WebKit flakes this PR's CI met: the walkthrough poster's frame-clock stall and two older menu-navigation tests).
  • 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): the walkthrough, where its data lives and the drift test that holds it, and why docs.css resets lists, margins and colour under .docs-article .scene; also the epic's memory file.

Specific to this change

Context — plan, discoveries, measurements, files

Plan

  • docs/storyboard.ts: nine exchanges over the six steps, illustrative values, carries declared as field paths
  • docs/api-storyboard.tsx/.css: the terminal; typing covers, arriving lines, a scrolling transcript sized to the stage
  • /docs: #walkthrough after #overview, with a contents entry
  • drift test, functional spec, axe, mutations; poster baselines; skill note

Discoveries

  • Every call the storyboard needed is public and typed:

    • the key (KeyIssued);
    • the dataset (DatasetCreated, state: "active" in the handler);
    • the draft (ConfigDraftCreated), the publish and the upload (DeliveryAccepted.job);
    • the job (Job.state) and the duplicates (AccountDuplicateGroup);
    • the golden record and the assertion (Staged).

    Ids are UUIDv7 text, and keys are erk_{id}_{secret}, so the storyboard shows shortened v7 ids and an elided key.

  • The client's first sight of an entity id is GET …/duplicates. GET …/golden-records is an Arrow stream, not JSON, so the walkthrough finds Meridian through its duplicate group.

  • The docs article's element styles reached into the scene. ol numbering and li margins would have pushed beats off their timeline centres, and the muted li colour reached every beat heading. docs.css now resets all three under .docs-article .scene.

  • The first typing cover broke the house rule that normal styles are the payoff. Its own state hid the request, so a WebKit frame captured before the timeline attached showed answers to invisible questions. The cover's own state is now the typed line.

Measurements

Frame delivery at DPR 2 (scroll-fps.mjs: a 2 s scripted scroll, with /pricing as the control):

WebKit fps / worst frame Chromium fps / worst frame
/pricing (control, 1,800 px) 60 / 19 ms 57 / 117 ms (one long frame)
/docs walkthrough (3,240 px) 60 / 19 ms 60 / 17 ms

Files

  • frontend/src/components/marketing/docs/{storyboard.ts,api-storyboard.tsx,api-storyboard.css,docs.css}
  • frontend/src/app/(marketing)/docs/page.tsx
  • frontend/tests/unit/marketing-api-storyboard.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 5 commits November 26, 2026 14:10
A pinned walkthrough after #overview: the overview's six steps as nine
HTTP exchanges in a terminal. Each request types itself in, its response
follows, and the value it hands the next call (the key, the dataset's
name, the draft's version, the upload's job, Meridian Supply's entity) is
outlined where it is returned and where it is used. No live calls; the
real copyable requests stay in the guide.

The storyboard's data is React-free, and a unit test holds every method,
path and field it shows to openapi.public.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…t every frame

Four-line slots with the response wrapping into what is left, a clip inside
the screen's padding, and as many slots as the stage's height allows (seven
on desktop, three on the shortest phone). The typing cover's own state is
the typed payoff, as the house rule says normal styles are, so a frame the
timeline has not reached still reads as a whole transcript.

Spec: scrub states at three beats, the ten outlined values paired between
response and use, the reduced-motion transcript, a poster baseline.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
.docs-article li makes every list item muted, and a scene's beat heading
inherits its colour from the beat's li, so every walkthrough title read as
muted text. The docs scene reset now sets the foreground there too. The
landing-page skill notes the walkthrough, its data and its drift test.

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/1261-marketing-docs-storyboard branch from 1c702af to ccaad76 Compare November 26, 2026 22:10
@athvin
athvin merged commit 6142205 into main Nov 26, 2026
39 checks passed
@athvin
athvin temporarily deployed to marketing-preview November 26, 2026 22:14 — 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 — ccaad761 Deployed Nov 26, 2026 by athvin via remove closed PR previews #78
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.

/docs: a pinned API storyboard for the six-step workflow

2 participants