Skip to content

[PM-35300] fix emails do not match figma#7609

Merged
JaredScar merged 10 commits into
mainfrom
ac/pm-35300-fix-emails-do-not-match-figma
May 14, 2026
Merged

[PM-35300] fix emails do not match figma#7609
JaredScar merged 10 commits into
mainfrom
ac/pm-35300-fix-emails-do-not-match-figma

Conversation

@JaredScar
Copy link
Copy Markdown
Contributor

🎟️ Tracking

https://bitwarden.atlassian.net/browse/PM-35300

📔 Objective

Fixes rest of email changes to match figmas that I originally missed because figma was zoomed in... 😬

📸 Screenshots

Reset 2FA and MP
image

Reset 2FA
image

Reset MP
image

JaredScar added 7 commits May 5, 2026 14:13
…e message

- Updated Handlebars and MJML templates for the admin reset password email to improve clarity and user instructions.
- Enhanced the text version to provide step-by-step recovery instructions.
- Modified the email service to reflect the organization name in the email subject line.
… to the model for improved context and user experience.
…idance

- Updated text and Handlebars templates to improve messaging around account recovery steps.
- Adjusted links to direct users appropriately based on password reset status.
…overy link logic

- Modified Handlebars and MJML templates to adjust the recovery link based on the two-factor reset status.
- Ensured consistency in messaging across HTML and text versions of the email.
@JaredScar JaredScar requested review from a team as code owners May 11, 2026 16:18
@JaredScar JaredScar requested a review from coroiu May 11, 2026 16:18
@JaredScar JaredScar added the ai-review Request a Claude code review label May 11, 2026
@JaredScar JaredScar requested a review from eliykat May 11, 2026 16:18
Copy link
Copy Markdown
Member

@eliykat eliykat left a comment

Choose a reason for hiding this comment

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

Please fix conflicts and then re-request reviews.

Can you provide more info about what you've changed after #7592?

coroiu
coroiu previously approved these changes May 12, 2026
Copy link
Copy Markdown
Contributor

@coroiu coroiu left a comment

Choose a reason for hiding this comment

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

Changes are fine by me, but yeah, re-request when conflicts are fixed

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2026

🤖 Bitwarden Claude Code Review

Overall Assessment: APPROVE

This PR updates the admin account-recovery email templates (MJML source, compiled HTML, and plain-text) to align all three reset scenarios with Figma: the two-step-login-only headline is reworded, a conditional "Log in to Bitwarden" step is inserted when only 2FA is reset, and the "Recover your account" button deep-links to /settings/security/two-factor when two-step login was reset. The follow-up commit also switches the bolded {{UserName}} token in HandlebarsMailService.SendAdminResetPasswordEmailAsync to use the user's email directly so the rendered output matches the Figma. Conditional branches render consistent copy across MJML, HTML, and text, and the ordered-list numbering is correct in all three scenarios. Reviewer confirmed in-thread that the conditional button URLs render as expected.

No findings.

@codecov
Copy link
Copy Markdown

codecov Bot commented May 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 59.82%. Comparing base (291ddfd) to head (ef5e85a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7609      +/-   ##
==========================================
- Coverage   59.82%   59.82%   -0.01%     
==========================================
  Files        2119     2119              
  Lines       93354    93354              
  Branches     8282     8282              
==========================================
- Hits        55849    55845       -4     
- Misses      35522    35527       +5     
+ Partials     1983     1982       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@JaredScar JaredScar requested review from coroiu and eliykat May 12, 2026 17:47
@JaredScar
Copy link
Copy Markdown
Contributor Author

Please fix conflicts and then re-request reviews.

Can you provide more info about what you've changed after #7592?

Apologies! Yes, I needed to make this PR because my initial PR did not cover all the emails... I had saw the linked Figma only showing 1 email to change, but didn't realize there were 2 others within the Figma via zooming out. This PR accounts for those missed email figmas. Sorry about that

JimmyVo16
JimmyVo16 previously approved these changes May 12, 2026
Copy link
Copy Markdown
Contributor

@JimmyVo16 JimmyVo16 left a comment

Choose a reason for hiding this comment

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

The code looks good.

As a sanity check, can you just make sure the link was generated correctly since it’s in a conditional?

@JaredScar
Copy link
Copy Markdown
Contributor Author

The code looks good.

As a sanity check, can you just make sure the link was generated correctly since it’s in a conditional?

Clarified in Jimmy's DMs, but just for visibility here too! The URLs can be seen in the bottom of screenshots for where the button actually has a valid reroute that is different from just a login URL

image

@eliykat eliykat removed their request for review May 13, 2026 04:04
Copy link
Copy Markdown
Member

@eliykat eliykat left a comment

Choose a reason for hiding this comment

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

Removing my review as @JimmyVo16 has it handled

coroiu
coroiu previously approved these changes May 13, 2026
@JaredScar JaredScar dismissed stale reviews from coroiu and JimmyVo16 via ef5e85a May 13, 2026 17:55
@sonarqubecloud
Copy link
Copy Markdown

@JaredScar
Copy link
Copy Markdown
Contributor Author

Regarding the email in the emails. The originally screenshots I posted include just the username prefix with no @email.com at the end. The figmas say email.com. I spoke to Jillian via Slack asking about this. She confirmed we should show the @email.com suffix too, so I have resolved that.

image

@JaredScar JaredScar requested review from JimmyVo16 and coroiu May 13, 2026 18:20
Copy link
Copy Markdown
Contributor

@dereknance dereknance left a comment

Choose a reason for hiding this comment

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

Platform changes look good.

@JaredScar JaredScar merged commit dd4acb6 into main May 14, 2026
45 checks passed
@JaredScar JaredScar deleted the ac/pm-35300-fix-emails-do-not-match-figma branch May 14, 2026 15:32
@djsmith85 djsmith85 added the t:bugfix Change Type - Bugfix label May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ai-review Request a Claude code review t:bugfix Change Type - Bugfix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants