Skip to content
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

MNTOR-3902 - Design changes to monthly report emails #5530

Merged
merged 16 commits into from
Jan 28, 2025
Merged

Conversation

codemist
Copy link
Collaborator

@codemist codemist commented Jan 23, 2025

References:

Jira: MNTOR-3902
Figma: https://www.figma.com/design/Z7pfHXJTSG5Szm3UrkYsVx/Emails-v2.0?node-id=1086-21087&t=wfCPYxaRZjomm7mv-0

Description

Adds UI updates to the Monthly free activity email.
Storybook previews don't seem to be working, due to the React upgrade (thread can be found here)

To test locally, remove .edge from the import { renderToStaticMarkup } from "react-dom/server.edge" import line in StorybookEmailRenderer.tsx to be able to see the story previews.

Screenshot (if applicable)

image
image

Not applicable.

How to test

Checklist (Definition of Done)

  • Localization strings (if needed) have been added.
  • Commits in this PR are minimal and have descriptive commit messages.
  • I've added or updated the relevant sections in readme and/or code comments
  • I've added a unit test to test for potential regressions of this bug.
  • If this PR implements a feature flag or experimentation, I've checked that it still works with the flag both on, and with the flag off.
  • If this PR implements a feature flag or experimentation, the Ship Behind Feature Flag status in Jira has been set
  • Product Owner accepted the User Story (demo of functionality completed) or waived the privilege.
  • All acceptance criteria are met.
  • Jira ticket has been updated (if needed) to match changes made during the development process.
  • Jira ticket has been updated (if needed) with suggestions for QA when this PR is deployed to stage.

Copy link

@codemist codemist marked this pull request as ready for review January 27, 2025 14:03
@codemist codemist requested a review from flodolo as a code owner January 27, 2025 14:03
@codemist codemist requested review from flozia and Vinnl and removed request for flodolo January 27, 2025 14:05
@@ -9,7 +9,7 @@ import { ReactNode } from "react";
// to avoid this error:
// > Uncaught ReferenceError: MessageChannel is not defined
// See https://github.com/facebook/react/issues/31827#issuecomment-2563094822
import { renderToStaticMarkup } from "react-dom/server.edge";
import { renderToStaticMarkup } from "react-dom/server";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Question: Was this supposed to be changed back to import { renderToStaticMarkup } from "react-dom/server.edge";?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

No, it should be .edge, I just removed it to be able to test on storybook.

@codemist codemist merged commit b3ab9fb into main Jan 28, 2025
16 checks passed
@codemist codemist deleted the mntor-3902 branch January 28, 2025 15:23
Copy link

Cleanup completed - database 'blurts-server-pr-5530' destroyed, cloud run service 'blurts-server-pr-5530' destroyed

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