Skip to content

Conversation

@obenland
Copy link
Member

Proposed changes:

  • Implements infinite scroll functionality for the Social Web feed view
  • Posts automatically load as users scroll to the bottom
  • Infinite scroll is enabled by default but can be toggled off in view settings
  • Data accumulation logic appends new pages instead of replacing them
  • Deduplication prevents duplicate posts across pages
  • Cleans up pagination footer when infinite scroll is enabled

Other information:

  • Have you written new tests for your changes, if applicable? - Not applicable for this UI enhancement

Testing instructions:

  1. Navigate to the Social Web feed section
  2. Verify that pagination controls are hidden by default
  3. Scroll to the bottom of the feed
  4. Observe that the next page of posts automatically loads and appends to the list
  5. Continue scrolling to verify multiple pages load seamlessly
  6. Open the view settings (gear icon) and verify there's an "Enable infinite scroll" toggle
  7. Disable infinite scroll and verify traditional pagination controls appear
  8. Test searching - verify that search results reset to page 1 and infinite scroll works with filtered results

Implements infinite scroll functionality for the feed view, automatically loading more posts as users scroll to the bottom.

Key changes:
- Added data accumulation logic to append pages instead of replacing
- Enabled infinite scroll by default in view configuration
- Added infiniteScrollHandler to trigger next page load
- Implemented deduplication to prevent duplicate posts
- Added styles to clean up empty pagination footer

Based on WordPress DataViews infinite scroll pattern from Gutenberg.
@obenland obenland added the Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary. label Nov 20, 2025
@obenland obenland self-assigned this Nov 20, 2025
@obenland obenland added the Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary. label Nov 20, 2025
@obenland obenland requested a review from a team November 20, 2025 16:28
@github-actions github-actions bot added the [Focus] Editor Changes to the ActivityPub experience in the block editor label Nov 20, 2025
@obenland obenland merged commit 389d881 into add/reader Nov 20, 2025
3 checks passed
@obenland obenland deleted the add/feed-infinite-scroll branch November 20, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Focus] Editor Changes to the ActivityPub experience in the block editor Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants