chphoom / aroundtheblock

0 stars 1 forks source link

notifications #82

Closed chphoom closed 1 year ago

chphoom commented 1 year ago

https://material.angular.io/components/menu/overview --> floating list that can appear on click https://material.angular.io/components/badge/overview --> show number of unread notifs

chphoom commented 1 year ago

this will probably require more backend then im ready for tbh

chphoom commented 1 year ago

from chatgpt: Create an observable for the user's posts that emits a new value whenever a new comment is added. You can use Angular's HttpClient to make an HTTP request to the server to retrieve the user's posts, and then use RxJS's interval and concatMap operators to poll the server at a regular interval and emit new posts:

methinks i can just create a notification service in the frontend which checks the countdown (it already uses intervals) and then also do this^^^ i will reference my conversation w chat gpt

notificationService will then inject into the navigation bar, and then do things based on the user (that is, periodically create notifications)

there are two types of notifications:

  1. a current wechallenge ending
  2. new comments

the first is pretty narrow and specific the second is much more common

chphoom commented 1 year ago

what the software dev equivalent of academic weapon? that me rn

chphoom commented 1 year ago

backend implementation done