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

Emails: add email-verification-reminder and missed-reveal templates #160

Merged
merged 10 commits into from
May 14, 2020

Conversation

sohkai
Copy link
Contributor

@sohkai sohkai commented May 13, 2020

Adds email-verification-reminder and missed-reveal templates as slight text variations of email-verification and missed-vote.

@sohkai sohkai requested review from bpierre and promaty May 13, 2020 20:53
@sohkai sohkai changed the title Emails: add configuration options to email-verification and missed-action templates Emails: add email-verification-reminder and missed-reveal templates May 13, 2020
@sohkai sohkai changed the title Emails: add email-verification-reminder and missed-reveal templates Emails: add email-verification-reminder and missed-reveal templates May 13, 2020
Comment on lines +39 to +42
This service is provided by Aragon One AG [2]. You are receiving this
email because you are subscribed to Aragon Court Email Notifications. You
can contact us at [email protected] if you not longer wish to receive
these.
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess we could add some helper functions for these parts to avoid repetition in every template

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes... maybe. The [2] part is a bit annoying here to extract this as a helper.

@promaty promaty self-assigned this May 14, 2020
@promaty promaty merged commit 63612c0 into emails May 14, 2020
@promaty promaty deleted the add-missing-emails branch May 14, 2020 18:42
promaty added a commit that referenced this pull request May 14, 2020
* moved emails from court-dashboard repo

