Job Alerts DS

Forms

Required marking, layout columns, validation timing, placeholder policy, control choice.

Show audit of the app before this rule

Audit — what we have today

✓ Already right

  • Labels above every field, always visible (Mantine default) — Baymard's pick.
  • All inputs route through Mantine primitives; no raw <input>/<select>.
  • Most placeholders are example values ("https://jobs.example.com/job/...").
  • Forms carry aria-labels ("Create workday", "Edit workday for …").

✗ Violations

  1. placeholder="Optional" as metadata (Job ID, Prep cost, Notes) — disappears the moment you type; workday Notes uses a hint instead. Two conventions.
  2. Mixed required marking: native required asterisks on some fields, placeholder-optional on others, nothing on the rest.
  3. Multi-column everywhere: proposal form uses 2- and 3-column SimpleGrids incl. unrelated pairs (Reply time / Won / Revenue share a row; Date sent sits alone in a 2-col grid).
  4. No inline validation: submit-only; every error lands as a toast (top-right), never on the field. Zero uses of Mantine's error prop. One ad-hoc red Text in settings.
  5. Two number-input paths: workday uses NumberInput, proposal costs/revenue use TextInput type="number".
  6. Select for a 4-option list (Origin) — selection-control table says 2–5 → SegmentedControl/radio.

Axis 1 — Required vs optional marking

Proposal-log fields. The form is required-heavy (6 required / 4 optional).

Option A — Asterisk on required

Keep native required asterisks; drop placeholder-optional.

+ Familiar; zero relabeling.
− Asterisk noise on 60% of fields; NN/g: mark the minority.

Option B — Mark optional only

✓ CHOSEN

"(optional)" suffix in the label of optional fields; required fields unmarked. Native required stays for browser enforcement.

+ Marks the minority (4 fields, not 6); matches the sister product.
− Slightly longer labels.

Axis 2 — Layout columns

Option A — Single column, tight pairs only

✓ CHOSEN

One field per row; side-by-side ONLY for genuinely paired fields (Date sent / Reply time).

+ Speero: single-column completed 15.4s faster; no eye zig-zag.
− Taller forms.

Option B — Keep 2-column grids

Current pattern: pack fields two per row regardless of relationship.

+ Compact on wide screens.
− Research consistently favors single column; random pairs imply false relationships.

Axis 3 — Validation timing & error display

Option A — Validate on blur, inline errors

✓ CHOSEN

Field validates when you leave it; error = red border + message + concrete fix under the field. Toasts only for server failures. Try it — type "foo" and tab away:

+ Inline validation: −22% errors, +42% faster completion (A List Apart); error sits where the fix happens.
− Small refactor per form.

Option B — Submit-only, toast errors (current)

Keep as-is: browser blocks empty required fields; everything else surfaces as a top-right toast after submit.

+ No work.
− Toast is far from the field, vanishes, and can't point at what to fix.

Shared rules (all options)

  • Labels above fields, always visible. Placeholder = example value, never the label or metadata.
  • Placeholder-only allowed ONLY for search boxes / inline quick fields, and they must carry aria-label.
  • One number path: NumberInput for all numeric fields (kill TextInput type="number").
  • Selection controls: binary → Checkbox/Switch; 2–5 mutually exclusive → SegmentedControl (Origin:
    ); 6+/dynamic → Select (template picker stays a Select).
  • Field width ≈ expected content; submit button reflects the action ("Save proposal").
  • Helper text under the field in dimmed small text; an error replaces it, never both.
Show research sources
✓

Decision: B / A / A

  1. Marking B: NN/g's explicit exception — when most fields are required, mark only the optional minority. Proposal form is 6/10 required. Matches the sister product.
  2. Layout A: CXL single-column 15.4s faster (95% confidence); current 2–3-col grids paired unrelated fields. True pairs stay side by side.
  3. Validation A: on-blur inline errors (+22% success, −42% completion time); toasts demoted to server failures only.

Applied at adoption:

  • Proposal form rebuilt single-column; Date sent / Reply time paired; Revenue + costs → NumberInput; Origin Select → Radio.Group (4 long labels — segmented would overflow); Job URL / Video link validate https:// on blur.
  • Workday create + edit: clicked/qualified paired, Notes "(optional)".
  • Intake: single column, "Optional …" placeholders → example values; unmarked (all-optional form).
  • 8× placeholder-as-metadata removed; asterisks off via withAsterisk={false}.

Design system for a freelance job-alert app. App copies are downstream.