shopozor / services

Micro-services building up the Shopozor software.
6 stars 0 forks source link

Registered Consumers need to be notified of general news #21

Open zadigus opened 4 years ago

zadigus commented 4 years ago

La Budzonnerie (and, possibly, Softozor) will need to publish news on the frontend application to make Incognito and logged in Consumers aware of them. We should do that with push notifications.

@donnerc is it possible to make that work with users that are not logged in?

First, we implement those notifications with e-mails.

zadigus commented 4 years ago

https://github.com/shopozor/management-frontend/issues/35

zadigus commented 4 years ago

We don't implement newsletters, the news appear in the frontend application directly.

zadigus commented 4 years ago

We reopen this in the context of hasura.

donnerc commented 4 years ago

There is no problem making that kind of system work in Hasura with Incognito users using Hasura LiveQueries (graphql subscriptions + postgres live queries). In principle, it will be enough to create a News table and write a subscription to that table with, say the last N news entries displayed and constantly updated with a subscription. We could also track which logged user has already read which notification. For incognito users, we may use something like cookies or Local Storage to store the already seen News.