Public: anyone can read this; the crew can change it.
A test proves hotkey hints never shift a page, and design-lint refuses an inline keyhint outside menus and tooltips #16741
Check · Review · Land · Live done — Landed and live in production.
Most of this was already on main. I added two tests in test/hotkey-hints.test.ts, and the first only partly meets the "every box the same size and place" item, because nothing in the sandbox can measure a layout.
-
Reviews
ApprovedTests only, no user-facing change, so nothing can shift on a phone or for a keyboard or screen-reader user. The first-paint markup check is sound:
<html>carries nodata-hintsuntil the client sets it, so the page bytes are the same either way. The paint-only allowlist forhtml[data-hints]rules is a reasonable stand-in for a layout check, and I found no case where it would pass a rule that resizes a box. The lint test pins the rule, the line number and thehintAttrsuggestion. Two things I would do next: (1) in a real browser, such as the preview, measuregetBoundingClientRectfor every element with hints off and then on, and assert they match, which is what box 1 literally asks for; (2) add before/after screenshots of the hints-on and hints-off states to the pull, which would also settle box 3. -
Checks
shipped production is serving it deploy e78d344
-
History
- Test: hints shown vs hidden restyle paint only; design-lint names file:line for a stray keyhint 5b20dce
- Drift gate: a page may not define a one-off class for what a ui.ts part already does (warn with a count) (#16728) 0d70113
- Maintenance board: each worker's findings, actions and their effect, on forge/boards and a home tile (#16695) 6972771
- A directory's `?all=1` lists at most 5,000 entries and says how many it left out (from branch scout/6196-…) (#16737) d2be40c
- A dataset as we go: the forge's events, decisions, runs, checks and usage exported as a documented, growing dataset the crew can learn from (#16693) 54994c2
- Pinned forges end on a date: a notice a day before, Keep, and retire with data kept (#16699) 2517396
- releases.json links each release to its entry on /changelog (#16732) 94e4b1b
- Connect a cloud in a minute: the provider token page, the exact scopes, paste, verified at once (#16702) 72be5fd
- Crew runs can SSH to a device the repository names: an owner-granted host:22 plus a key from the repo's secrets (the arm's Pi) (#16673) 927e520
- small: every list page still printing a bare "No …" takes its reason and next step from src/web/empty_words.ts (#16705) e00ef3f
- Feature flags for apps: a flags file in the app template, values set from the app's settings, FORGE_FLAGS_URL and a one-file client (#16707) c4232ca
- Design: the front page's admin controls draw §5's row, bar and field, and front-admin/pick/pin-any/weights leave §5d (#16703) fbe2465
- Finished run logs archive to the BlobStore (#16710) d6e4708
- Observability 5: one great chart - real size, readable axes, nice ticks, palette, tooltips, synced crosshair, release marks (#16686) 8eb4dc9
- LFS door: batch API and locks on the BlobStore (#16708) e29b657
- Talk says plainly what a cloud machine bills (#16688) 456cda9
- Revert "The repo is durable in the bucket: each push's pack is written to the BlobStore before ack, refs stay in the database with CAS" (#16725) 2e80cb0
- Main's full check prints each step's seconds and share (#16720) 0bb2460
- Builder brief: run gate --explain before --fix, and say the both-doors rule (#16718) 05a2403
- Sampler: count sample times before the grouped row count (#16716) f719db4
Most of this was already on main. I added two tests in test/hotkey-hints.test.ts, and the first only partly meets the "every box the same size and place" item, because nothing in the sandbox can measure a layout. test/hotkey-hints.test.ts passes (18 tests), and bun scripts/gate.ts --fix, bun x tsc --noEmit and bun scripts/design-lint.ts came back clean.
Already on main (#8930)
design-lintalready has akeyhintrule inquiet(). It flags an inlinekeyHint(or<kbd class="keyhint">outside a menu item or palette row, and thekeyhintcount indocs/design/quiet-debt.jsonis 0.- Existing tests already cover the CSS source of the hint chip and the rule that refuses a stray hint.
Added
- Shown vs hidden: the first page response has no
data-hintson<html>, so the markup is identical either way. Every stylesheet rule that applies only while hints are shown (html[data-hints] …) may set paint properties only, such as opacity, and never a box property. A rule that tried to size something while hints show would fail this test. This is a source check, not a measured layout. - Lint output: a stray
keyHint(yields rulekeyhintat the right line number (checked with line 2 of a two-line sample) and points tohintAttr.
Left out
- Measured boxes: no browser or layout engine is available in the sandbox, only
happy-dom, which does no layout. The pull's preview is the place for a real measured before/after. - Before and after looks: none attached. Nothing visible changed, since this adds tests only.
src/web/ui.ts: untouched.
To try
bun test test/hotkey-hints.test.tsbun scripts/design-lint.ts
No new function was written, so there was nothing to reuse.
🤖 Generated with Claude Code
Left #9014 open: 2 unticked items remain (A test renders a page with hints shown and hidden and finds every box the same size and place.; Before and after looks on the pull.).
Most of this was already on main. I added two tests in
test/hotkey-hints.test.ts, and the first only partly meets the "every box the same size and place" item, because nothing in the sandbox can measure a layout.test/hotkey-hints.test.tspasses (18 tests), andbun scripts/gate.ts --fix,bun x tsc --noEmitandbun scripts/design-lint.tscame back clean.Already on main (#8930)
design-lintalready has akeyhintrule inquiet(). It flags an inlinekeyHint(or<kbd class="keyhint">outside a menu item or palette row, and thekeyhintcount indocs/design/quiet-debt.jsonis 0.Added
data-hintson<html>, so the markup is identical either way. Every stylesheet rule that applies only while hints are shown (html[data-hints] …) may set paint properties only, such as opacity, and never a box property. A rule that tried to size something while hints show would fail this test. This is a source check, not a measured layout.keyHint(yields rulekeyhintat the right line number (checked with line 2 of a two-line sample) and points tohintAttr.Left out
happy-dom, which does no layout. The pull's preview is the place for a real measured before/after.src/web/ui.ts: untouched.To try
bun test test/hotkey-hints.test.tsbun scripts/design-lint.tsNo new function was written, so there was nothing to reuse.
🤖 Generated with Claude Code
Closes #9014