codeforboston / codeforboston/maple

Legislator Profile - Admin Notifications for Review

Offen
#2,139 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
backend Ready for Development
Vorherrschende Sprache
TypeScript
Sterne
56
Forks
175
Ø Merge
2 T. 5 Std.
Gemergte PRs (30 T.)
13

Beschreibung

## 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
- [ ] Whenever a new `LEGISLATOR` account signs up for MAPLE (and is put in `PENDING_LEGISLATOR` status), send an email to the MAPLE admins (at `admin@mapletestimony.org`)
- This would be a good fit for a new V2 firebase function listening for profile updates - let's keep this out of the user-facing account creation flow
- We already use Sendgrid and have the `firestore-send-email` extension configured - you can send emails simply by adding a document to our `emails` firestore collection
- A simple text-based email is fine - only MAPLE admins will see this and all of the real action here will live in the Admin app
- The `to` address should be configurable via environment variable - defaulting to `admin@mapletestimony.org` only on PROD (ideally, we should not drown that address with test/dev environment emails to avoid fatigue)

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Beginne mit den V2 Firebase function entry points und dem Profilaktualisierungspfad, der den Status PENDING_LEGISLATOR zuweist. Überprüfe, wie die firestore-send-email extension die emails collection nutzt und wie Umgebungsvariablen konfiguriert werden. Als erledigt gilt, dass eine neue qualifizierende Anmeldung eine Text-E-Mail für die konfigurierte Admin-Adresse erstellt und dabei der Produktionsstandard sowie ein sicheres Test-/Dev-Verhalten abgedeckt sind.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
firebase, typescript
Bereich
backend, cloud
Issue-Typ
Feature
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Ruhig
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
68/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.