-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Ac/pm 21742/update confirmed to org email templates #6683
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weโll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Ac/pm 21742/update confirmed to org email templates #6683
Conversation
|
|
Codecov Reportโ
All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #6683 +/- ##
==========================================
- Coverage 53.65% 53.63% -0.02%
==========================================
Files 1926 1926
Lines 85720 85717 -3
Branches 7687 7686 -1
==========================================
- Hits 45989 45978 -11
- Misses 37958 37966 +8
Partials 1773 1773 โ View full report in Codecov by Sentry. ๐ New features to boost your workflow:
|
| headAnchorElement + | ||
| ` | ||
| </mj-text> | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change ensures we only add the text element when the component receives the respective input for the field. The current behavior adds an empty text element when no input is provided, which can impact spacing and style.
This change should not affect existing components, since the behavior remains the same for components that pass in data for that field.
| @@ -1,4 +1,12 @@ | |||
| const { BodyComponent } = require("mjml-core"); | |||
|
|
|||
| const BODY_TEXT_STYLES = ` | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey folks, I got some feedback from Sukhleen that the font spacing doesnโt align with the design. I think this wasnโt caught earlier because the welcome email doesnโt have multi-line text, but the org confirmation email does.
I also noticed that the style from mj-bw-icon-row-text isnโt being applied to the text. I canโt get the styling to apply through the CSS class; it might be related to how MJML renders it.
The workaround is to inject the styling directly.
Iโm open to any suggestions on how to handle this better.
|
Claude finished @JimmyVo16's task โโ View job Review Complete โTodo List
Code Review: Organization Confirmation Email TemplatesOverall Assessment: The templates are well-implemented with proper security considerations. The code is ready to merge once the minor issues below are addressed. โ Security & ComplianceZero-Knowledge Principles: โ Pass
XSS Protection: โ Pass
Sensitive Data Handling: โ Pass
๐ Findings by Severityโน๏ธ Minor Issues1. Identical Text Templates ( Both Recommendation: Consider whether these should have different messaging based on organization type (Enterprise/Teams vs Families/Free), similar to how the HTML versions differ. If they're intentionally the same, this is fine. ๐จ Suggestions for Improvement2. Component Refactoring Quality ( The refactoring to add conditional rendering is well-done: ${this.getAttribute('text') ? `
<mj-text ... font-family="'Open Sans', Helvetica, Arial, sans-serif" ...>
${this.getAttribute('text')}
</mj-text>
` : ''}Observations:
The author's note about inline styling being a workaround due to CSS class application issues is understandable given MJML's rendering behavior. 3. Missing Unit Tests Per Bitwarden's development workflow, new features should include unit tests. Consider adding tests for:
4. Template Wiring PR description states: "There is no code for wiring this up." These templates will remain unused until integrated. Consider:
๐ญ Design Feedback NotesThe author mentioned mobile button sizing doesn't match design and will communicate to product. This is appropriate to handle outside the code review process. โ What Went Well
๐ Additional Notes
Recommendationโ APPROVE - This PR is ready to merge once the team confirms:
|
jrmccannon
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me.
ad6bedd
|
Originally, I was thinking of having a PR for each template, but they share some logic, so itโs easier to roll them into one PR. Sorry for the inconvenience, folks. |


๐๏ธ Tracking
https://bitwarden.atlassian.net/browse/PM-21742
๐ Objective
This is to add the templates for the organization confirmation email.
There is no code for wiring this up.
Enterprise and Teams
Design
Families and Free
Design
๐ธ Screenshots
Enterprise and Teams
Mobile
Families and Free
Mobile
Note: I couldnโt get the mobile version to look like the design, mainly due to the button sizing. Iโll communicate this to product.
โฐ Reminders before review
๐ฆฎ Reviewer guidelines
:+1:) or similar for great changes:memo:) or โน๏ธ (:information_source:) for notes or general info:question:) for questions:thinking:) or ๐ญ (:thought_balloon:) for more open inquiry that's not quite a confirmed issue and could potentially benefit from discussion:art:) for suggestions / improvements:x:) or:warning:) for more significant problems or concerns needing attention:seedling:) or โป๏ธ (:recycle:) for future improvements or indications of technical debt:pick:) for minor or nitpick changes