* Emails: add `email-verification-reminder` and `missed-reveal` templates (#160)

* Emails: add missed-reveal template

* Emails: update email verification template to be have more template parameters

* Emails: update missed-vote to missed-action with additional templating

* Revert "Emails: update missed-vote to missed-action with additional templating"

This reverts commit 64f84f1.

* Revert "Emails: update email verification template to be have more template parameters"

This reverts commit ce13ea2.

* Emails: add email-verification-reminder template

* email-verification typo

* text changes to verification reminder

* changed wording to emailPreferencesUrl

* Added subject line required for email sync #161

Co-authored-by: Martynas Prokopas <[email protected]>

* Emails: automatic sync (#161)

* added sync:templates and sync:assets

* added ci/cd

* updated README

* Apply suggestions from code review

Co-authored-by: Brett Sun <[email protected]>

* updated readme

* minor fixes

* Update emails/package.json

Co-authored-by: Brett Sun <[email protected]>

* changed to only sync on mainnet

* Apply suggestions from code review

Co-authored-by: Facu Spagnuolo <[email protected]>

* added staging postmark server for development

* ci/cd test

* test2

* reverted after test

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>
facuspagnuolo added a commit that referenced this pull request May 25, 2020
* moved emails from court-dashboard repo

* Emails: add `email-verification-reminder` and `missed-reveal` templates (#160)

* Emails: add missed-reveal template

* Emails: update email verification template to be have more template parameters

* Emails: update missed-vote to missed-action with additional templating

* Revert "Emails: update missed-vote to missed-action with additional templating"

This reverts commit 64f84f1.

* Revert "Emails: update email verification template to be have more template parameters"

This reverts commit ce13ea2.

* Emails: add email-verification-reminder template

* email-verification typo

* text changes to verification reminder

* changed wording to emailPreferencesUrl

* Added subject line required for email sync #161

Co-authored-by: Martynas Prokopas <[email protected]>

* Emails: automatic sync (#161)

* added sync:templates and sync:assets

* added ci/cd

* updated README

* Apply suggestions from code review

Co-authored-by: Brett Sun <[email protected]>

* updated readme

* minor fixes

* Update emails/package.json

Co-authored-by: Brett Sun <[email protected]>

* changed to only sync on mainnet

* Apply suggestions from code review

Co-authored-by: Facu Spagnuolo <[email protected]>

* added staging postmark server for development

* ci/cd test

* test2

* reverted after test

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>
promaty added a commit that referenced this pull request Jun 2, 2020
* notifications scaffolding

* typo

* added not nullabel

* added last notification date check

* added notification types table

* split into notification scanner and sender

* notification service prototype

* renamed test-server to test since we are testing services as well

* changed test folder

* added email template for subscription reminder

* Emails: moved emails from court-dashboard repo (#159)

* moved emails from court-dashboard repo

* Emails: add `email-verification-reminder` and `missed-reveal` templates (#160)

* Emails: add missed-reveal template

* Emails: update email verification template to be have more template parameters

* Emails: update missed-vote to missed-action with additional templating

* Revert "Emails: update missed-vote to missed-action with additional templating"

This reverts commit 64f84f1.

* Revert "Emails: update email verification template to be have more template parameters"

This reverts commit ce13ea2.

* Emails: add email-verification-reminder template

* email-verification typo

* text changes to verification reminder

* changed wording to emailPreferencesUrl

* Added subject line required for email sync #161

Co-authored-by: Martynas Prokopas <[email protected]>

* Emails: automatic sync (#161)

* added sync:templates and sync:assets

* added ci/cd

* updated README

* Apply suggestions from code review

Co-authored-by: Brett Sun <[email protected]>

* updated readme

* minor fixes

* Update emails/package.json

Co-authored-by: Brett Sun <[email protected]>

* changed to only sync on mainnet

* Apply suggestions from code review

Co-authored-by: Facu Spagnuolo <[email protected]>

* added staging postmark server for development

* ci/cd test

* test2

* reverted after test

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>

* Emails: missing template subject fix

* Apply suggestions from code review

Co-authored-by: Facu Spagnuolo <[email protected]>

* minor suggested fixes

* added scan check

* abstracted scanner check

* renamed scanner checkUser to shouldNotifyUser

* added some user abstractions

* typo typo typo

* added more reliable test script

* improved test errors

* minor test fixes

* switched to logger error instead of throw

* removed $ from objection methods

* removed query() from some base methods

* moved logs before cors

* added JurorDrafted

* tidying up test file

* removed subscription reminder for anj registrations

* send verification token for anj registrations

* added reminder email instructions

* Services: notifications service - subscription reminder (#155)

* notifications scaffolding

* typo

* added not nullabel

* added last notification date check

* added notification types table

* split into notification scanner and sender

* notification service prototype

* renamed test-server to test since we are testing services as well

* changed test folder

* added email template for subscription reminder

* Apply suggestions from code review

Co-authored-by: Facu Spagnuolo <[email protected]>

* minor suggested fixes

* added scan check

* abstracted scanner check

* renamed scanner checkUser to shouldNotifyUser

* added some user abstractions

* typo typo typo

* added more reliable test script

* improved test errors

* minor test fixes

* switched to logger error instead of throw

* removed $ from objection methods

* removed query() from some base methods

* moved logs before cors

* tidying up test file

* removed subscription reminder for anj registrations

* send verification token for anj registrations

* added reminder email instructions

Co-authored-by: Facu Spagnuolo <[email protected]>

* fixed dispute URL

* renamed mock-utils to helpers

* Notifications service: remaining first batch (#169)

* added DueTasks

* added AppealsOpened

* added DisputeRuled

* added MissedVote MissedReveal

* edited missed vote/reveal email links

* parameterized lockedAnjBalanceUrl

* added final ruling word

* simplified outcomes word

* updated due tasks mock time format

* lowercased am/pm

* minor fix missed vote/reveal

* minor fix missed vote

* Shared: Add court wrapper config getter (#170)

* shared: add court wrapper config getter

* Shared: Rename court config getter

* cli: fix config setter command

* updated DisputeRuled with ruledAt field

* changed adjudiationRound time checks to termId

* shared: add court start time getter

* removed logger padding for longer worker names

* fixed due date with data from the blockchain

* added bn casting

* Notifications service: Notify unverified anj registrations (#171)

* added notify-new-anj-registrations

* minor template fixes

* added ethereum instruction

* added notifications setings link in the footer

* removed trim

* typo

* changed anj function name

* minor script fixes and comments

Co-authored-by: Facu Spagnuolo <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>

Co-authored-by: Brett Sun <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>
Co-authored-by: Facu Spagnuolo <[email protected]>
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