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

News Notifications #357

Open
Naviary2 opened this issue Dec 3, 2024 · 0 comments
Open

News Notifications #357

Naviary2 opened this issue Dec 3, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Naviary2
Copy link
Member

Naviary2 commented Dec 3, 2024

A red circle with a number in it, next to the News hyperlink, tells you how many new news posts you haven't read yet!

Benefit: People wouldn't have to feel like they have to regularly check the News page to see if there has been any updates.

Overview of how to add:

  1. Create a column in the members table that stores the date of the latest news post you read. The default value will be the date of the latest news post.

  2. Add code on the server-side when you request the News page, to update the latest read news post for the user that requested the page!

  3. Add an API route on the server that will tell you how many news posts you haven't read, based off of the date of the last news post you read.

  4. Add a new script to the multi-page header code that, upon page load, uses that API route above to ask the server how many news posts we haven't read.

  5. Take that number and create the red circle element that renders in the document next to the News hyperlink.

  6. When we click the news page when we see it has notifications, each unread news post also has a red bubble at the top that says "NEW".

@Naviary2 Naviary2 added the enhancement New feature or request label Dec 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant