From 72c51adbb3eac175b8288dc8bded5bcface2a444 Mon Sep 17 00:00:00 2001 From: adilallo <39313955+adilallo@users.noreply.github.com> Date: Mon, 28 Sep 2026 14:50:07 -0600 Subject: [PATCH] Separate account deletion from the routine profile options so it reads as a destructive action. Co-authored-by: Cursor --- .../profile/_components/ProfilePage.view.tsx | 38 +++-- tests/pages/profile.test.tsx | 143 ++++++++++++++++++ 2 files changed, 170 insertions(+), 11 deletions(-) create mode 100644 tests/pages/profile.test.tsx diff --git a/app/(app)/profile/_components/ProfilePage.view.tsx b/app/(app)/profile/_components/ProfilePage.view.tsx index 09f80f2..18cf267 100644 --- a/app/(app)/profile/_components/ProfilePage.view.tsx +++ b/app/(app)/profile/_components/ProfilePage.view.tsx @@ -237,17 +237,8 @@ export function ProfilePageView({ leadingIcon: "mail", showDescription: false, }, - { - id: "delete-account", - title: t("deleteAccount"), - description: "", - onClick: onOpenDeleteAccount, - leadingIcon: "warning", - variant: "danger", - showDescription: false, - }, ]; - }, [t, onSignOut, onOpenDeleteAccount, onOpenEmailChange, onStartNewCustomRule]); + }, [t, onSignOut, onOpenEmailChange, onStartNewCustomRule]); const ruleCardShellClass = "w-full !max-w-full cursor-default !gap-3 !rounded-[12px] shadow-[0_0_48px_rgba(0,0,0,0.1)] lg:!rounded-[24px] lg:shadow-[0_0_24px_rgba(0,0,0,0.1)]"; @@ -408,6 +399,31 @@ export function ProfilePageView({ + +
+

+ {t("deleteAccount")} +

+

+ {t("deleteAccountIntro")} +

+ +
@@ -502,7 +518,7 @@ export function ProfilePageView({