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

Implement text email generation utility based on Email templates #60

Closed
niloysikdar opened this issue Jul 6, 2022 · 1 comment · Fixed by #65
Closed

Implement text email generation utility based on Email templates #60

niloysikdar opened this issue Jul 6, 2022 · 1 comment · Fixed by #65
Assignees
Labels
3 3 story points GSoC 2022 Issues and Pull Requests under Google Summer of Code 2022 released

Comments

@niloysikdar
Copy link
Member

niloysikdar commented Jul 6, 2022

Description:

  • We need to generate the plaintext version of the email template from the HTML or React.

Outcome:

  • We need to create the “generateTextEmail” utility function which will do this conversion.

References:

  • This package can help us to implement this method

  • A working POC: link

image

Sample output:

Hello World
![Image] (https://images.unsplash.com/photo-1453728013993-6d66e9c9123a)
Hello World 1
@niloysikdar niloysikdar self-assigned this Jul 6, 2022
@niloysikdar niloysikdar added the GSoC 2022 Issues and Pull Requests under Google Summer of Code 2022 label Jul 6, 2022
@niloysikdar niloysikdar added this to the GSoC 2022 - Sprint D milestone Jul 6, 2022
@niloysikdar niloysikdar added the 3 3 story points label Jul 6, 2022
niloysikdar added a commit that referenced this issue Jul 16, 2022
Add generateTextEmailFromHTML utility function to convert HTML to plaintext

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
niloysikdar added a commit that referenced this issue Jul 16, 2022
Add generateTextEmail utility function to convert JSX Layout to plaintext

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
niloysikdar added a commit that referenced this issue Jul 16, 2022
Add some more missing tests for all of the components for generateTextEmail method

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
niloysikdar added a commit that referenced this issue Jul 18, 2022
Add some more missing tests for all of the components for generateTextEmail method

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
niloysikdar added a commit that referenced this issue Jul 20, 2022
Add some more missing tests for all of the components for generateTextEmail method

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
agentmilindu pushed a commit that referenced this issue Jul 21, 2022
* feat(utils): add generateTextEmailFromHTML

Add generateTextEmailFromHTML utility function to convert HTML to plaintext

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>

* feat(utils): add generateTextEmail

Add generateTextEmail utility function to convert JSX Layout to plaintext

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>

* test(utils): add tests for generateTextEmail

Add some more missing tests for all of the components for generateTextEmail method

Resolves #60

Signed-off-by: Niloy Sikdar <niloysikdar30@gmail.com>
github-actions bot pushed a commit that referenced this issue Jul 21, 2022
# [1.7.0](v1.6.0...v1.7.0) (2022-07-21)

### Features

* **utils:** add text email generation utility methods ([#65](#65)) ([740c089](740c089)), closes [#60](#60) [#60](#60) [#60](#60)
@github-actions
Copy link

🎉 This PR is included in version 1.7.0 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3 3 story points GSoC 2022 Issues and Pull Requests under Google Summer of Code 2022 released
Projects
Status: Released
Development

Successfully merging a pull request may close this issue.

2 participants