Skip to content

Latest Videos Playlist: sorting, search, length filter and pages - #53505

Merged
heydemoura merged 3 commits into
trunkfrom
add/videopress-latest-videos-browse
Oct 16, 2026
Merged

heydemoura merged 3 commits into
trunkfrom
add/videopress-latest-videos-browse

Conversation

@heydemoura

@heydemoura heydemoura commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

  • New attributes: orderBy ( newest / oldest / popular ), showBrowseControls ( search, Latest / Popular / Oldest, length filter and a result line, as a GET form ), pagination ( numbered ), excludeCurrent ( for Up next on a video page ) and showMeta ( "12K views · 3 days ago" on each entry ).
  • The editor shows the server render when any of these is set.

Part 6 of 11 of a stacked series

The VideoPress channel theme support is split so each change can be reviewed, tested and deployed on its own. Each PR is based on the previous one; merge them in order.

  1. VideoPress Channel: only open a video page for a video uploaded to this site #53501 — VideoPress Channel: only open a video page for a video uploaded to this site ( merged )
  2. Video Playlist: keep channel video links in the same tab and mark the video being viewed #53502 — Video Playlist: keep channel video links in the same tab and mark the video being viewed ( merged )
  3. VideoPress Channel: add the data layer for the channel blocks #53503 — VideoPress Channel: add the data layer for the channel blocks ( merged )
  4. VideoPress: let the playlist blocks show a site playlist and sort by last update #53657 — VideoPress: let the playlist blocks show a site playlist and sort by last update
  5. VideoPress Channel: a page per playlist #53504 — VideoPress Channel: a page per playlist
    → 6. Latest Videos Playlist: sorting, search, length filter and pages #53505 — Latest Videos Playlist: sorting, search, length filter and pages
  6. VideoPress: add a Channel Details block #53506 — VideoPress: add a Channel Details block
  7. VideoPress: add a Video Details block and let the video block play the newest upload #53507 — VideoPress: add a Video Details block and let the video block play the newest upload
  8. VideoPress: add a Playlist Details block #53508 — VideoPress: add a Playlist Details block
  9. VideoPress: add an Episode Navigation block #53509 — VideoPress: add an Episode Navigation block
  10. VideoPress Channel blocks: empty states #53510 — VideoPress Channel blocks: empty states

Related product discussion/links

Does this pull request change what data or activity we track or use?

No.

Testing instructions

  • jp test php packages/videopress; pnpm run build.
  • Add a Latest Videos Playlist with browse controls and numbered pages on a site with a few VideoPress uploads; search, sort, filter by length and page through. Filters that match nothing show "No videos match these filters."

🤖 Generated with Claude Code

@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Are you an Automattician? Please test your changes on all WordPress.com environments to help mitigate accidental explosions.

  • To test on WoA, go to the Plugins menu on a WoA dev site. Click on the "Upload" button and follow the upgrade flow to be able to upload, install, and activate the Jetpack Beta plugin. Once the plugin is active, go to Jetpack > Jetpack Beta, select your plugin (Jetpack), and enable the add/videopress-latest-videos-browse branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack add/videopress-latest-videos-browse

Interested in more tips and information?

  • In your local development environment, use the jetpack rsync command to sync your changes to a WoA dev blog.
  • Read more about our development workflow here: PCYsg-eg0-p2
  • Figure out when your changes will be shipped to customers here: PCYsg-eg5-p2

@github-actions github-actions Bot added [Package] VideoPress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] VideoPress A standalone plugin to add high-quality VideoPress videos to your site. [Tests] Includes Tests labels Oct 12, 2026
@github-actions

github-actions Bot commented Oct 12, 2026 •

Copy link
Copy Markdown
Contributor

Thank you for your PR!

When contributing to Jetpack, we have a few suggestions that can help us test and review your patch:

  • ✅ Include a description of your PR changes.
  • ✅ Add a "[Status]" label (In Progress, Needs Review, ...).
  • ✅ Add testing instructions.
  • ✅ Specify whether this PR includes any changes to data or privacy.
  • ✅ Add changelog entries to affected projects

This comment will be updated as you work on your PR and make changes. If you think that some of those checks are not needed for your PR, please explain why you think so. Thanks for cooperation 🤖


Follow this PR Review Process:

  1. Ensure all required checks appearing at the bottom of this PR are passing.
  2. Make sure to test your changes on all platforms that it applies to. You're responsible for the quality of the code you ship.
  3. You can use GitHub's Reviewers functionality to request a review.
  4. When it's reviewed and merged, you will be pinged in Slack to deploy the changes to WordPress.com simple once the build is done.

