Implementing Notifications in Simple Discussion Gem

January 1, 1 · 158 words · One minute · notifications circuitverse

🎯 GOAL

Adding Notification Events to Simple Discussion

Adding two new notification events:

  1. Notifying Admins on a new thread post
  2. Notifications to users that have subscribed to the thread

New Thread notification:

This sends notification to all moderators about a new thread, so that they can respond to the query asap.

For example in the following

  • for all admin users, moderators so that they can resolve the query asap.
  • eg: ref, both the admin user receive notification when user1 posted a new thread.

admin-thread

meow-thread

Forum Comment notification:

  • for all the users that have subscribed to the thread.
  • eg: Users that have subscribed to a conversation receive notifications below… conversation

convo

Notifications

b

a

1

Redirects

  1. Comment notification redirects to the comment

after-redirect

  1. Thread notification redirects to the thread

Future Scope

To add a central notification preference (new_thread_notification )for all users (not just admin users) to receive notification on a new thread… default false …. In customise event notification PR

Code can be found here