#9
Improve DNS setup guidance
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.tscorepack pnpm test(15 passed)corepack pnpm buildgit 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
4e726f8f into main3mo agomikeyreviewed3mo 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 newshowDnsPendingBannerprop threaded throughapp/mail/layout.tsx→AppShell, and copy/token changes inonboarding.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 totruewhenDEMO_MODEis 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.tsprod branch) already setsDEMO_MODE=falseexplicitly, 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.recordstyle,dns-records.tsx) reserves a fixed48pxpriority column and keepscellStatuspinned 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 collapsescellStatusWithoutPriorityback to a single row on small screens.positive-text/soft/glow,okSoft,okFlash,elevation.recommended) are all defined in bothapp/globals.css(light/dark) andtheme/tokens.stylex.ts— no dangling var references.CopyCell) adds a visible label swap, arole="status" aria-live="polite"sr-only announcement, and anaria-labelupdate on the button — reasonable accessible-copy pattern,.sr-onlyclass already exists inglobals.css.partitionDnsRecords/relativeDnsHost(lib/dns/records.ts) are untouched by this PR.Non-blocking follow-up: no automated test covers the new
showDnsPendingBannergating 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).