Repository navigation
Conversation
The hero animates a checked program (docs/snippets/home/hero.ts): declare a model, hire, move from a business date, correct, then read March 2 as known then and June 1 as known now with why. Code is cut from the program and every value comes from its saved output; docs:outputs --check now covers it. Replaces the static decision receipt. Pauses on hover and focus, and shows the final step without motion when reduced motion is preferred. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
|
Documentation preview: https://triplex-docs-pr-88.bjacobso.workers.dev Commit: c96bf64 |
Owner
Author
|
CI note:
It passed in every local run and on #87's CI. 🤖 Generated with Claude Code |
This branch has not been 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.
Replaces the homepage hero's static decision receipt with an animated walkthrough of the client. Stacked on #87; it retargets to
mainwhen #87 merges.What it shows
The hero autoplays five steps, about 5 s each. Each step shows real code and its result:
EntityType.make("Worker", { name, site })→ releaseworkers-v1published tolive.db.command(...)withtx.create→ two facts appear, from tx 2 byuser:dana.tx.replace(..., { site: "pier" }, JUN_1)→ harbor's open-ended fact is retracted and replaced by harbor Mar 2 – Jun 1 plus pier from Jun 1. Nothing is overwritten.tx.correct(..., { name: "Maria Rivera" })→ "Maria" is struck through with the transaction that retracted it. It stays in history.asOfat tx 2 / March 2 gives "Maria · harbor", and June 1 gives "Maria Rivera · pier".whynames each value's transaction, actor and release.It can't drift from the API
docs/snippets/home/hero.ts, formatted at 64 columns to fit the window.docs/snippets/home/output/hero.json.pnpm docs:outputs --check, part ofdocs:check, now runs the hero program too. The newscripts/docs-outputs.mjsruns both homepage programs.Behaviour
prefers-reduced-motion, there is no autoplay or animation. It shows the final step. Server-rendered HTML shows the final step too.Tests
whytext. Another checks the static reduced-motion rendering. Screenshots render with reduced motion so they're deterministic, and the baselines were regenerated in the Linux Playwright image.docs:check,docs:build, format, lint and typecheck pass.Found along the way (not fixed here)
The homepage's production "lean" page chunk is invalid JavaScript on
maintoday, and the live site logsSyntaxError: Unexpected token '}'. VitePress 2.0.0-alpha.18 marks static HTML with a greedy one-line regex. Vite 8 has already minified the page onto one line, so the regex swallows the component between two static blocks. VitePress recovers by loading the full chunk, so the page still works; only the error is logged. The e2e suite runs on the dev server, so it can't catch this. It's worth its own fix: a VitePress upgrade or patch, plus a build check that runsnode --checkon every chunk indist/assets.Preview: posted by the docs preview workflow on this PR.
🤖 Generated with Claude Code