Job Alerts DS

Destructive actions — danger zone & typed confirmation

Section 2 says destructive work goes through a confirm dialog and Section 9 says that dialog is sm with a red filled verb. Neither says when an action earns extra friction on top of that, where the typed word lives, or how a section full of irreversible actions should look.

Show audit of the app before this rule

Audit — what we have today (5 confirm dialogs, 1 typed confirmation)

✓ Already right

  • All five destructive paths route through ConfirmDialog: delete proposal, delete workday, delete search, unlink Telegram, delete account. No window.confirm anywhere.
  • Every confirm label carries an explicit verb and object — "Delete workday", "Unlink Telegram" — never a bare "Delete" (Section 13).
  • Account deletion re-verifies identity through Clerk before it goes through, and states a 14-day grace window in copy.

✗ Gaps

  1. No threshold rule for typed confirmation. One action in the app asks you to type a word. Nothing says which future action should, so the next irreversible feature will guess.
  2. The typed word sits outside the dialog. It gates the trigger in the panel, so the dialog that restates the consequence is not the thing the user typed against.
  3. No danger-zone rule. The account-deletion panel is the same depth-1 surface as Capture settings — the page reads as documentation until the button.
  4. AppCard accent is undocumented. The prop ships brand | attention | urgent and paints a 3px left bar, but no *-system.md mentions it, so it is invisible to anyone reading the rules.
  5. Re-verification is undocumented. Account deletion asks Clerk to re-confirm identity; no rule says which actions require that.

Axis 1 — Where the typed confirmation lives

Same action — delete the account. Question: does the friction belong in the dialog, in the panel, or nowhere?

Option A — typed word inside the dialog

✓ CHOSEN

The trigger opens the dialog straight away. The dialog restates the consequence and holds the field; its red confirm stays disabled until the word matches.

+ The sentence you are agreeing to and the thing you type sit in one place, and the dialog keeps focus trapped on the decision.
− ConfirmDialog has to grow a typed-confirmation mode.

Option B — typed word in the panel (today)

The panel holds the field; the trigger only wakes up once the word matches; the dialog then restates the consequence.

+ No change to the shared primitive; the field reads alongside the full erased/kept list.
− Two confirmations for one act, and the field is easy to fill early and forget.

Option C — no typed word, dialog only

The dialog alone carries the weight: explicit verb, restated consequence, 14-day undo window named in the message.

+ One pattern for every destructive action; NN/g warns that heavy confirmations lose their power once they become routine.
− Account deletion is the one act where the extra second is worth buying, even with a grace window behind it.

Axis 2 — How a danger zone looks

Same panel. Question: what marks a surface whose actions cannot be taken back?

Account

Delete this account

Deleting signs you out everywhere and stops the extension from capturing anything else. Your data is not erased straight away.

You have 14 days to change your mind. Sign back in during that time and cancel, and everything comes back exactly as it was.

Erased after 14 days

  • Proposals, intakes, and the learning history behind them
  • Clients and workday logs
  • Job alerts, seen jobs, and alert settings

Option A — urgent accent bar. Reuses the existing AppCard accent (token red, 3px left bar). Same mark as an error help card.
+ Nothing new to build; obeys Section 5 rule 4 (no hand-rolled borders).
− Quiet: it reads as a note, not a warning, and it collides with the help rail's own accent vocabulary.

Danger zone

Delete this account

Deleting signs you out everywhere and stops the extension from capturing anything else. Your data is not erased straight away.

You have 14 days to change your mind. Sign back in during that time and cancel, and everything comes back exactly as it was.

Erased after 14 days

  • Proposals, intakes, and the learning history behind them
  • Clients and workday logs
  • Job alerts, seen jobs, and alert settings

Option B — full red border + red eyebrow. ✓ CHOSEN A new depth-1 variant: withBorderin token red, eyebrow reads "Danger zone".
+ The pattern people already know from GitHub, Stripe, Vercel; unmistakable at a glance.
− Needs a real AppCard tone="danger" so the color stays on the token scale; a whole red box can read as an error state rather than a place.

Account

Delete this account

Deleting signs you out everywhere and stops the extension from capturing anything else. Your data is not erased straight away.

You have 14 days to change your mind. Sign back in during that time and cancel, and everything comes back exactly as it was.

Erased after 14 days

  • Proposals, intakes, and the learning history behind them
  • Clients and workday logs
  • Job alerts, seen jobs, and alert settings

Option C — no marker (today). Placement and copy do the work: last tab, last panel on the page, red trigger.
+ Zero new surface vocabulary; the red button is already the signal.
− Indistinguishable from Capture settings until you reach the button; nothing groups future irreversible actions.

Shared rules (true under every option)

  • Destructive work goes through ConfirmDialog — no one-click irreversible action (Section 2, Section 9 rule 7).
  • The confirm button is red filled with verb + object; cancel is default; the backdrop does not dismiss.
  • The message restates the target and the consequence, and names the undo window when there is one (Section 13 rule 3).
  • Irreversible actions sit last on the page, never beside ordinary toggles.
  • Colors come from tokens — no one-off red (Section 1, Section 5 rules 3 and 4).
  • Account-level deletion re-verifies identity before it goes through.
Show research sources

Decision: Axis 1 Option A · Axis 2 Option B

  1. The sentence you agree to and the word you type belong in one place. With the field in the panel, the dialog restates a consequence the typing never answered.
  2. One act, one confirmation. Panel field plus dialog was two gates for a single decision, and a field filled early is a gate already open.
  3. A danger zone is a place, and the border is what marks a place. The 3px accent bar is the help rail's vocabulary for cards whose content carries tone — reusing it here would blur both.
  4. Putting the red in AppCard tone="danger" keeps it on the token scale; a hand-rolled border at the call site breaks Section 5 rule 4.
  5. Option C (no typed word) lost because account deletion is the one act worth buying a second of thought, even behind a 14-day window. Option C on Axis 2 lost because the panel is indistinguishable from Capture settings until the button.
  6. Typed confirmation stays rare by rule, not by habit — the tier table in destructive-system.mdis what keeps NN/g's warning about routine friction from coming true.

Applied at adoption: ConfirmDialog gained confirmationWord; AppCard gained tone="danger"; account deletion moved its typed field into the dialog and its panel became a danger zone; the trigger no longer stretches full width.

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