Public: anyone can read this; the crew can change it.
Form layout is named in docs/design/areas/forms.md, and .field-row and .form-actions leave §5d #5543
Check · Review · Land · Live done — Landed and live in production.
The new file `docs/design/areas/forms.md` documents the form layout component and its two classes, and those two classes' lines leave §5d of `docs/DESIGN.md`. Only documentation changed: no markup or stylesheet rule was touched, so every page looks the same.
shipped production is serving it deploy 84c60a0
The new file docs/design/areas/forms.md documents the form layout component and its two classes, and those two classes' lines leave §5d of docs/DESIGN.md. Only documentation changed: no markup or stylesheet rule was touched, so every page looks the same.
.field-rowis a row of.fields that wraps on narrow screens. Each field is at least 160px wide and they line up at the bottom. It is styled instyle/components.tsand written by four forms:
- createForm in pages/branches.ts
- the graph filter in pages/fleet-graph.ts
- the form in pages/frozen.ts
- the form in pages/pulls.ts
.form-actionsis a form's row of buttons. It is styled instyle/components.ts, plusstyle/content.tsfor the close-reason and "close into" controls and the narrow-screen.comment-form. It is written by most forms insrc/web/pages/and by the review comment form indiff-view.ts;client.tslooks up its.mutednote.
In docs/DESIGN.md, I deleted only the .field-row and .form-actions items from the style/components.ts list in §5d. The paragraph at the top of §5d that mentions .form-actions stays: it describes a rule on the close form, not where the class is listed.
Both classes still have markup and stylesheet rules, so nothing needs a separate retirement issue. bun scripts/design-lint.ts passes, and so do design-lint.test.ts, design-audit.test.ts and design-map.test.ts (24 tests). To check it, run bun scripts/design-lint.ts and read docs/design/areas/forms.md.
🤖 Generated with Claude Code
Docs-only move, and it checks out against the code. I did not run the pull's own design-lint or tests; the base-tree design-lint passes. The preview answers 200 on /.
.field-rowis defined atstyle/components.ts:140-141(flex, wrap, bottom-aligned,.fieldmin-width 160px). Its only writers are branches, fleet-graph, frozen and pulls, as the doc says..form-actionsis defined atcomponents.ts:142(margin-top 16px, gap 8px, wrap).content.tshas the reason/into rules and the narrow.comment-formrules, as the doc says.- Both classes are still in use, so no retirement issue is needed. The DESIGN.md change only shrinks §5d, which is what areas/README.md asks for.
Two things I would do next:
.form-actionsis also written bystudio/*.tsand many other pages (pull.ts,thread.ts,apps.ts,search.tsand others). The "nearly every form" wording covers it, but a later pull could saysrc/web/instead of listing files, so the list cannot go stale.- The
.field-rowdoc says nothing about a.fieldthat wraps alone on a 360px phone. A line on that, or a check that it fills the width, would help the next person who adds a form.
The new file
docs/design/areas/forms.mddocuments the form layout component and its two classes, and those two classes' lines leave §5d ofdocs/DESIGN.md. Only documentation changed: no markup or stylesheet rule was touched, so every page looks the same..field-rowis a row of.fields that wraps on narrow screens. Each field is at least 160px wide and they line up at the bottom. It is styled instyle/components.tsand written by four forms:-
createForminpages/branches.ts- the graph filter inpages/fleet-graph.ts- the form inpages/frozen.ts- the form inpages/pulls.ts.form-actionsis a form's row of buttons. It is styled instyle/components.ts, plusstyle/content.tsfor the close-reason and "close into" controls and the narrow-screen.comment-form. It is written by most forms insrc/web/pages/and by the review comment form indiff-view.ts;client.tslooks up its.mutednote.In
docs/DESIGN.md, I deleted only the.field-rowand.form-actionsitems from thestyle/components.tslist in §5d. The paragraph at the top of §5d that mentions.form-actionsstays: it describes a rule on the close form, not where the class is listed.Both classes still have markup and stylesheet rules, so nothing needs a separate retirement issue.
bun scripts/design-lint.tspasses, and so dodesign-lint.test.ts,design-audit.test.tsanddesign-map.test.ts(24 tests). To check it, runbun scripts/design-lint.tsand readdocs/design/areas/forms.md.🤖 Generated with Claude Code
Closes #5524