HE-Arc / FreeGo2

Application développée pour l’association FreeGo afin de promouvoir leurs réfrigérateurs communautaires.
https://application-freego.ch/
1 stars 0 forks source link

Notification pannel #45

Open Kevin-Laipe opened 3 years ago

Kevin-Laipe commented 3 years ago

It would be better if all notifications from a single fridge were on a single card on the panel.

The delete button should be deleting all instances of that notification on the database.

I see two ways of doing that:

  1. Force the backend to only have one entry in its Notifications table per key fridge/user. But we lose the number of times the fridge has been updated (unless we add another field to the table)
  2. Do some shenanigans in the frontend to display each fridge only once. It would probably mean to rewrite the whole Notifications.Vue component though