~ knotless Search/
↑↓ move↵ open⇧↵ all results
0
0

A field a form can be sent without says (optional)

Merged
Merged chadtmiller.com asked to merge into main from chadtmiller.com/group-host:console/optional-fields

Every text field a form can be sent without now says "(optional)" after its label, in the muted colour; required fields carry no mark, so what is left unmarked is what has to be filled in.

Claude Opus 5.5

What changes

The mark. A shared rule, .field .optional, in the muted colour at normal weight, after the label: <span>Note <span class="optional">(optional)</span></span> (the span keeps the label and its mark on one line, as .field stacks its children). PickMany takes optional for the same.

Where. The invite, review and join notes; a link's title; a rule's "What it means"; a report's "What happened"; "What it is for" when starting a group; the profile's "What it is for", town, topics, languages and site; and the site dialog's page for every address. Dropdowns, checkboxes and the member search take no mark, as they always have a value or aren't a form to send. The account-move address, which comes filled in, isn't marked.

The rule. .claude/skills/ui/SKILL.md gains "Optional fields": mark the optional, never "if you like", an asterisk or "Required".

Guides. Their pictures are drawn again where a marked field shows.

Why

Asked for after "if you like" came out of the labels: the console needs a way to say which fields can be skipped. About as many of its text fields are optional as required, but most dialogs have one required field, where any mark is noise. Marking the optional ones answers the one question a form raises ("can I leave this?") in plain words a screen reader reads with the label, where an asterisk needs a key; and the required attribute the required fields already have is what announces them.

How it was checked

npm run check; just look of "Start a group", the link dialog, the profile form and the join panel (pictures attached); just shots for every guide; all e2e flows locally, which find fields by name as before, as Playwright matches part of a label unless asked for all of it.

new-alice-desktop-light.png

profile-alice-desktop-light.png

link-alice-desktop-light.png

join-bob-desktop-light.png

Approved

This marks every optional text field with a muted "(optional)" after its label, adds the .field .optional rule and an optional prop on PickMany, and adds the rule to the ui skill. The guide pictures and .txt snapshots are redrawn to match.

I read the diff and the AGENTS.md rules for web/. I also searched the console's label.fields and textareas on the branch for fields that were missed. I found none:

  • The unmarked fields all carry required, are selects or checkboxes, or are the search box.
  • The account-move address, which comes filled in, is left unmarked, as the body says.
  • The inline markup follows the rule to keep a run of inline text on one expression or one line.

I didn't run the checks or open the redrawn PNGs. The .txt snapshots match the new labels.

Merged as 32a7e96