agnai icon indicating copy to clipboard operation
agnai copied to clipboard

Notifications

Open acidbubbles opened this issue 3 years ago • 1 comments

Notifications:

  • MongoDB collection with index of notifications
  • Mark as read keeps it in the UI but deletes from the backend
  • Max 100 notifications (hardcoded)
  • We still need to find a place for the bell icon, to move somewhere before merging (<NotificationsIcon />)
  • Uses websockets
  • Implemented for Invite Accepted, Invite Refused (sender) and Removed From Chat (participant).
  • I left a Ping button to test the notifications easily, to remove before merging.
  • I refactored the invites, a lot of the logic was in the db class

image

image

It's technically ready for review, we just need to decide on a place for the bell icon and remove the temporary Ping button.

acidbubbles avatar Apr 21 '23 20:04 acidbubbles

image

Now showing sent invites too.

acidbubbles avatar Apr 23 '23 01:04 acidbubbles