Skip to content

LG 11479 enter backup code page title#9688

Merged
kevinsmaster5 merged 5 commits intomainfrom
kmas-lg-11479-enter-backup-code-page-title
Dec 1, 2023
Merged

LG 11479 enter backup code page title#9688
kevinsmaster5 merged 5 commits intomainfrom
kmas-lg-11479-enter-backup-code-page-title

Conversation

@kevinsmaster5
Copy link
Contributor

🎫 Ticket

LG-11479

🛠 Summary of changes

Post-merge follow up to #9678
Updating page title accordingly to sync with change to form label.

📜 Testing Plan

  • Sign in to account on http://localhost:3000/ with Backup codes as MFA method
  • Observe that the page title reads 'Enter the secure one-time backup code'

@kevinsmaster5 kevinsmaster5 changed the title Kmas lg 11479 enter backup code page title LG 11479 enter backup code page title Dec 1, 2023
@@ -1,4 +1,4 @@
<% self.title = t('titles.enter_2fa_code.security_code') %>
<% self.title = t('titles.enter_2fa_code.backup_code') %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we can just reuse the same string as the heading and avoid duplicating it?

Suggested change
<% self.title = t('titles.enter_2fa_code.backup_code') %>
<% self.title = t('two_factor_authentication.backup_code_header_text') %>

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True. I was thinking it had to be set from a titles: etc: etc: key but this way is is less of an overall code change.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I could see an argument that it's nice to have all our titles in titles:, but I think this scenario has highlighted that it has a tendency to fall out of sync, and I think generally there shouldn't be many situations where the title is different from the main page H1.

Copy link
Contributor

@aduth aduth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@@ -1,4 +1,4 @@
<% self.title = t('titles.enter_2fa_code.security_code') %>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was surprised this string isn't flagged as unused, but it looks like we use it for personal keys and TOTP in at least one place.

@kevinsmaster5 kevinsmaster5 merged commit ff7f0c7 into main Dec 1, 2023
@kevinsmaster5 kevinsmaster5 deleted the kmas-lg-11479-enter-backup-code-page-title branch December 1, 2023 18:04
@solipet solipet mentioned this pull request Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants