Skip to content

fix: Mark read on scroll per-article, not per-time#1716

Closed
jocmp wants to merge 1 commit intomainfrom
jc/change-mark-as-read
Closed

fix: Mark read on scroll per-article, not per-time#1716
jocmp wants to merge 1 commit intomainfrom
jc/change-mark-as-read

Conversation

@jocmp
Copy link
Copy Markdown
Owner

@jocmp jocmp commented Jan 24, 2026

Previously, articles with the same published_at timestamp would all be marked as read together when scrolling past just one of them. Now uses compound (published_at, id) comparisons to mark articles individually.

  • Add secondary sort by id for deterministic ordering
  • Update findArticleIDs queries with compound comparisons
  • Add tests for same-timestamp edge cases

Ref

Previously, articles with the same published_at timestamp
would all be marked as read together when scrolling past
just one of them. Now uses compound (published_at, id)
comparisons to mark articles individually.

- Add secondary sort by id for deterministic ordering
- Update findArticleIDs queries with compound comparisons
- Add tests for same-timestamp edge cases
@jocmp jocmp closed this Feb 13, 2026
@jocmp jocmp deleted the jc/change-mark-as-read branch March 28, 2026 04:24
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