1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-14 23:33:31 +00:00

[PM-1802] Update 2fa provider icons and description (#9568)

* Update yubikey to yubico

* Update icons and descriptions

* Change order of 2fa providers

* Refactor 2fa providers into separate component

* Update i18n messages for 2fa providers

* Update design

* Fix link

* Remove unused SVGs

* Undo changes to scss

* Add speedbumps to links

* Fix missing i18n string

* Add a11y tags

* Fix incorrect filepath

* Remove unused i18n strings

* Delete accidentally committed file

* Fix premium and enabled checkmark being in new line

* Rename two-factor-icon selector

* Update authenticator names in two-factor-authenticator setup component

* Update text according to figma design

* Update keys to notify crowdin translators of changed content

* Move svg icons to separate file

* Fix incorrect i18n key
This commit is contained in:
Bernd Schoolmann
2024-06-27 19:14:21 +02:00
committed by GitHub
parent 3c8eeb4420
commit c01f6be286
20 changed files with 728 additions and 102 deletions

View File

@@ -18,7 +18,7 @@ export const TwoFactorProviders: Partial<Record<TwoFactorProviderType, TwoFactor
name: null as string,
description: null as string,
priority: 1,
sort: 1,
sort: 2,
premium: false,
},
[TwoFactorProviderType.Yubikey]: {
@@ -26,7 +26,7 @@ export const TwoFactorProviders: Partial<Record<TwoFactorProviderType, TwoFactor
name: null as string,
description: null as string,
priority: 3,
sort: 2,
sort: 4,
premium: true,
},
[TwoFactorProviderType.Duo]: {
@@ -34,7 +34,7 @@ export const TwoFactorProviders: Partial<Record<TwoFactorProviderType, TwoFactor
name: "Duo",
description: null as string,
priority: 2,
sort: 3,
sort: 5,
premium: true,
},
[TwoFactorProviderType.OrganizationDuo]: {
@@ -42,7 +42,7 @@ export const TwoFactorProviders: Partial<Record<TwoFactorProviderType, TwoFactor
name: "Duo (Organization)",
description: null as string,
priority: 10,
sort: 4,
sort: 6,
premium: false,
},
[TwoFactorProviderType.Email]: {
@@ -50,7 +50,7 @@ export const TwoFactorProviders: Partial<Record<TwoFactorProviderType, TwoFactor
name: null as string,
description: null as string,
priority: 0,
sort: 6,
sort: 1,
premium: false,
},
[TwoFactorProviderType.WebAuthn]: {
@@ -58,7 +58,7 @@ export const TwoFactorProviders: Partial<Record<TwoFactorProviderType, TwoFactor
name: null as string,
description: null as string,
priority: 4,
sort: 5,
sort: 3,
premium: false,
},
};
@@ -97,14 +97,14 @@ export class TwoFactorService implements TwoFactorServiceAbstraction {
init() {
TwoFactorProviders[TwoFactorProviderType.Email].name = this.i18nService.t("emailTitle");
TwoFactorProviders[TwoFactorProviderType.Email].description = this.i18nService.t("emailDesc");
TwoFactorProviders[TwoFactorProviderType.Email].description = this.i18nService.t("emailDescV2");
TwoFactorProviders[TwoFactorProviderType.Authenticator].name =
this.i18nService.t("authenticatorAppTitle");
TwoFactorProviders[TwoFactorProviderType.Authenticator].description =
this.i18nService.t("authenticatorAppDesc");
this.i18nService.t("authenticatorAppDescV2");
TwoFactorProviders[TwoFactorProviderType.Duo].description = this.i18nService.t("duoDesc");
TwoFactorProviders[TwoFactorProviderType.Duo].description = this.i18nService.t("duoDescV2");
TwoFactorProviders[TwoFactorProviderType.OrganizationDuo].name =
"Duo (" + this.i18nService.t("organization") + ")";
@@ -115,7 +115,7 @@ export class TwoFactorService implements TwoFactorServiceAbstraction {
TwoFactorProviders[TwoFactorProviderType.WebAuthn].description =
this.i18nService.t("webAuthnDesc");
TwoFactorProviders[TwoFactorProviderType.Yubikey].name = this.i18nService.t("yubiKeyTitle");
TwoFactorProviders[TwoFactorProviderType.Yubikey].name = this.i18nService.t("yubiKeyTitleV2");
TwoFactorProviders[TwoFactorProviderType.Yubikey].description =
this.i18nService.t("yubiKeyDesc");
}