Skip to content

feat(demo): add the CEO-stature demo and antiquity bench precision#49

Merged
the-simian merged 12 commits into
mainfrom
feat/antiquity-tweak
Jun 4, 2026
Merged

feat(demo): add the CEO-stature demo and antiquity bench precision#49
the-simian merged 12 commits into
mainfrom
feat/antiquity-tweak

Conversation

@the-simian

Copy link
Copy Markdown
Member

What changed

Antiquity forge bench

  • Add inch and centimeter to the antiquity bench's from/to options (ordered by metric size).
  • The bench slider now resolves to the 100ths place for the modern units (inch, centimeter, foot, meter); ancient units keep their integer steps. Mechanically, the shared Bench swaps round1 for a new roundToStep(value, step) in lib/math.ts, so it rounds to each unit's own granularity. Other kits keep integer steps, so their behavior is unchanged.
  • kits/antiquity now re-exports centimeter alongside foot/inch/meter/statuteMile.

New section: "how tall is your CEO?"

A flagship section appended last in the antiquity kit:

  • Stair-step ruler (full width): the X axis is the height axis. Faint stand-ins sit at the 5/6/7 ft marks; the two selected people drop in at the X position matching their height and are stretched vertically to it (height-only), so a taller person reads as further right and taller. Subject is --uf-accent, reference is --uf-accent-2.
  • Two pickers (subject / reference), one component used twice: a grouped roster select (Executives / Leaders) plus a custom-height mode whose inches slider projects to ft′in″ (primary) with cm beside it (muted), live, via forge.
  • Center reading: subject as a percentage of the reference, plus the signed inch delta.
  • Ancient readout: any of the 17 bench length units; forges both heights and their delta into the chosen unit.
  • 34-figure roster (tech execs and historical leaders) with a "popularly reported, approximate" disclaimer; heights are encoded as reported figures, not verified measurements.

Two custom human glyphs

figure-glyph (plain, for stand-ins) and exec-glyph (tie, for the two selected), both with fill lifted to a color prop (default currentColor) and preserveAspectRatio="none" for the height-only stretch.

Docs

  • README antiquity bullet lists the height comparator.
  • llms.txt antiquity re-export list now names centimeter, inch, and foot.

Notes

  • Heights are popularly-reported figures gathered for amusement, surfaced with a disclaimer; they are not independently verified, and historical heights especially are mythologized.
  • demo/README.md is left untouched; it is broadly stale (still describes a two-kit ForgeBench/DemoSection/lib/kits.ts layout) and warrants its own cleanup rather than a one-line patch.

Testing

bun run check green (lib + demo build, biome, eslint, lib + demo typecheck, tests, knip, package). New demo-invariants cases cover the figures catalog (unique ids, in-domain heights, resolvable defaults). Section, stair-step, custom slider, color-coding, ancient readout, and the bench 100ths step verified by screenshot in a headless browser.

the-simian added 11 commits June 4, 2026 12:16
centimeter joins foot/inch/meter/statute-mile as a benchmarking anchor
re-exported from kits/antiquity.
Add roundToStep and switch the shared bench off round1 so a 0.01-step
unit keeps hundredths instead of being flattened to tenths.
Both gain 0.01 slider steps; foot and meter steps drop to 0.01 to match.
Two colour-driven human SVGs: a plain figure for the reference stand-ins
and a tie figure for selected people. fill defaults to currentColor and
preserveAspectRatio is none for height-only stretch.
34 popularly-reported figures across exec and leader kinds, plus a
demo-invariants guard for unique ids, in-domain heights, and resolvable
default subject/reference.
One side, used twice: a grouped roster select plus a custom-height
inches slider whose readout projects to ft′in″ (primary) and cm (muted)
via forge. stature-model holds the SideState contract and projections.
X axis is the height axis: stand-ins at the 5/6/7 ft marks, the two
selected people dropped in at their height's X position and stretched
vertically to it, colour-coded by side.
Center reading is subject-as-percent-of-reference plus signed inch
delta; the ancient readout forges both heights and the delta into a
chosen unit from the bench catalog.
useStatureGauge holds the two sides plus the ancient unit; CeoStature
composes the ruler, the two pickers flanking the comparison reading, and
the ancient readout, appended last in the kit.
Widen the glyphs so the height-stretched figures read as people, trim
the inch delta and cm readout of trailing zeros, and truncate the picker
trigger to the name so it stops wrapping.
- README: antiquity demo bullet lists the height comparator
- llms.txt: antiquity re-export list now names centimeter, inch, and foot
@codecov

codecov Bot commented Jun 4, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (b045897) to head (5cd453e).

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff            @@
##              main       #49   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           34        34           
  Lines         2555      2555           
=========================================
  Hits          2555      2555           
Files with missing lines Coverage Δ
src/kits/antiquity/index.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

- scale figures proportionally (natural at 6 ft) by cropping each glyph's
  whitespace and exporting its aspect; widen and center them
- symmetric ruler X domain so the 5/6/7 ft marks have equal margins
- per-figure name + height tags above each person
- dotted level lines across the canvas at each height, plus a left delta
  arrow labelled in ft'in
- custom mode gains a name field; a 'custom CEO' / 'custom person' button
  shortcuts to it; selects fill their column
- top-align the inputs; fixed-width center; drop 'is', color each name to
  its side, reference on its own line
- ancient readout values go large and side-colored; difference stays small
- code sample shows three forge lines (both heights to cm, then ancient)
@the-simian the-simian merged commit 81b3288 into main Jun 4, 2026
8 checks passed
@the-simian the-simian deleted the feat/antiquity-tweak branch June 4, 2026 19:38
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.

1 participant