Skip to content

Commit a95c98c

Browse files
brunol95claude
andcommitted
refactor(ui): reuse AlternativeMethods for the breached-password reverification screens
Drop the copied UVPasswordPwnedMethods card. AlternativeMethods now takes a mode prop ('default' | 'pwned' | 'passwordCompromised'), as in SignIn, and the shared reset-password strings move to userVerification.resetPasswordAlternativeMethods. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent 8c1f178 commit a95c98c

62 files changed

Lines changed: 507 additions & 425 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎packages/localizations/src/ar-SA.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1640,8 +1640,6 @@ export const arSA: LocalizationResource = {
16401640
title: undefined,
16411641
},
16421642
passwordPwned: {
1643-
blockButton__resetPassword: undefined,
1644-
label__alternativeMethods: undefined,
16451643
subtitle__saveNewPassword: undefined,
16461644
title: undefined,
16471645
},
@@ -1661,6 +1659,10 @@ export const arSA: LocalizationResource = {
16611659
formButtonPrimary: undefined,
16621660
title: undefined,
16631661
},
1662+
resetPasswordAlternativeMethods: {
1663+
blockButton__resetPassword: undefined,
1664+
label__alternativeMethods: undefined,
1665+
},
16641666
resetPasswordCode: {
16651667
formTitle: undefined,
16661668
resendButton: undefined,

‎packages/localizations/src/be-BY.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1647,8 +1647,6 @@ export const beBY: LocalizationResource = {
16471647
title: undefined,
16481648
},
16491649
passwordPwned: {
1650-
blockButton__resetPassword: undefined,
1651-
label__alternativeMethods: undefined,
16521650
subtitle__saveNewPassword: undefined,
16531651
title: undefined,
16541652
},
@@ -1668,6 +1666,10 @@ export const beBY: LocalizationResource = {
16681666
formButtonPrimary: undefined,
16691667
title: undefined,
16701668
},
1669+
resetPasswordAlternativeMethods: {
1670+
blockButton__resetPassword: undefined,
1671+
label__alternativeMethods: undefined,
1672+
},
16711673
resetPasswordCode: {
16721674
formTitle: undefined,
16731675
resendButton: undefined,

‎packages/localizations/src/bg-BG.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1644,8 +1644,6 @@ export const bgBG: LocalizationResource = {
16441644
title: undefined,
16451645
},
16461646
passwordPwned: {
1647-
blockButton__resetPassword: undefined,
1648-
label__alternativeMethods: undefined,
16491647
subtitle__saveNewPassword: undefined,
16501648
title: undefined,
16511649
},
@@ -1665,6 +1663,10 @@ export const bgBG: LocalizationResource = {
16651663
formButtonPrimary: undefined,
16661664
title: undefined,
16671665
},
1666+
resetPasswordAlternativeMethods: {
1667+
blockButton__resetPassword: undefined,
1668+
label__alternativeMethods: undefined,
1669+
},
16681670
resetPasswordCode: {
16691671
formTitle: undefined,
16701672
resendButton: undefined,

‎packages/localizations/src/bn-IN.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,8 +1652,6 @@ export const bnIN: LocalizationResource = {
16521652
title: undefined,
16531653
},
16541654
passwordPwned: {
1655-
blockButton__resetPassword: undefined,
1656-
label__alternativeMethods: undefined,
16571655
subtitle__saveNewPassword: undefined,
16581656
title: undefined,
16591657
},
@@ -1673,6 +1671,10 @@ export const bnIN: LocalizationResource = {
16731671
formButtonPrimary: undefined,
16741672
title: undefined,
16751673
},
1674+
resetPasswordAlternativeMethods: {
1675+
blockButton__resetPassword: undefined,
1676+
label__alternativeMethods: undefined,
1677+
},
16761678
resetPasswordCode: {
16771679
formTitle: undefined,
16781680
resendButton: undefined,

‎packages/localizations/src/ca-ES.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1652,8 +1652,6 @@ export const caES: LocalizationResource = {
16521652
title: undefined,
16531653
},
16541654
passwordPwned: {
1655-
blockButton__resetPassword: undefined,
1656-
label__alternativeMethods: undefined,
16571655
subtitle__saveNewPassword: undefined,
16581656
title: undefined,
16591657
},
@@ -1673,6 +1671,10 @@ export const caES: LocalizationResource = {
16731671
formButtonPrimary: undefined,
16741672
title: undefined,
16751673
},
1674+
resetPasswordAlternativeMethods: {
1675+
blockButton__resetPassword: undefined,
1676+
label__alternativeMethods: undefined,
1677+
},
16761678
resetPasswordCode: {
16771679
formTitle: undefined,
16781680
resendButton: undefined,

‎packages/localizations/src/cs-CZ.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,8 +1650,6 @@ export const csCZ: LocalizationResource = {
16501650
title: undefined,
16511651
},
16521652
passwordPwned: {
1653-
blockButton__resetPassword: undefined,
1654-
label__alternativeMethods: undefined,
16551653
subtitle__saveNewPassword: undefined,
16561654
title: undefined,
16571655
},
@@ -1671,6 +1669,10 @@ export const csCZ: LocalizationResource = {
16711669
formButtonPrimary: undefined,
16721670
title: undefined,
16731671
},
1672+
resetPasswordAlternativeMethods: {
1673+
blockButton__resetPassword: undefined,
1674+
label__alternativeMethods: undefined,
1675+
},
16741676
resetPasswordCode: {
16751677
formTitle: undefined,
16761678
resendButton: undefined,

‎packages/localizations/src/da-DK.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1642,8 +1642,6 @@ export const daDK: LocalizationResource = {
16421642
title: undefined,
16431643
},
16441644
passwordPwned: {
1645-
blockButton__resetPassword: undefined,
1646-
label__alternativeMethods: undefined,
16471645
subtitle__saveNewPassword: undefined,
16481646
title: undefined,
16491647
},
@@ -1663,6 +1661,10 @@ export const daDK: LocalizationResource = {
16631661
formButtonPrimary: undefined,
16641662
title: undefined,
16651663
},
1664+
resetPasswordAlternativeMethods: {
1665+
blockButton__resetPassword: undefined,
1666+
label__alternativeMethods: undefined,
1667+
},
16661668
resetPasswordCode: {
16671669
formTitle: undefined,
16681670
resendButton: undefined,

‎packages/localizations/src/de-DE.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1659,8 +1659,6 @@ export const deDE: LocalizationResource = {
16591659
title: undefined,
16601660
},
16611661
passwordPwned: {
1662-
blockButton__resetPassword: undefined,
1663-
label__alternativeMethods: undefined,
16641662
subtitle__saveNewPassword: undefined,
16651663
title: undefined,
16661664
},
@@ -1680,6 +1678,10 @@ export const deDE: LocalizationResource = {
16801678
formButtonPrimary: undefined,
16811679
title: undefined,
16821680
},
1681+
resetPasswordAlternativeMethods: {
1682+
blockButton__resetPassword: undefined,
1683+
label__alternativeMethods: undefined,
1684+
},
16831685
resetPasswordCode: {
16841686
formTitle: undefined,
16851687
resendButton: undefined,

‎packages/localizations/src/el-GR.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1650,8 +1650,6 @@ export const elGR: LocalizationResource = {
16501650
title: undefined,
16511651
},
16521652
passwordPwned: {
1653-
blockButton__resetPassword: undefined,
1654-
label__alternativeMethods: undefined,
16551653
subtitle__saveNewPassword: undefined,
16561654
title: undefined,
16571655
},
@@ -1671,6 +1669,10 @@ export const elGR: LocalizationResource = {
16711669
formButtonPrimary: undefined,
16721670
title: undefined,
16731671
},
1672+
resetPasswordAlternativeMethods: {
1673+
blockButton__resetPassword: undefined,
1674+
label__alternativeMethods: undefined,
1675+
},
16741676
resetPasswordCode: {
16751677
formTitle: undefined,
16761678
resendButton: undefined,

‎packages/localizations/src/en-GB.ts‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1643,8 +1643,6 @@ export const enGB: LocalizationResource = {
16431643
title: undefined,
16441644
},
16451645
passwordPwned: {
1646-
blockButton__resetPassword: undefined,
1647-
label__alternativeMethods: undefined,
16481646
subtitle__saveNewPassword: undefined,
16491647
title: undefined,
16501648
},
@@ -1664,6 +1662,10 @@ export const enGB: LocalizationResource = {
16641662
formButtonPrimary: undefined,
16651663
title: undefined,
16661664
},
1665+
resetPasswordAlternativeMethods: {
1666+
blockButton__resetPassword: undefined,
1667+
label__alternativeMethods: undefined,
1668+
},
16671669
resetPasswordCode: {
16681670
formTitle: undefined,
16691671
resendButton: undefined,

0 commit comments

Comments
 (0)