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

feat(server): new email template #9528

Open
wants to merge 11 commits into
base: darksky/add-more-email-notification
Choose a base branch
from

Conversation

darkskygit
Copy link
Member

@darkskygit darkskygit commented Jan 6, 2025

use yarn af server dev:mail to preview all mail template
fix CLOUD-93

Copy link
Member Author

darkskygit commented Jan 6, 2025

Warning

This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
Learn more


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

import SignUp, { type SignUpProps } from './sign-up';

export const renderInviteEmail = (props: InviteProps): Promise<string> => {
return render(<Invite {...props} />);
Copy link
Member

Choose a reason for hiding this comment

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

cool

@darkskygit darkskygit force-pushed the darksky/add-more-email-notification branch from c6db235 to d653599 Compare January 7, 2025 02:44
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch from f704d82 to a6acfba Compare January 7, 2025 02:44
@darkskygit darkskygit force-pushed the darksky/add-more-email-notification branch from d653599 to cf394b2 Compare January 7, 2025 06:21
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch from a6acfba to cb96048 Compare January 7, 2025 06:21
@darkskygit darkskygit force-pushed the darksky/add-more-email-notification branch from cf394b2 to babe511 Compare January 7, 2025 09:08
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch from cb96048 to cb293da Compare January 7, 2025 09:08
buttonContent: 'Accept & Join',
buttonUrl,
});
async sendSignUpMail(to: string, url: string) {
Copy link
Member

Choose a reason for hiding this comment

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

we can integrate mailer with event system, so we can decouple it from business services

Copy link
Member Author

Choose a reason for hiding this comment

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

sounds good

Copy link
Member Author

@darkskygit darkskygit Jan 7, 2025

Choose a reason for hiding this comment

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

the sending results of some mails need to be returne to the frontend for success/failure notifications
so not all mailer dep in bussiness modules can be remove until the notification system is completed

@darkskygit darkskygit force-pushed the darksky/add-more-email-notification branch from babe511 to 4c113aa Compare January 7, 2025 11:31
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch from cb293da to 22e3138 Compare January 7, 2025 11:31
Copy link
Member

@Brooooooklyn Brooooooklyn left a comment

Choose a reason for hiding this comment

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

Need snapshot tests for rendered html string

@github-actions github-actions bot added the test Related to test cases label Jan 8, 2025
@darkskygit darkskygit force-pushed the darksky/add-more-email-notification branch from 4c113aa to c015731 Compare January 8, 2025 03:45
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch from 0d19b34 to f8929e5 Compare January 8, 2025 03:45
@darkskygit darkskygit force-pushed the darksky/add-more-email-notification branch from c015731 to 9658d8c Compare January 8, 2025 09:10
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch 2 times, most recently from 1fbb7cb to ea4facb Compare January 8, 2025 09:15
@darkskygit darkskygit force-pushed the darksky/react-based-email-template branch from ea4facb to 8fc6b93 Compare January 8, 2025 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app:server test Related to test cases
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants