A local-first multi-agent app development platform, built on PenguinHarness
Form controls take their font size from one record
- Date: 2026-09-11
- Type: refactor
- Scope:
web,skills - PR: #689
The Web App's form controls spelled their font size in four places that had drifted apart, and four
dialog fields sat a tier above their neighbours because no call site had said which tier it wanted.
The rung now comes from a single record, sizeTextClass in components/ui/input.tsx, and every
control names the one it takes.
Details
sizeClasssplit intosizeTextClass(the font rung) and its padding.Select's menu rows,OptionMenu's row titles andTextarearead the rung instead of re-spelling it —Textareahad its own literals and matched only by coincidence, and now keeps just the padding as an explicit override, a multi-line box wanting more room than a one-line input.- The rename-chat, rename-workspace, context-threshold and shortcuts dialogs pass
sm, matching the controls beside them; the shortcuts dialog had anInputattext-basedirectly above aTextareaattext-xsinside one stack. - The login card keeps
text-baseand now asks for it by name (size="base"), the sole deliberate caller of that rung; its submit Button dropped a redundanttext-sm. Input,Textarea,Select,OptionMenuandPasswordInputdefault tosminstead ofbase, joiningFormPicker, so a forgottensizelands on the rung its neighbours are already on rather than the roomiest one — which is how the four fields above had drifted. Every call site names its rung regardless; the default only decides where the next omission lands.FormPickergained asizeprop defaulting tosm, in place of a hard-coded tier, andprotocol-suffix.tsx's hand-rolled option menu importsOptionMenu's row records rather than duplicating them.- Four raw elements moved onto the family's rung: the machines page's search box (which also gained the autofill opt-out the app's other four search boxes carry), the goal-budget input in the chat composer's popover, the memory-import radio rows, and the trace-import file picker.
- Every
Modalfooter button dropped fromButton'smddefault tosm, so a dialog's buttons read at the same size as the fields above them — which is whatConfirmModalalready did, and the two dialog families had disagreed. 21 footers, 56 buttons, plus three in dialog bodies (the speed-test dialog's hand-built action row and the OAuth dialog's authorize link). Page-level buttons — a list header's create action, an empty state's action, the login card's submit — keepmd. - The chat composer and the Workspace file editor stay off the scale — one a prose surface, one a code surface — and now say so where they are written.
packages/web/test/control-size.test.tsparses the JSX and fails, naming file and line, on a font-size class in aclassNamepassed toInput,Textarea,Select,OptionMenu,PasswordInputorFormPicker— such a class either does nothing or freezes the control against the user's font-size setting, and neither shows up in review — on aModalfooter button that does not ask forsm, and on a font size spelled in a control module outside the two records..agents/skills/penguin-harness-frontend/SKILL.mdgained a "Control sizes" section recording the rungs, the stylesheet-order hazard behind the rule, and the one grandfathered bracket value.