Skip to content

Conversation

@dschom
Copy link
Contributor

@dschom dschom commented Oct 25, 2025

Waiting on #19601

Because

  • We want to be able to render emails outside of the auth-server context

This pull request

  • Ports email rendering to libs/accounts/email-renderer from auth-server
  • Setups storybook viewing on lib

Issue that this pull request solves

Closes: FXA-12578

Checklist

Put an x in the boxes that apply

  • My commit is GPG signed.
  • If applicable, I have modified or added tests which pass locally.
  • I have added necessary documentation (if appropriate).
  • I have verified that my changes render correctly in RTL (if appropriate).

Screenshots (Optional)

Please attach the screenshots of the changes made in case of change in user interface.

Other information (Optional)

The tests for these email templates were a bit hairy and need to be re-written. This will happen in a follow up. For now, I've manually checked each storybook. See FXA-12579 for more info.

@dschom dschom requested review from a team as code owners October 25, 2025 01:34
@dschom dschom changed the title task(libs/account): Port app errors to libs/accounts/errors task(libs/accounts): Port email rendering code to libs Oct 25, 2025
@dschom dschom marked this pull request as draft October 25, 2025 01:36
Because:
- We will need this for subsequent efforts

This commit:
- Ports `oauth/errors.js` and `errors.js` from auth-server to libs
Because:
- We want need a standalone library that can be used to send emails

This Commit:
- Ports the email sending code from auth-server into libs
@dschom dschom force-pushed the FXA-12578 branch 3 times, most recently from 5e28336 to 1f33174 Compare October 27, 2025 22:54
Because:
- We need a standalone library that can be used to render emails

This Commit:
- Ports the email rendering code from auth-server to libs
- Converts to typescript
- Cleans up code and improves consistency.
@bcolsson
Copy link
Contributor

Noting here just in case that this seems to be adding local folders that should be ignored - including translations from fxa-content-server-l10n

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.

3 participants