This ticket covers adding hooks in our back-end code to create notifications based on common errors or failures. Especially background tasks. Finally, this ticket should also cover adding hooks wherever messages (emails) are created to also create a notification to support future work for optional email or notification or both functionality.
If you want to take this over while I'm off go ahead. There's a few things that need to be completed. Need to finish the service to create notifications. Then need to add a few hooks in the code.
I had this roughly working, but it wasn't clean and then I got into the weeds of storing SSP role. If you want to figure that out, great go ahead, but if not, I can tackle the role part when I get back.
After that in another ticket we'll have to finish out the service to read the notifications per person or role or both and expose them via the controller (already created). Finally, the last item (again another ticket covers this likely) is marking them as read. I didn't implement the read table yet in case we wanted to discuss the necessity versus a field on the recipient table.
Added notifications where errors are being logged.