Skip to content

Send Email after Reported Testimony Resolution #1956

@Mephistic

Description

@Mephistic

Problem

After an admin resolves a testimony report, they will either accept the report and delete the reported testimony or reject the report and do nothing to the reported testimony.

To better communicate our decisions to the involved users, we want to send an email notification when the report is resolved. If the report is accepted, we should notify the user who submitted the original testimony that their testimony has been deleted. If the report is rejected, we should notify the user who submitted the report that their report has been rejected.

Success Criteria

  • Add Email template for "Reported Testimony Resolution"
    • We may be able to use a Sendgrid Template here - the firestore-send-email extension we use supports it, and this email will be much simpler from a layout standpoint than the notification emails that we render with custom handlebars templates.
  • The email should support two variants:
    • ACCEPTED
      • The email's to should be the contact email address of the user that submitted the deleted testimony
      • Subject: "Your MAPLE testimony has been removed"
      • The text should be : (COPY TBD - @mvictor55 ) - something like "Your testimony on bill <BILL_ID> has been removed because: <REMOVAL_REASON>"
    • REJECTED
      • The email's to should be the contact email address of the user that submitted the report
      • Subject: "Your testimony report has been rejected"
      • The text should be: (COPY TBD - @mvictor55 ) - something like "Your request to remove testimony <TESTIMONY_LINK> you reported on bill <BILL_ID> has been rejected."
  • These emails should send automatically as part of the "Resolve Testimony" flow in the Admin page

Additional Links

Metadata

Metadata

Assignees

No one assigned

    Labels

    Testimony FlowbackendBackend DevelopmentenhancementNew feature or requestneeds scopeIssues that need estimations/requirements/scoping

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions