Skip to content

Conversation

@olorin99
Copy link
Contributor

@olorin99 olorin99 commented May 6, 2025

This PR adds options to mark posts read on scroll. It also adds some logic to handle cases when multiple pages of read posts are encountered. When fetching a new page in the feed, if the page is empty due to all the posts being filtered out or read then it will try to read another page. If this page is also empty then it will treat it as reaching the end of recent posts and notify the user they have "caught up" on recent posts and ask if they want to try loading older posts. This is likely to only happen on less busy feeds such as in magazine feeds or the subscribed microblog feed.

2025-05-06T22:45:53,204122223+10:00

Handle cases where entire pages in feed are either filtered out or read.
Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While testing, I enabled the two new settings and went back to the feed and waited for a second (expecting to see the posts on screen to be marked as read), but nothing happened. I also tried scrolling down slowly to see if that would do something, but it did not.

Am I misinterpreting what this setting does? Or am I doing something wrong?

I'll do a more thorough review once I can get it working.

@olorin99
Copy link
Contributor Author

olorin99 commented May 7, 2025

Posts are marked as read when they are scrolled up and offscreen. There was a bug where posts weren't marked as read when scrolling with the scroll wheel on desktop but that should be fixed now.

@olorin99 olorin99 requested a review from jwr1 May 7, 2025 02:07
@olorin99 olorin99 requested a review from jwr1 May 9, 2025 00:41
Copy link
Member

@jwr1 jwr1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, it looks great!

@jwr1 jwr1 merged commit 3dec6b1 into main May 9, 2025
2 checks passed
@jwr1 jwr1 deleted the posts_read_scroll branch May 9, 2025 01:38
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.

3 participants