feat(core): add account deletion entry to account settings (#12385)

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

- **New Features**
  - Implemented account deletion functionality with confirmation dialogs and success notifications.
  - Added a warning modal for team workspace owners before account deletion.
  - Introduced a new, richly formatted internationalized message for account deletion confirmation.
  - Added a new dialog component to inform users of successful account deletion.
- **Improvements**
  - Updated localization strings to provide detailed guidance and warnings for account deletion.
  - Enhanced error handling by converting errors into user-friendly notifications.
  - Simplified and improved the sign-out process with better error handling and streamlined navigation.
- **Style**
  - Added new style constants for success and warning modals related to account deletion.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
JimmFly
2025-05-27 08:00:44 +00:00
parent 18da2fe4e6
commit 8d3b20ecc7
15 changed files with 372 additions and 89 deletions

View File

@@ -118,7 +118,8 @@ type AuthEvents =
| 'signIn'
| 'signInFail'
| 'signedIn'
| 'signOut';
| 'signOut'
| 'deleteAccount';
type AccountEvents = 'uploadAvatar' | 'removeAvatar' | 'updateUserName';
type PaymentEvents =
| 'viewPlans'
@@ -235,7 +236,14 @@ interface PageEvents extends PageDivision {
$: {
$: {
$: ['createWorkspace', 'checkout'];
auth: ['requestSignIn', 'signIn', 'signedIn', 'signInFail', 'signOut'];
auth: [
'requestSignIn',
'signIn',
'signedIn',
'signInFail',
'signOut',
'deleteAccount',
];
};
sharePanel: {
$: [