Design note — Connector card affordances, round 4 (card_affordances_r4)
Target registry item: C1d (OB-GAP-9 — R-4 card affordances still open: required/optional marks, "not yet available" for 409s, the AW- inline hint). Status: design note only — NOT built. Measured on 2026-10-12 in miz-oki-command-center-ui/components/connectors/marketing-connectors.tsx: a required field renders a cyan * after its label (lines 526–533, field.required ? <span> *</span>); field.help renders under the input with aria-describedby; the word "optional" appears nowhere in the component (only in placeholders the catalog supplies, e.g. "optional"); an unavailable provider renders a dimmed card with a locked pill reading Wave {entry.wave} (lines 381–397); there is no client handling of a 409 provider_not_available response (grep returns nothing in the UI tree), so a save or test against an unavailable provider would surface as a generic error. This note changes copy and client behaviour only; it collects no new value and arms nothing.
UI contract
One shared component serves /onboarding and the standalone connectors route (.claude/rules/tenant-onboarding.md: never a second connector implementation), so every change below lands once.
U1 — Required / optional marks
- Keep the
*; add visible text so the mark is not colour-only (accessibility): required fields readLabel *witharia-required="true"; optional fields readLabel (optional)— the word comes from the component, so the catalog placeholders that currently say "optional" are no longer the only signal and can drop it (catalog edit in the same change, parity test updated). - A legend line at the top of each card: "
*required". No other copy.
U2 — "Not yet available" state
- The locked card keeps the
Wave Npill (it is a sequencing label, not a date — the UI never promises a date) and gains one sentence: "Not yet available — nothing is collected for this provider." The description text from the catalog still renders. - 409 handling: any response with
error: provider_not_availablefrom save, test or status is rendered as that same locked state, the form (if it was ever shown) is hidden, the request is not retried, and the message names the provider. The client never guesses availability: it re-reads the catalog entry'savailablefrom the server-owned catalog (the single source of truth) rather than inferring from the 409. - A provider that is
available: truein the catalog but answers 409 is a server/catalog disagreement; the card shows the locked state and an "ask your onboarding contact" line, and the console logs the mismatch — never an "optimistic" form.
U3 — AW- inline hint (Google Ads customer_id)
- The server pattern (
^\d{3}-?\d{3}-?\d{4}$) is already served in the catalog row. The client applies the servedpatternon blur for EVERY field that carries one (not a Google-specific special case) and shows the field'shelptext inline in warning tone when it fails. - One provider-agnostic refinement: when a value starts with
AW-,GT-orG-in a field whose pattern is digits-only, the inline message is the help text itself ("NOT the AW-… conversion tag … cannot be converted"), shown before the user clicks Save. The server's 422invalid_field_formatstays authoritative; the client hint only front-runs it. - The client never mutates the value (no silent stripping beyond what the server already accepts — dashes).
U4 — Saved-secret hint
- Unchanged:
saved …tailplaceholder for configured secret fields. Documented here so U1's "(optional)" text does not collide with a "saved" placeholder (both can show: label says optional, placeholder says saved).
Schema
No catalog shape change. The catalog already serves required, secret, pattern, help, placeholder, available, wave — every affordance above reads an existing key. If any affordance needs a key the catalog does not serve, the fix is a catalog field plus a parity-test row, not a client-side list (rule: "server-owned provider catalog").
Consent posture
Not applicable to data: this note collects nothing new and sends nothing new. The only posture property is that no secret value ever appears in an inline hint, a validation message, a log line or a 409 render — messages quote the field label and the help text, never the typed value.
Failure modes → verdicts (client rendering of server verdicts)
| Server verdict | Card renders |
|---|---|
409 provider_not_available |
locked "Not yet available" state (U2) |
422 invalid_field_format |
inline help text under the named field (U3) |
422 missing_required_fields |
the named required fields outlined, legend text repeated |
422 unknown_fields |
generic "the form sent a field the server does not know" (a client bug, never shown as the tenant's fault) |
| 503 (vault / store unavailable) | "Could not reach the credential store — nothing was saved. Try again." with retryable: true |
Component tests in both directions: a required field shows the mark and an optional one shows "(optional)"; a 409 renders locked and a 200 catalog with available: true renders the form; an AW- value shows the hint and a 10-digit value does not.
Flag
None. Copy and client validation arm no behaviour; the server verdicts are unchanged. (If a reviewer wants a kill switch, it is a client build-time constant, default ON for the new copy, and the test asserts the 409 handling cannot be switched off — availability honesty is not optional.)
Owner / operator gates
- None owner-level (register: "Build").
- Operator: none. The console deploy (
deploy-ui.yml) ships it;miz-oki-command-center-ui/**on the merge diff deploys the console (rule 08), so the PR title carries the deploy count.
Vendor references
None — no vendor API is involved. Accessibility reference for non-colour-only required marks (WCAG 1.4.1) — not re-fetched from this sandbox on 2026-10-12.