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

As a user, I want to create an email template #32

Open
serpient opened this issue Oct 18, 2019 · 0 comments
Open

As a user, I want to create an email template #32

serpient opened this issue Oct 18, 2019 · 0 comments
Assignees
Labels
Milestone

Comments

@serpient
Copy link
Collaborator

serpient commented Oct 18, 2019

Given

An existing client

When

The user navigates to the templates page (/templates), they are met with an empty templates page with a message to create a new template.
Screen Shot 2019-10-17 at 7 04 24 PM

Then

They can create a new email template with a rich-text editor

Fields for the user to fill out

  • name required string
  • category, optional string ( initial options align with the workflows, and ability to add a new category)
  • content required string

Additional field that API will need

  • type, required, string (should default to "email" right now)
    image

If the form has errors

Field should tell users when their form response has errors, and not allow them to submit to API until everything is error-free.

Screen Shot 2019-10-17 at 7 02 04 PM

If the submission is successful

  • User should see a success message for 1.5 seconds
  • The page should show the newly created template
    Screen Shot 2019-10-17 at 6 59 33 PM

If submission failed

  • User should see an error banner with the message from API
  • The form content should still be pre-loaded in the form until a successful submission
    Screen Shot 2019-10-17 at 6 59 26 PM

Developer Notes

Take a look how UpdatePackageForm or other existing form components are created currently. You can easily pattern off those components as they have styling already.

I'd like Natasha to be able to have a rich text editor, as her current emails have bold text and indents among other things. You can research a little more but so far Quill.js seems like a good candidate.

@serpient serpient added this to the MVP 1 milestone Oct 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants