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

Add indicator to fresh news posts #793

Merged
merged 3 commits into from
May 12, 2024
Merged

Conversation

SapiensAnatis
Copy link
Owner

Adds an icon and a border around news posts that are new based on
a local storage item that is set by the page indicating when it was last visited.

Also:

  • Move loading of news items from OnInitializedAsync to
    OnAfterRenderAsync. The former is called twice and causes a flicker,
    as well as a wasteful DB query.
  • Remove FocusOnNavigate that focused the title element on each page
  • Some minor refactoring of the cookie logic, from when I thought I
    would use cookies to store the last date

Adds an icon and a border around news posts that are new based on
a local storage item that is set by the page.

Also:
- Move loading of news items from OnInitializedAsync to
  OnAfterRenderAsync. The former is called twice and causes a flicker,
  as well as a wasteful DB query.
- Remove FocusOnNavigate that focused the title element on each page
- Some minor refactoring of the cookie logic, from when I thought I
  would use cookies to store the last date
@SapiensAnatis SapiensAnatis merged commit 1a03757 into main May 12, 2024
7 checks passed
@SapiensAnatis SapiensAnatis deleted the feature/website-notif branch May 12, 2024 23:15
SapiensAnatis added a commit that referenced this pull request Jun 30, 2024
Adds an icon and a border around news posts that are new based on
a local storage item that is set by the page indicating when it was last
visited.

Also:
- Move loading of news items from OnInitializedAsync to
  OnAfterRenderAsync. The former is called twice and causes a flicker,
  as well as a wasteful DB query.
- Remove FocusOnNavigate that focused the title element on each page
- Some minor refactoring of the cookie logic, from when I thought I
  would use cookies to store the last date
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant