stack/apps/dashboard/public
Mantra 9b1851dd54
Managed email domain deletion and Cloudflare DNS import UX (#1442)
## Summary
- Add an admin-only delete endpoint and SDK method to remove managed
email domains, with Resend/DNSimple cleanup and a guard against deleting
domains currently in use for sending.
- Add dashboard UI to remove unused managed domains (with confirmation)
and improve the DNS setup step with Cloudflare detection, zone file
download, and import instructions.
- Add E2E coverage for delete auth, success, in-use rejection,
post-switch deletion, and 404 cases.

## Test plan
- [ ] Run `pnpm test run managed-email-onboarding`
- [ ] In dashboard email settings, add a managed domain and verify
Cloudflare hint appears when NS records point to Cloudflare
- [ ] Remove an unused managed domain and confirm it disappears from the
list
- [ ] Verify active (in-use) managed domains cannot be deleted until
email provider is switched away


Made with [Cursor](https://cursor.com)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **New Features**
* Delete managed email domains from the dashboard with a confirmation
flow and success notification
* Cloudflare-aware domain setup: detection banner, quick links to
Cloudflare DNS, downloadable zone file, and import instructions
  * Admin API and admin-app method to perform managed-domain deletion

* **Bug Fixes**
* Deletion blocked with a clear error when a domain is actively used for
sending

* **Tests**
* Added end-to-end coverage for managed-domain delete scenarios
(success, in-use conflict, auth rejection, and 404)

* **Style**
* Data grid layout adjusted to prevent unintended full-height stretching
across various tables

<!-- review_stack_entry_start -->

[![Review Change
Stack](https://storage.googleapis.com/coderabbit_public_assets/review-stack-in-coderabbit-ui.svg)](https://app.coderabbit.ai/change-stack/hexclave/stack-auth/pull/1442?utm_source=github_walkthrough&utm_medium=github&utm_campaign=change_stack)

<!-- review_stack_entry_end -->
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-23 09:22:29 -07:00
..
assets Managed email domain deletion and Cloudflare DNS import UX (#1442) 2026-05-23 09:22:29 -07:00
changelog [Changelog] Updates to US date format, adds images. (#1143) 2026-02-02 11:21:21 -06:00
.nojekyll Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
app-bg-dark.png Apps frontend (#945) 2025-10-16 20:54:14 -07:00
app-bg-light.png Apps frontend (#945) 2025-10-16 20:54:14 -07:00
convex-logo.png Apps frontend (#945) 2025-10-16 20:54:14 -07:00
github-invertocat-white.svg Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
github-invertocat.svg Split backend and dashboard (#83) 2024-06-18 15:49:31 +02:00
javascript-logo.svg Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
logo-bright.svg Update logos and translations for improved localization support 2025-05-23 11:47:06 -07:00
logo-full-bright.svg Update logo 2025-03-31 13:20:35 -07:00
logo-full.svg Update logo 2025-03-31 13:20:35 -07:00
logo.svg Update logos and translations for improved localization support 2025-05-23 11:47:06 -07:00
neon-logo.png Apps frontend (#945) 2025-10-16 20:54:14 -07:00
neon.png Update Neon branding 2024-12-11 09:50:49 -08:00
next-logo.svg Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
open-graph-image.png fix #103 No Open Graph Meta Tags Present (#125) 2024-07-04 00:05:54 +02:00
python-logo.svg Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
react-logo.svg Better dashboard onboarding process (#604) 2025-06-06 10:51:08 +02:00
storeDesc-api-keys-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-auth-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-auth-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-auth-3.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-auth-4.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-auth-5.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-auth-6.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-data-vault-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-data-vault-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-data-vault-3.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-data-vault-4.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-3.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-4.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-5.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-6.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-7.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-emails-8.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-3.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-4.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-5.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-6.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-payments-7.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-rbac-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-rbac-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-rbac-3.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-rbac-4.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-teams-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-teams-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-teams-3.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-teams-4.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-vercel-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-vercel-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-webhooks-1.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
storeDesc-webhooks-2.png [Dashboard] Adds app store Descriptions and images (#1041) 2025-12-04 12:40:48 -06:00
tanstack-start-logo.png [codex] Add TanStack Start SDK integration (#1399) 2026-05-08 10:59:16 -07:00
vercel-logo-round.svg Vercel Integration app 2025-10-29 13:54:45 -07:00
vercel-logo.svg Vercel Integration app 2025-10-29 13:54:45 -07:00