amelioro / ameliorate

A tool for analyzing debatable problems effectively, collaboratively, and with an open mind.
https://ameliorate.app
MIT License
26 stars 10 forks source link

Add in-app notifications for comments #433

Closed keyserj closed 5 months ago

keyserj commented 5 months ago

Describe your issue

TBD

Solution you'd like

No response

Alternatives you've considered

No response

Additional context

No response

Technical ideas and questions

No response

keyserj commented 5 months ago

related to #238

keyserj commented 5 months ago

Design thoughts:

UX

Red is "need to have", blue is "nice to have". I'm leaning towards including Watches/Subscriptions right away (at least the structure, potentially the UX could be future), and read/unread as a future thing.

(if no watches/subscriptions right away, notifications would always be sent to the topic's creator and thread participants, with everyone given the option to turn off all Ameliorate emails).

User Drawer

image

/notifications Page

image

Email Notification (similar to GitHub's)

image

In-Topic UX

image

Technical Flow Pseudocode

API create comment route

Event "commentCreated" handler (synchronous, just separated for organization)

Schemas

UserConfig Schema

UserNotification Schema

Watch Schema

Subscription Schema

Questions