Focus: New project alerts
Display a dismissible alert on Focus when a new project is created in the workspace.
NB. The alert is only shown if you didnât create the project. i.e. Show one alert for every project where you havenât already marked it as seen.
Thoughts on DB structure - I donât want to support a general purpose ânotificationsâ system, therefore we can simply populate a many-to-many new_projects table with user_id <-> project_id for all workspace members, and delete each entry when marked seen by the user. This approach has the advantage of automatically cleaning itself up if the project is deleted.
Edit. This feature will also allow us to remove the ânew projectâ email. Hurrah! In general, we want to remove all ânotificationâ style emails and replace them with Focus features.
Steps
-
Backend: Migration/schema/context -
Backend: Remove new project email -
Backend: Route (mark seen) -
Frontend: Display alerts -
Frontend: Close on click