#9

Improve DNS setup guidance

MergedstylesshOwnermerged intofrom

Summary

  • elevate DNS record cards and align every record value before its priority
  • present optional DNS records as recommended delivery settings with clearer hierarchy and copy
  • add visible, accessible copy confirmation with a subtle intrinsic-width success flash
  • suppress the DNS-pending banner in demo mode while preserving it for real accounts

Validation

  • corepack pnpm exec eslint app/mail/layout.tsx components/shell/app-shell.tsx components/shell/dns-records.tsx components/shell/domain-setup.tsx components/shell/onboarding.tsx theme/tokens.stylex.ts
  • corepack pnpm test (15 passed)
  • corepack pnpm build
  • git diff --check origin/main...HEAD
  • browser checks for light and dark themes, disclosure keyboard behavior, copy feedback, and 320px reflow without horizontal overflow

Known repository lint state

The changed files pass ESLint. The repository-wide lint command still reports pre-existing errors in babel.config.js, postcss.config.js, components/shell/app-shell.tsx, components/shell/login-screen.tsx, and lib/mail/use-pending-send.ts.

Activity

4
stylessh merged commit e726f8f into main3mo ago
mikeyreviewed3mo ago
mikey3mo ago

Review summary

Reviewed the full diff (7 files, +188/-60): DNS record card layout/grid rework, copy-confirmation UX in dns-records.tsx, the new showDnsPendingBanner prop threaded through app/mail/layout.tsx → AppShell, and copy/token changes in onboarding.tsx, domain-setup.tsx, theme/tokens.stylex.ts, app/globals.css.

No blocking correctness, security, or data-safety issues found.

Things I specifically checked and ruled out as non-issues:

  • showDnsPendingBanner={!isDemoMode()} (app/mail/layout.tsx:17) — isDemoMode() defaults to true when DEMO_MODE is unset (lib/env.ts:2), so an env misconfiguration would silently hide the "DNS isn't live yet" banner for real accounts. Not a new risk: every real deployment config in the repo (docker-compose.yml, .railway/railway.ts prod branch) already sets DEMO_MODE=false explicitly, and the same fail-open default already gates other account/auth logic (lib/auth.ts, lib/data/accounts.ts). Non-blocking, consistent with existing convention — just flagging since it's now gating a delivery-affecting user warning rather than demo-vs-real data selection.
  • New CSS grid (record style, dns-records.tsx) reserves a fixed 48px priority column and keeps cellStatus pinned to grid column 5 even when a record has no priority, leaving an intentional gap for alignment — matches the PR's stated goal of "align every record value before its priority." Verified the mobile (@media max-width: 640px) override correctly collapses cellStatusWithoutPriority back to a single row on small screens.
  • New tokens (positive-text/soft/glow, okSoft, okFlash, elevation.recommended) are all defined in both app/globals.css (light/dark) and theme/tokens.stylex.ts — no dangling var references.
  • Copy-confirmation UX (CopyCell) adds a visible label swap, a role="status" aria-live="polite" sr-only announcement, and an aria-label update on the button — reasonable accessible-copy pattern, .sr-only class already exists in globals.css.
  • No changes to data fetching, auth, or API routes; partitionDnsRecords/relativeDnsHost (lib/dns/records.ts) are untouched by this PR.

Non-blocking follow-up: no automated test covers the new showDnsPendingBanner gating or the DNS record copy/grid UI; the PR body notes manual browser validation was done instead (reasonable given this is a component-styling change and the repo's existing test suite is minimal/non-UI).

Branch stylessh/improve-dns-delivery-setup has been merged.

Checking branch