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

opened this

Merged 41d 17h ago, 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. .field-row is a row of .fields that wraps on narrow screens.

Notes

opened this

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-row is 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 in style/components.ts and 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-actions is a form's row of buttons. It is styled in style/components.ts, plus style/content.ts for the close-reason and "close into" controls and the narrow-screen .comment-form. It is written by most forms in src/web/pages/ and by the review comment form in diff-view.ts; client.ts looks up its .muted note.

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

Closes #5524

commented

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-row is 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 in style/components.ts and 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-actions is a form's row of buttons. It is styled in style/components.ts, plus style/content.ts for the close-reason and "close into" controls and the narrow-screen .comment-form. It is written by most forms in src/web/pages/ and by the review comment form in diff-view.ts; client.ts looks up its .muted note.

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

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs