Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to subscribe to updates #22

Open
Battlesquid opened this issue Jun 18, 2024 · 0 comments
Open

Add ability to subscribe to updates #22

Battlesquid opened this issue Jun 18, 2024 · 0 comments
Labels
webapp Things related to the web app

Comments

@Battlesquid
Copy link
Member

Battlesquid commented Jun 18, 2024

With the ongoing efforts to transform the webapp into a PWA (#11), it would be good to think about how to leverage the additional features PWAs offer, one being push notifications. Some things they could be used for include:

  • Allowing users to subscribe to updates, specifically, be notified when questions from certain authors are answered, which would especially be useful for users who ask questions on the Q&A.
  • Notifying users when new questions are asked
  • Notifying users when the Q&A is opened/closed (depends on Add cron job for checking when a new Q&A forum is open #6)

Implementing this would most likely leverage Supabase Realtime. This is already used by the bot to detect when questions are answered, but additional logic would be required for the latter two use cases.

The added benefit of implementing this is being able to frequently update the questions store in the webapp's indexeddb instance with smaller batches of data. This may completely eliminate the current method of updating indexeddb, which is refreshed every 6 hours.

@Battlesquid Battlesquid added the webapp Things related to the web app label Jun 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webapp Things related to the web app
Projects
None yet
Development

No branches or pull requests

1 participant