From 42470f099a5f7913221df3ec2ba0bc58345d1907 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 14 Sep 2025 20:56:01 -0400 Subject: [PATCH] show account migration info / controls in admin-user --- locales/index.d.ts | 40 +++++++++++ packages/frontend/src/pages/admin-user.vue | 78 ++++++++++++++++++---- sharkey-locales/en-US.yml | 11 +++ 3 files changed, 117 insertions(+), 12 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 21fb11211d..212272cd38 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -13633,6 +13633,46 @@ export interface Locale extends ILocale { * Enable all write/edit permissions */ "enableAllWrite": string; + /** + * New account + */ + "newAccount": string; + /** + * Previous accounts + */ + "previousAccounts": string; + /** + * Previous account IDs: + */ + "previousAccountIds": string; + /** + * Previous account URIs: + */ + "previousAccountUris": string; + /** + * Note: this list is provided by the user and is not verified. + */ + "previousAccountsNotVerified": string; + /** + * Migrated at + */ + "accountMovedAt": string; + /** + * Migrated to + */ + "accountMovedTo": string; + /** + * Restart account migration + */ + "restartMigration": string; + /** + * Account migration was last attempted on {date}. If the migration failed or was incomplete, then you may click this button to restart the process. + */ + "restartMigrationDescription": ParameterizedString<"date">; + /** + * Are you sure you want to restart this account migration? + */ + "restartMigrationConfirm": string; } declare const locales: { [lang: string]: Locale; diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue index e22d5ab9cd..84412aa90c 100644 --- a/packages/frontend/src/pages/admin-user.vue +++ b/packages/frontend/src/pages/admin-user.vue @@ -8,6 +8,8 @@ SPDX-License-Identifier: AGPL-3.0-only
+ +
@@ -104,6 +106,44 @@ SPDX-License-Identifier: AGPL-3.0-only
+ + + + + + + +
+ + + + + + + + +
+ {{ i18n.ts.restartMigrationDescription }} + {{ i18n.ts.restartMigration }} +
+
+
+ + + + +
    +
  • + + +
  • +
+
+
+ @@ -116,17 +156,15 @@ SPDX-License-Identifier: AGPL-3.0-only -
-
- - - - - - - - -
+
+ + + + + + + +
@@ -279,7 +317,7 @@ SPDX-License-Identifier: AGPL-3.0-only