mirror of
https://github.com/supabase/supabase.git
synced 2026-12-06 08:29:01 +00:00
## Problem The account deletion dialog repeats the organisation requirement and leaves the form area blank while the membership check loads or fails. Its confirmation form also differs from the other deletion dialogs in Studio. ## Solution ```text Request deletion ├─ Checking memberships → loading state ├─ Membership check fails → retry ├─ Organisation memberships found → leave all organisations first └─ No memberships → shared email confirmation ``` Use `TextConfirmModal` for email validation and the shared copy control. | Before | After | | --- | --- | | <img width="1098" height="576" alt="Image" src="https://github.com/user-attachments/assets/01371989-b913-4b31-ac28-5da29447cf77" /> | <img width="838" height="436" alt="Image" src="https://github.com/user-attachments/assets/b3a2dc4d-eba0-4d2e-a698-f3c9fa14312f" /> | | <img width="876" height="674" alt="Image" src="https://github.com/user-attachments/assets/002c5e0e-b081-40ff-aeba-1bb7a24d18d1" /> | <img width="854" height="630" alt="Image" src="https://github.com/user-attachments/assets/806a9e17-753f-4d8d-8100-ce037b84a8ff" /> | ## Review instructions 1. In Preferences, select **Request deletion**. With organisation memberships, confirm the dialog says **Leave all organizations first**. Without memberships, check that the dialog shows your email and the placeholder **Type your email address in here**. When the copy control is enabled, select the email and check that it copies the address. Submit a different email to check the inline validation. [Open Preferences](https://studio-staging-git-dnywh-fix-account-deletion-copy-supabase.vercel.app/dashboard/account/me) 2. With the copy control enabled, verify that copying the email leaves the form open and keeps the input unchanged.