Skip to content

Commit 1b36fdd

Browse files
committed
fix(sms): Update 'backup recovery phone' strings to 'recovery phone'
Because: * We decided removing 'backup' is clearer for users This commit: * Updates references in our codebase from 'backup recovery phone' to 'recovery phone', adds new FTL strings closes FXA-10949
1 parent a9e4fd3 commit 1b36fdd

8 files changed

Lines changed: 28 additions & 28 deletions

File tree

packages/fxa-settings/src/components/Settings/FlowSetupRecoveryPhoneConfirmCode/en.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@ flow-setup-phone-confirm-code-button = Confirm
1313
# followed by a button to resend a code
1414
flow-setup-phone-confirm-code-expired = Code expired?
1515
flow-setup-phone-confirm-code-resend-code-button = Resend code
16-
flow-setup-phone-confirm-code-success-message = Backup recovery phone added
16+
flow-setup-phone-confirm-code-success-message-v2 = Recovery phone added

packages/fxa-settings/src/components/Settings/FlowSetupRecoveryPhoneConfirmCode/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ export const FlowSetupRecoveryPhoneConfirmCode = ({
6969
await verifyRecoveryCode(code);
7070
alertBar.success(
7171
ftlMsgResolver.getMsg(
72-
'flow-setup-phone-confirm-code-success-message',
73-
'Backup recovery phone added'
72+
'flow-setup-phone-confirm-code-success-message-v2',
73+
'Recovery phone added'
7474
)
7575
);
7676
navigateForward();

packages/fxa-settings/src/components/Settings/FlowSetupRecoveryPhoneSubmitNumber/en.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ flow-setup-phone-submit-number-heading = Verify your phone number
44
# The code is a 6-digit code send by text message/SMS
55
flow-setup-phone-verify-number-instruction = You’ll get a text message from { -brand-mozilla } with a code to verify your number. Don’t share this code with anyone.
66
7-
# The initial rollout of the backup recovery phone is only available to users with US and Canada mobile phone numbers.
7+
# The initial rollout of the recovery phone is only available to users with US and Canada mobile phone numbers.
88
# Voice over Internet Protocol (VoIP), is a technology that uses a broadband Internet connection instead of a regular (or analog) phone line to make calls.
99
# Phone mask services (for example Relay) provide a temporary virtual number to avoid providing a real phone number.
1010
# Both VoIP and phone masks can be unreliable for one-time-passcode (OTP) verification
11-
flow-setup-phone-submit-number-info-message = Backup recovery phone is only available in the United States and Canada. VoIP numbers and phone masks are not recommended.
11+
flow-setup-phone-submit-number-info-message-v2 = Recovery phone is only available in the United States and Canada. VoIP numbers and phone masks are not recommended.
1212
1313
flow-setup-phone-submit-number-legal = By providing your number, you agree to us storing it so we can text you for account verification only. Message and data rates may apply.
1414
# cliking on the button sends a code by text message to the phone number typed in by the user

packages/fxa-settings/src/components/Settings/FlowSetupRecoveryPhoneSubmitNumber/index.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,8 @@ export const FlowSetupRecoveryPhoneSubmitNumber = ({
8080
<FormPhoneNumber
8181
infoBannerContent={{
8282
localizedDescription: ftlMsgResolver.getMsg(
83-
'flow-setup-phone-submit-number-info-message',
84-
'Backup recovery phone is only available in the United States and Canada. VoIP numbers and phone masks are not recommended.'
83+
'flow-setup-phone-submit-number-info-message-v2',
84+
'Recovery phone is only available in the United States and Canada. VoIP numbers and phone masks are not recommended.'
8585
),
8686
}}
8787
localizedCTAText={ftlMsgResolver.getMsg(

packages/fxa-settings/src/components/Settings/SubRow/en.ftl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,21 +15,21 @@ tfa-row-backup-codes-add-cta = Add
1515
# 'This' refers to 'backup authentication codes', used as a recovery method for two-step authentication
1616
tfa-row-backup-codes-description-2 = This is the safest recovery method if you canʼt use your mobile device or authenticator app.
1717
18-
# Backup recovery phone is a recovery method for two-step authentication
18+
# Recovery phone is a recovery method for two-step authentication
1919
# A recovery code can be sent to the user's phone
20-
tfa-row-backup-phone-title = Backup recovery phone
21-
# Shown with an alert icon to indicate that no backup recovery phone is configured
20+
tfa-row-backup-phone-title-v2 = Recovery phone
21+
# Shown with an alert icon to indicate that no recovery phone is configured
2222
tfa-row-backup-phone-not-available = No recovery phone number available
23-
# button to change the configured backup recovery phone
23+
# button to change the configured recovery phone
2424
tfa-row-backup-phone-change-cta = Change
25-
# button to add/configure a backup recovery phone
25+
# button to add/configure a recovery phone
2626
tfa-row-backup-phone-add-cta = Add
27-
# Button to remove a backup recovery phone from the user's account
27+
# Button to remove a recovery phone from the user's account
2828
tfa-row-backup-phone-delete-button = Remove
2929
# Shown in tooltip on delete button or delete icon
30-
tfa-row-backup-phone-delete-title = Remove backup recovery phone
31-
tfa-row-backup-phone-delete-restriction = If you want to remove your backup recovery phone, add backup authentication codes or disable two-step authentication first to avoid getting locked out of your account.
32-
# "this" refers to backup recovery phone
30+
tfa-row-backup-phone-delete-title-v2 = Remove recovery phone
31+
tfa-row-backup-phone-delete-restriction-v2 = If you want to remove your recovery phone, add backup authentication codes or disable two-step authentication first to avoid getting locked out of your account.
32+
# "this" refers to recovery phone
3333
tfa-row-backup-phone-description = This is the easier recovery method if you canʼt use your authenticator app.
3434
# A SIM swap attack is a type of identity theft where an attacker tricks or bribes a mobile carrier
3535
# into transferring a victim's phone number to their own SIM card, enabling access to accounts secured

packages/fxa-settings/src/components/Settings/SubRow/index.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ describe('BackupPhoneSubRow', () => {
111111
renderWithLocalizationProvider(
112112
<BackupPhoneSubRow onCtaClick={jest.fn()} />
113113
);
114-
expect(screen.getByText('Backup recovery phone')).toBeInTheDocument();
114+
expect(screen.getByText('Recovery phone')).toBeInTheDocument();
115115
expect(
116116
screen.getByText('No recovery phone number available')
117117
).toBeInTheDocument();
@@ -126,12 +126,12 @@ describe('BackupPhoneSubRow', () => {
126126

127127
it('renders correctly when phone number is available and delete is not an option', () => {
128128
renderWithLocalizationProvider(<BackupPhoneSubRow {...defaultProps} />);
129-
expect(screen.getByText('Backup recovery phone')).toBeInTheDocument();
129+
expect(screen.getByText('Recovery phone')).toBeInTheDocument();
130130
expect(screen.getByText('••• ••• 1234')).toBeInTheDocument();
131131
expect(screen.getByRole('button', { name: 'Change' })).toBeInTheDocument();
132132
expect(
133133
screen.getByText(
134-
'If you want to remove your backup recovery phone, add backup authentication codes or disable two-step authentication first to avoid getting locked out of your account.'
134+
'If you want to remove your recovery phone, add backup authentication codes or disable two-step authentication first to avoid getting locked out of your account.'
135135
)
136136
).toBeInTheDocument();
137137
expect(screen.getByText(/Learn about SIM swap risk/)).toBeInTheDocument();
@@ -141,7 +141,7 @@ describe('BackupPhoneSubRow', () => {
141141
renderWithLocalizationProvider(
142142
<BackupPhoneSubRow {...defaultProps} onDeleteClick={jest.fn()} />
143143
);
144-
expect(screen.getByText('Backup recovery phone')).toBeInTheDocument();
144+
expect(screen.getByText('Recovery phone')).toBeInTheDocument();
145145
expect(screen.getByText('••• ••• 1234')).toBeInTheDocument();
146146
expect(screen.getByRole('button', { name: 'Change' })).toBeInTheDocument();
147147
const deleteButtons = screen.getAllByTitle(/Remove/);

packages/fxa-settings/src/components/Settings/SubRow/index.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,8 @@ export const BackupPhoneSubRow = ({
250250
: 'account_pref_two_step_auth_phone_add_submit';
251251

252252
const localizedDeleteIconTitle = ftlMsgResolver.getMsg(
253-
'tfa-row-backup-phone-delete-title',
254-
'Remove backup recovery phone'
253+
'tfa-row-backup-phone-delete-title-v2',
254+
'Remove recovery phone'
255255
);
256256

257257
const linkExternalProps = {
@@ -275,14 +275,14 @@ export const BackupPhoneSubRow = ({
275275
// info message should only be shown when a phone number is set and the user can't delete it
276276
// (i.e. when the user has no other recovery method)
277277
localizedInfoMessage: ftlMsgResolver.getMsg(
278-
'tfa-row-backup-phone-delete-restriction',
279-
'If you want to remove your backup recovery phone, add backup authentication codes or disable two-step authentication first to avoid getting locked out of your account.'
278+
'tfa-row-backup-phone-delete-restriction-v2',
279+
'If you want to remove your recovery phone, add backup authentication codes or disable two-step authentication first to avoid getting locked out of your account.'
280280
),
281281
}
282282
: null)}
283283
{...((!hasPhoneNumber || (hasPhoneNumber && onDeleteClick)) && {
284284
// description should not be shown when the user can't delete the phone number (only one message displayed at a time)
285-
// description should only be shown when both backup authentication codes and backup recovery phone
285+
// description should only be shown when both backup authentication codes and recovery phone
286286
// are available recovery methods (description is intended to allow for comparison of the two methods)
287287
localizedDescription: ftlMsgResolver.getMsg(
288288
'tfa-row-backup-phone-description',
@@ -300,8 +300,8 @@ export const BackupPhoneSubRow = ({
300300
linkExternalProps,
301301
}}
302302
localizedRowTitle={ftlMsgResolver.getMsg(
303-
'tfa-row-backup-phone-title',
304-
'Backup recovery phone'
303+
'tfa-row-backup-phone-title-v2',
304+
'Recovery phone'
305305
)}
306306
/>
307307
);

packages/fxa-settings/src/components/Settings/UnitRowTwoStepAuth/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const route = `${SETTINGS_PATH}/two_step_authentication`;
2323
const replaceCodesRoute = `${route}/replace_codes`;
2424

2525
// These props are temporary for storybook purposes
26-
// until backup recovery phone feature is enabled.
26+
// until recovery phone feature is enabled.
2727
type UnitRowTwoStepAuthProps = {
2828
backupPhoneSubRowProps?: BackupPhoneSubRowProps;
2929
};

0 commit comments

Comments
 (0)