Job Alerts DS

Status badges

When something is a badge, which variant + color it gets, and what stops being a badge.

Show audit of the app before this rule

Audit — what we have today (37 Badge instances)

✓ Already right

  • Every badge carries a text label — no color-only status anywhere (WCAG 1.4.1 passes via text).
  • Central tone map lib/status-colors.ts exists (Section 1) and the resource roadmap already routes priority/status colors through it.
  • Metadata badges (tags, origin, categories) are already mostly gray.

✗ Violations

  1. Default-green flood: 10+ badges omit color, so they render brand green whatever they mean — funnel statuses, intake statuses, "14 clicked" counts, "Default" template tag, capture confidence. Green stops meaning anything (Section 1 one-green rule).
  2. Variant encodes two different things: funnel uses filled/light/outline as status levels(won/replied/awaiting); everywhere else outline means "secondary metadata" (dates, qualified counts). Same treatment, two meanings.
  3. Tone map bypassed: only 1 of ~8 status sites uses statusToneColor(); funnel and intake hardcode their own scheme.
  4. Filled badges compete with buttons: filled green "Won" and "Available now" look like the primary action treatment (Section 2: filled green = brand action only).
  5. Non-status data dressed as badges: dates and counts ("Jul 6", "5 qualified") rendered as badges add noise without signaling state.

Axis 1 — Status badge treatment

Same three funnel rows under each rule. Colors always come from the tone map (won=positive, replied=inProgress, awaiting=inactive); the question is variant.

Option A — one variant: light + tone color

✓ CHOSEN

Every status badge = variant="light" + tone map color + label. Color carries the meaning; variant never does. No filled, no outline for status.

Senior React dev for SaaS dashboard

Won
Best Match

Sent Jul 2 · Replied Jul 4

Senior React dev for SaaS dashboard

Replied
Invite

Sent Jul 5 · Replied Jul 7

Senior React dev for SaaS dashboard

Awaiting reply
Search

Sent Jul 8

+ One rule, zero decisions per badge; filled stays button-only; matches Carbon/Red Hat (soft fills for state, label mandatory).
− Won doesn't "pop" more than Replied — emphasis comes from color alone.

Option B — light default, filled for terminal wins

Same as A, but terminal positive states (Won) get variant="filled" for celebration-level emphasis.

Senior React dev for SaaS dashboard

Won
Best Match

Sent Jul 2 · Replied Jul 4

Senior React dev for SaaS dashboard

Replied
Invite

Sent Jul 5 · Replied Jul 7

Senior React dev for SaaS dashboard

Awaiting reply
Search

Sent Jul 8

+ Wins jump out in long lists.
− Re-introduces filled green on non-actions (breaks Sections 1–2); adds a per-badge judgment call; louder than the page's actual primary button.

Axis 2 — What stops being a badge

Real case: recent-workdays row. Counts and dates are data, not state.

Option A — badges only for state + category

✓ CHOSEN

Status → light + tone color. Category/tag (origin, template tags) → light gray. Counts, dates, IDs → plain dimmed text. Outline variant retired entirely.

Mon, Jul 6

14 clicked · 5 qualified

+ Badges regain signal value — a badge now always means "state or category"; rows get quieter.
− Counts lose their pill shape some users may be used to.

Option B — keep count/date badges, gray them

Keep counts and dates as badges but force them gray (light = primary metadata, outline = secondary). Nothing demoted to text.

Mon, Jul 6

14 clicked
5 qualified

+ Smaller diff; keeps the scannable pill rhythm in dense rows.
− Badge count stays high (37+); light-vs-outline "hierarchy" on data is a rule nobody can apply consistently.

Shared rules (all options)

  • Never color-only. Every status badge has a text label (WCAG 1.4.1). Icons optional, labels mandatory.
  • All status colors go through statusToneColor() — five tones: positive (green), attention (yellow), urgent (red), inProgress (blue), inactive (gray). No badge hardcodes a color name for state.
  • Never omit color on a Badge. Default = brand green = fake positive signal.
  • Badges are non-interactive. Anything clickable is a Button/SegmentedControl/Chip — never a Badge that looks tappable.
  • Funnel tone assignment: won → positive · replied → inProgress · awaiting reply → inactive. Intake: captured → inProgress · enriched → positive · failed → urgent.
  • Marketing pages follow the same map (Featured = gray or positive per meaning, never decorative green).
Show research sources
✓

Decision: Option A + Option A

Why Axis 1 Option A (light + tone color only):

  1. One rule, zero per-badge judgment calls; color carries meaning, variant never does.
  2. Filled stays button-only — Option B's filled "Won" re-breaks the Sections 1–2 one-green / filled-is-action rules.

Why Axis 2 Option A (badges = state + category only):

  1. A badge regains signal value — seeing one always means state or category, never raw data.
  2. Option B keeps 37+ pills and a light-vs-outline hierarchy on data that nobody applies consistently. Outline variant is retired.

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