Skip to content

Conversation

@obenland
Copy link
Member

@obenland obenland commented Oct 30, 2025

Screenshot 2025-10-30 at 2 42 03 PM

Fixes the placeholder implementation in the followers stage

Proposed changes:

  • Implement fully functional followers table using WordPress DataViews
  • Add Actor types and interfaces for ActivityPub actors
  • Create reusable field components (avatar, name, webfinger, modified, follow status)
  • Integrate Entity Records for data fetching via useFollowers hook
  • Add follower actions (remove, block, follow back) with REST API integration
  • Implement global SnackbarList for displaying action notifications
  • Add settings context provider for global configuration access
  • Fix useSelect performance issues with proper memoization
  • Add CSS positioning for snackbar notifications

Other information:

  • Have you written new tests for your changes, if applicable?

Testing instructions:

  • Go to 'Social Web → Followers' in WP Admin
  • Verify the followers table displays correctly (if you have followers)
  • Test switching between Table and Grid views using the view selector
  • Test the search functionality by typing in the search box
  • Test sorting by clicking on the "Last seen" column header
  • Test follower actions:
    • Select one or more followers
    • Use the bulk actions menu to Remove or Block followers
    • Verify snackbar notifications appear at bottom-left
  • Test responsive behavior by resizing the browser window

Changelog entry

Skip Changelog

- Add Actor types and interfaces for ActivityPub actors
- Create reusable field components (avatar, name, webfinger, modified, follow status)
- Implement useFollowers hook for fetching follower data with Entity Records
- Add follower actions (remove, block, follow back) with REST API integration
- Integrate WordPress DataViews for table/grid layouts with sorting and search
- Add settings context provider for global configuration access
- Implement global SnackbarList for displaying action notifications
- Fix useSelect performance issues with proper memoization
- Add CSS positioning for snackbar notifications
@obenland obenland added the Skip Changelog Disables the "Changelog Updated" action for PRs where changelog entries are not necessary. label Oct 30, 2025
@obenland obenland self-assigned this Oct 30, 2025
@obenland obenland requested a review from pfefferle October 30, 2025 19:45
@github-actions github-actions bot added [Feature] REST API [Feature] WP Admin [Focus] Editor Changes to the ActivityPub experience in the block editor labels Oct 30, 2025
@obenland
Copy link
Member Author

@pfefferle Please feel free to merge if you don't mind terribly what you're seeing here. No need to wait for me to return.

- Add Actor types and interfaces for ActivityPub actors
- Create reusable field components (avatar, name, webfinger, modified, follow status)
- Implement useFollowers hook for fetching follower data with Entity Records
- Add follower actions (remove, block, follow back) with REST API integration
- Integrate WordPress DataViews for table/grid layouts with sorting and search
- Add settings context provider for global configuration access
- Implement global SnackbarList for displaying action notifications
- Fix useSelect performance issues with proper memoization
- Add CSS positioning for snackbar notifications
- Implement route-based lazy loading for dashboard, followers, following, and interactions stages
- Create custom webpack configuration for proper vendor chunk naming (vendors.js instead of 150.js)
- Move vendor chunk to build/social-web/ directory for better organization
- Include dashboard in main bundle since it's the default route
- Add webpack chunk consolidation to combine stage and inspector components
- Update PHP to properly enqueue vendor bundle with main script dependency
- Reduce main bundle from 213KB to 15KB through code splitting
- Keep performance warnings enabled to monitor bundle sizes

Result: Faster initial load with on-demand route loading, proper vendor caching
@obenland
Copy link
Member Author

obenland commented Nov 6, 2025

@pfefferle Any objections to merging this for now? We can always remove or hide the Route later if we don't want to ship with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] REST API [Feature] WP Admin [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.

2 participants