Files
zeekayandGitHub ea43c5a975 Type lib, scripts, v2, home and app under strict (#8)
* Type scripts under strict

Playwright's API the checks use is declared in host.ts (the package is
the app repo's); caught errors read through why(). tabs-tree.test waits
for the typed tabsTree.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Type the shared components under strict

Window globals (__lenis, __hzHold, google) and the two react-dom calls
are declared in components/*.d.ts, since @types/react-dom is not a
dependency and the lockfile is frozen.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Type components/v2 under strict

Props, state, refs and DOM events in the 93 v2 files. A2Motion's easing
tuples are as const. Two real bugs: x-archimedes/MaskLines imported a
NoJs that does not exist, and x-hypatia/PinChapters returned the element
from a ref callback, which React 19 reads as a cleanup. AppSheet no
longer sets aria-label to a JSX label.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Type components/home under strict

The race, cost and frontier figures, the plan cards, the repository card
and the product stories take Run, Models and Plan types from lib.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Type the hero devices and the app routes under strict

HeroScene and its parts describe hero-scenes.json; the [slug] pages take
params as a Promise, and metadata and viewport carry Next's types.

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Give the integrations previews their Preview type

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk

* Use the bench Card type for the closing cards

Claude-Session: https://claude.ai/code/session_015XYKLix9PSyn6Jw2HWKprk
2026-11-14 01:34:34 -08:00

10 lines
878 B
TypeScript

/* A2Motion — Hanzo's deck motion tokens for the Apps 2 pages (Apps 2 chat; MASTER.md 3.1 "Motion").
Usage: import { T, EMPH, INOUT, OUT } from '../v2/A2Motion'; transition={{ duration: T.base, ease: EMPH }}
press 90 ms, fast 150, base 300, slow 400, slower 500; only scene moves run longer: the h1 line mask 700 ms
(MASTER part 3), a hairline or line art 900 ms. No springs, no overshoot. */
export const T = { press: 0.09, fast: 0.15, base: 0.3, slow: 0.4, slower: 0.5, line: 0.7, scene: 0.9, stagger: 0.06 };
export const EMPH = [0.16, 1, 0.3, 1] as const; // ease-emphasis: arrivals
export const INOUT = [0.4, 0, 0.2, 1] as const; // ease-in-out: things that move and stay
export const OUT = [0, 0, 0.2, 1] as const; // ease-out: hover and colour
export const MOVE = { duration: T.base, ease: EMPH }; // the one transition for a toggle or a thing the hand moves