Job Alerts DS

Status notice

The inline message that tells someone a part of the product is working, stopped, or waiting — and what to do about it. Not a toast (that is Section 7) and not a badge on its own (Section 4).

Show audit of the app before this rule

Audit

What the app does today

Four places already draw this pattern. Each one draws it differently.

Already right

  • Tone always carries a text label — no colour-only state.
  • All four use AppCard with the accent bar rather than a hand-rolled border.
  • Status colour comes from statusToneColor(), never a page-local map.

Violations

  • 1. Four anatomies for one pattern. job-alerts-section.tsx:846 (badge + headline + action + steps), email-opt-in-prompt.tsx:58 (title + body + two buttons), shell-help-content.tsx:30 (eyebrow + body + link), proposals-dashboard.tsx:808 (eyebrow + list + button).
  • 2. Tone is hardcoded at three of four call sites. accent="brand" regardless of what the message means; only the job alert card maps tone → accent.
  • 3. No live region anywhere. Only loading skeletons use role="status" (dashboard-loading.tsx:48). A notice that changes after a refresh is silent to a screen reader.
  • 4. Action count is unbounded by anything but habit. One site ships two buttons, one ships none, one ships a link.
  • 5. 19 hand-rolled red inline messages (c="red") sit outside this pattern entirely — settings, workdays, proposals, waitlist.

Axis 1

Anatomy

Same state, same words, three shapes.

Option A — badge-led

CHOSEN

Codifies what the job alert card already does. Badge names the state, accent bar carries tone, steps live behind the action.

The job site signed this browser out

Sign back in and checking carries on by itself.

Signed out

Last checked 21 Sep, 11:55

Open job site

Option B — icon-led

Option

Carbon / Polaris house style. A tone icon replaces the badge, so the headline is the only text at the top.

The job site signed this browser out

Sign back in and checking carries on by itself.

Option C — one line

Option

Accent bar, one sentence, action as a link. Nothing to expand.

The job site signed this browser out. Sign back in and checking carries on by itself.

Open job site

Axis 2

Actions and dismissal

What a notice may offer, and whether it can be closed.

Option A — one action, never dismissible

At most one thing to do. The notice disappears when the state that raised it is fixed, so there is nothing to close. Matches Carbon: omit the close button when the person has to act.

Option B — up to two actions, dismissible when low priority

CHOSEN

Primary plus secondary ("Open job site" / "Not now"), with a close button on anything that is not blocking. Matches Polaris, and the email opt-in prompt already needs two.

Shared rules

True whichever options win

These are not up for a vote — they come from sections already decided.

  • One tone per notice, from the Section 4 tone map. Never a raw colour.
  • Accent bar only for attention and urgent. A green or grey bar is decoration (surfaces rule 4).
  • Headline is one sentence. Microcopy formulas apply (Section 13).
  • Steps render as an ordered list, so a screen reader announces "list, 3 items".
  • A disclosure wires aria-expanded + aria-controls and flips its own label.
  • Urgent notices are role="alert"; everything else is role="status" (polite), so a refresh is announced without interrupting.
  • A button that navigates carries rel="noopener noreferrer" and the external-link icon (button rules).
  • Raw system text is trimmed before display, never shown at full length.
Show research sources

Decision

Option A / Option B (2026-09-24)

Badge-led anatomy, at most two actions, dismissible only when nothing is blocked.

  1. The app already speaks in badges. A tone icon would have been a second vocabulary for state, and Section 4 rule 1 exists because colour alone does not carry meaning — a labelled badge does.
  2. Two actions, because the product already needs them: the email opt-in prompt asks a yes/no question and cannot be a one-button notice.
  3. Dismissal follows priority rather than being banned outright, matching Polaris. A notice that blocks work has nothing to close; an offer does.
  4. The primitive owns what four hand-rolled copies each got wrong: tone → badge and accent as one paired decision, a live region, an ordered list for steps, a wired disclosure, and external links that carry rel and an icon.

Why the others lost

  • Icon-led. Cleaner top line, but it drops the one text label that says what the state is called, and it needs an icon set this repo does not carry.
  • One line. Fine for a hint, too thin for a failure: no room for a reason, and a link is a weak action next to a real one.
  • One action, never dismissible. Right for blocking states, wrong as a blanket rule — it would have forced the opt-in prompt to stay hand-rolled.

Applied at adoption

  • StatusNotice added to src/components/ui and the gallery.
  • The job alert checking card and the email opt-in prompt now render through it.
  • Still ad hoc, to fix as touched: the 19 red inline messages in settings, workdays, proposals and the waitlist form.

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