Summary
As we are introducing a new manual approval workflow in the Legislator Profile signup flow, we want to help our admin users know when there is a new account available for their review (to minimize the window where new legislators can't actually do anything, without requiring our admins to constantly check the admin pages).
To that end, we should just send a simple email notification to admins whenever a new account is created. The total volume of these should be fairly low (there are only so many legislators).
(We will likely eventually also use this for ORG upgrade requests when we re-enable that flow)
Success Criteria
Summary
As we are introducing a new manual approval workflow in the Legislator Profile signup flow, we want to help our admin users know when there is a new account available for their review (to minimize the window where new legislators can't actually do anything, without requiring our admins to constantly check the admin pages).
To that end, we should just send a simple email notification to admins whenever a new account is created. The total volume of these should be fairly low (there are only so many legislators).
(We will likely eventually also use this for
ORGupgrade requests when we re-enable that flow)Success Criteria
LEGISLATORaccount signs up for MAPLE (and is put inPENDING_LEGISLATORstatus), send an email to the MAPLE admins (atadmin@mapletestimony.org)firestore-send-emailextension configured - you can send emails simply by adding a document to ouremailsfirestore collectiontoaddress should be configurable via environment variable - defaulting toadmin@mapletestimony.orgonly on PROD (ideally, we should not drown that address with test/dev environment emails to avoid fatigue)