From c83fa9fcd32fb9f8214dfcb9c8d14fe831b83af5 Mon Sep 17 00:00:00 2001 From: Hazelnoot Date: Sun, 14 Sep 2025 22:38:11 -0400 Subject: [PATCH] various improvements to admin-user migrations UI --- locales/index.d.ts | 26 ++++------ packages/frontend/src/pages/admin-user.vue | 58 +++++++++++----------- sharkey-locales/en-US.yml | 12 ++--- 3 files changed, 44 insertions(+), 52 deletions(-) diff --git a/locales/index.d.ts b/locales/index.d.ts index 3513ec7e4b..8aa409ca60 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -13642,35 +13642,27 @@ export interface Locale extends ILocale { */ "newAccount": string; /** - * Previous accounts + * Also known as */ - "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; + "alsoKnownAs": string; /** * Migrated at */ - "accountMovedAt": string; + "accountMigratedAt": string; /** * Migrated to */ - "accountMovedTo": string; + "accountMigratedTo": string; + /** + * Migration URI + */ + "accountMigrationUri": 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. + * Account migration was last attempted {date}. If the migration failed or was incomplete, then you may click this button to restart the process. */ "restartMigrationDescription": ParameterizedString<"date">; /** diff --git a/packages/frontend/src/pages/admin-user.vue b/packages/frontend/src/pages/admin-user.vue index d8ba8e67bc..16569f5237 100644 --- a/packages/frontend/src/pages/admin-user.vue +++ b/packages/frontend/src/pages/admin-user.vue @@ -110,38 +110,39 @@ SPDX-License-Identifier: AGPL-3.0-only - - +
+ + -
- - - - - - - - -
- {{ i18n.ts.restartMigrationDescription }} - {{ i18n.ts.restartMigration }} +
+ + + + + + + + + + + +
-
- + - - + + -
    -
  • - - -
  • -
-
+
    +
  • +
    + + ({{ aka.uri }}) +
    +
  • +
+
+
@@ -188,6 +189,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.updateRemoteUser }} {{ i18n.ts.resetPassword }} + {{ i18n.ts.restartMigration }} {{ i18n.ts.unsetUserAvatar }} {{ i18n.ts.unsetUserBanner }} {{ i18n.ts.deleteAllFiles }} diff --git a/sharkey-locales/en-US.yml b/sharkey-locales/en-US.yml index c2ea32e34c..0a378aa4a1 100644 --- a/sharkey-locales/en-US.yml +++ b/sharkey-locales/en-US.yml @@ -724,12 +724,10 @@ enableAllRead: "Enable all read-only permissions" enableAllWrite: "Enable all write/edit permissions" newAccount: "New account" -previousAccounts: "Previous accounts" -previousAccountIds: "Previous account IDs:" -previousAccountUris: "Previous account URIs:" -previousAccountsNotVerified: "Note: this list is provided by the user and is not verified." -accountMovedAt: "Migrated at" -accountMovedTo: "Migrated to" +alsoKnownAs: "Also known as" +accountMigratedAt: "Migrated at" +accountMigratedTo: "Migrated to" +accountMigrationUri: "Migration URI" restartMigration: "Restart account migration" -restartMigrationDescription: "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: "Account migration was last attempted {date}. If the migration failed or was incomplete, then you may click this button to restart the process." restartMigrationConfirm: "Are you sure you want to restart this account migration?"