my-covid-story / www

We are a group of concerned citizens who could no longer stand by as Ontario is led into a humanitarian crisis. We believe the power of storytelling is an effective means to drive government action.
https://www.mycovidstory.ca
Creative Commons Zero v1.0 Universal
9 stars 5 forks source link

Use riding info, if available, to email a story to the correct MPP #189

Closed davesteinberg closed 3 years ago

davesteinberg commented 3 years ago

This PR implements issue #92, completing the work involving postal code data.

For stories that can be mapped to a riding via postal code FSA (in Ontario only), they will be emailed to the correct MPP, with the default recipients (the Premier, Health Minister, etc.) on CC. A bit of the language in the email is also tweaked as per the template.

If available, the location, riding, and MPP are also shown for each story in the admin console, and hotspot postal codes are indicated by a fire emoji.

vercel[bot] commented 3 years ago

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/my-covid-story/www/83dApm9GWP1Gd5PCRuQGvuhcjkHn
✅ Preview: https://www-git-dspostal-emailer-my-covid-story.vercel.app

davesteinberg commented 3 years ago

Whoops, I accidentally included a file that I was using to test something out. Removing it and force-pushing...

silent1mezzo commented 3 years ago

📝Changed routes:

/_admin
Screenshot of /_admin
(view full size)

And 1 other route:

Commit b4ac6d5fe9f4849fd510f66ce3d9cddeef9e68d9 (https://www-r8jqoa75u-my-covid-story.vercel.app).