mealie
mealie copied to clipboard
[v1.0.0b] [Task] - Group Based Event Notifications
What is the problem this task addresses?
Currently, notifications are based around the administrator views. This doesn't provide much utility for individual groups. The notifications section should be migrated to a group based implementation.
Proposed/Possible Solution(s)?
To Complete This Task
- [x] Update Database Entries to have a relationship to a group.
- [x] Create a new card/page for managing notifications in the frontend.
- [x] Ensure that server events that are dispatched only call handlers that are registered for the group.
Update:
See Comments 👇
Most of the backend/frontend work is complete for adding a notifier via an apprise URL. However, the event dispatcher isn't setup to make calls for all the events, here are all the possible events with what has not been done.
Recipe Events
- [x] Create
- [x] Update
- [x] Delete
User Events
- [x] When a new user joins your group #1999
Mealplan Events
- [x] When a user in your group creates a new mealplan #1999
Shopping List Events
- [x] Create
- [x] Update
- [x] Delete
Cookbook Events
- [x] Create
- [x] Update
- [x] Delete
Tag Events
- [x] Create
- [x] Update
- [x] Delete
Category Events
- [x] Create
- [x] Update
- [x] Delete
Would it be possible to use this to send a daily notification on what the meal plan is for that day? Eg - at 9am, send a message notifying what dinner is that night?
Hey guys, love your work! <3 Unfortunately I am not vertised enough to just make it a pull request so here my question: Could you may add the event for <CommentCreated> as well?