mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
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:
@@ -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: {
|
||||
$: [
|
||||
|
||||
Reference in New Issue
Block a user