mealie icon indicating copy to clipboard operation
mealie copied to clipboard

[v1.0.0b] [Task] - Group Based Event Notifications

Open hay-kot opened this issue 3 years ago • 1 comments

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 👇

hay-kot avatar Nov 24 '21 21:11 hay-kot

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

hay-kot avatar Jan 10 '22 05:01 hay-kot

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?

Spalfnaganalf1 avatar Nov 17 '22 03:11 Spalfnaganalf1

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?

hofslu avatar Jun 18 '23 16:06 hofslu