If you have questions about anything, reach out in #jetpack-developers for guidance!


Jetpack plugin:

No scheduled milestone found for this plugin.

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.


Videopress plugin:

No scheduled milestone found for this plugin.

If you have any questions about the release process, please ask in the #jetpack-releases channel on Slack.

@jp-launch-control

jp-launch-control Bot commented Oct 12, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Coverage changed in 6 files. Only the first 5 are listed here.

File Coverage Δ% Δ Uncovered
projects/packages/videopress/src/class-initializer.php 626/685 (91.39%) 1.69% 1 ❤️‍🩹
projects/packages/videopress/src/client/block-editor/blocks/playlist/source-controls.tsx 26/27 (96.30%) -3.70% 1 ❤️‍🩹
projects/packages/videopress/src/class-channel.php 197/201 (98.01%) 0.14% 0 💚
projects/packages/videopress/src/client/block-editor/blocks/latest-videos-playlist/edit.tsx 28/28 (100.00%) 0.00% 0 💚
projects/packages/videopress/src/client/block-editor/blocks/latest-videos-playlist/fetch-latest-videos.ts 30/30 (100.00%) 0.00% 0 💚

1 file is newly checked for coverage.

File Coverage
projects/packages/videopress/src/client/block-editor/channel/server-preview.tsx 15/15 (100.00%) 💚

Full summary · PHP report · JS report

@heydemoura
heydemoura force-pushed the add/videopress-channel-playlist-pages branch from cc3e244 to 07de5d6 Compare October 15, 2026 11:13
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from 857cfec to ad1670f Compare October 15, 2026 11:13
@heydemoura
heydemoura force-pushed the add/videopress-channel-playlist-pages branch from 07de5d6 to 9f0bc68 Compare October 15, 2026 11:42
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from ad1670f to 854d01b Compare October 15, 2026 11:42
@heydemoura
heydemoura force-pushed the add/videopress-channel-playlist-pages branch from 9f0bc68 to 2a401e2 Compare October 15, 2026 12:24
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from 854d01b to a2ab1c5 Compare October 15, 2026 12:25
@heydemoura
heydemoura force-pushed the add/videopress-channel-playlist-pages branch from 2a401e2 to cfc215d Compare October 15, 2026 13:12
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from a2ab1c5 to 642e94c Compare October 15, 2026 13:13
@heydemoura
heydemoura force-pushed the add/videopress-channel-playlist-pages branch from cfc215d to fbeeb88 Compare October 15, 2026 13:14
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from 642e94c to c87d468 Compare October 15, 2026 13:14
@heydemoura
heydemoura force-pushed the add/videopress-channel-playlist-pages branch 4 times, most recently from 9d463d4 to 67ffe53 Compare October 15, 2026 19:25
Base automatically changed from add/videopress-channel-playlist-pages to trunk October 16, 2026 12:37
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from c87d468 to c9d7862 Compare October 16, 2026 12:57
@heydemoura
heydemoura marked this pull request as ready for review October 16, 2026 13:08
@heydemoura
heydemoura requested a review from a team as a code owner October 16, 2026 13:08
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch 2 times, most recently from a7884ab to 60b4fd5 Compare October 16, 2026 14:12
Heyde Moura and others added 2 commits October 16, 2026 14:33
The Latest Videos Playlist block gains an order ( newest, oldest, most viewed ), search /
sort / length controls read from the page URL, numbered pages, an option to leave out the
video being viewed, and "12K views · 3 days ago" on entries ( also for Video Playlist blocks
that show another playlist ). The editor previews these with the server render.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t meta

Cover the editor's switch to the site's render for settings the canvas
cannot show, the preview's empty and failed states, and the views and
upload time a sourced playlist adds with showMeta.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@heydemoura
heydemoura force-pushed the add/videopress-latest-videos-browse branch from 60b4fd5 to 1444e3f Compare October 16, 2026 17:35
…lid-arguments test

WordPress trunk now hooks wp_random_content_flush_rewrite_rules_for_post() to
wp_after_insert_post with typed parameters, so firing the hook with the
invalid post IDs this test feeds the Sync listener throws a TypeError.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
(cherry picked from commit 9e093ea)
@heydemoura
heydemoura merged commit 5bd5444 into trunk Oct 16, 2026
109 checks passed
@heydemoura
heydemoura deleted the add/videopress-latest-videos-browse branch October 16, 2026 20:05
@github-actions github-actions Bot added [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. and removed [Status] In Progress labels Oct 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Feature] VideoPress A feature to help you upload and insert videos on your site. [Package] VideoPress [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] VideoPress A standalone plugin to add high-quality VideoPress videos to your site. [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant