From 2d5b9022fde5e9900f6c613cd4630903813d4200 Mon Sep 17 00:00:00 2001 From: EYHN Date: Wed, 28 May 2025 08:19:19 +0000 Subject: [PATCH] feat(core): update migration data notification (#12594) ## Summary by CodeRabbit - **New Features** - Updated the migration notification with a clearer header and description to better guide users through the data migration process. --- .../desktop/pages/workspace/all-page/migration-data.tsx | 4 ++-- packages/frontend/i18n/src/i18n.gen.ts | 8 ++++---- packages/frontend/i18n/src/resources/en.json | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/frontend/core/src/desktop/pages/workspace/all-page/migration-data.tsx b/packages/frontend/core/src/desktop/pages/workspace/all-page/migration-data.tsx index 37c0d1b46..2a00c58f3 100644 --- a/packages/frontend/core/src/desktop/pages/workspace/all-page/migration-data.tsx +++ b/packages/frontend/core/src/desktop/pages/workspace/all-page/migration-data.tsx @@ -48,11 +48,11 @@ export const MigrationAllDocsDataNotification = () => { return (
- {t['com.affine.migration-all-docs-notification.title']()} + {t['com.affine.migration-all-docs-notification.header']()}
- {t['com.affine.migration-all-docs-notification.content']()} + {t['com.affine.migration-all-docs-notification.desc']()}
{error && ( diff --git a/packages/frontend/i18n/src/i18n.gen.ts b/packages/frontend/i18n/src/i18n.gen.ts index de25d55ae..e1543bdee 100644 --- a/packages/frontend/i18n/src/i18n.gen.ts +++ b/packages/frontend/i18n/src/i18n.gen.ts @@ -8163,13 +8163,13 @@ export function useAFFiNEI18N(): { */ ["com.affine.recording.stop"](): string; /** - * `All docs data needs to be migrated in order to fully utilize its features.` + * `Migrate Data to Enhance User Experience` */ - ["com.affine.migration-all-docs-notification.title"](): string; + ["com.affine.migration-all-docs-notification.header"](): string; /** - * `We upgraded the data format, requiring local data migration to utilize features. Created by and Updated by info is now stored locally. Without the update, you will see the actual status. Perform the upgrade under better network conditions.` + * `We are updating the local data to facilitate the recording and filtering of created by and Last edited by information. Please click the “Migrate Data” button and ensure a stable network connection during the process.` */ - ["com.affine.migration-all-docs-notification.content"](): string; + ["com.affine.migration-all-docs-notification.desc"](): string; /** * `Migration failed: {{errorMessage}}` */ diff --git a/packages/frontend/i18n/src/resources/en.json b/packages/frontend/i18n/src/resources/en.json index 844e8b626..18ff77036 100644 --- a/packages/frontend/i18n/src/resources/en.json +++ b/packages/frontend/i18n/src/resources/en.json @@ -2047,8 +2047,8 @@ "com.affine.recording.start": "Start", "com.affine.recording.dismiss": "Dismiss", "com.affine.recording.stop": "Stop", - "com.affine.migration-all-docs-notification.title": "All docs data needs to be migrated in order to fully utilize its features.", - "com.affine.migration-all-docs-notification.content": "We upgraded the data format, requiring local data migration to utilize features. Created by and Updated by info is now stored locally. Without the update, you will see the actual status. Perform the upgrade under better network conditions.", + "com.affine.migration-all-docs-notification.header": "Migrate Data to Enhance User Experience", + "com.affine.migration-all-docs-notification.desc": "We are updating the local data to facilitate the recording and filtering of created by and Last edited by information. Please click the “Migrate Data” button and ensure a stable network connection during the process.", "com.affine.migration-all-docs-notification.error": "Migration failed: {{errorMessage}}", "com.affine.migration-all-docs-notification.button": "Migrate data", "error.INTERNAL_SERVER_ERROR": "An internal error occurred.",