Skip to content

VideoPress: let the playlist blocks show a site playlist and sort by last update - #53657

Merged
heydemoura merged 4 commits into
trunkfrom
update/videopress-playlist-blocks-for-channels
Oct 15, 2026
Merged

heydemoura merged 4 commits into
trunkfrom
update/videopress-playlist-blocks-for-channels

Conversation

@heydemoura

@heydemoura heydemoura commented Oct 15, 2026 •

Copy link
Copy Markdown
Contributor

Proposed changes

  • Video Playlist block: new source attribute — the block's own videos ( default, unchanged ) or index, a playlist published on the site, with sourcePlaylistId picked from a dropdown in the editor ( empty = the most recently updated playlist ). The videos, title and description come from the playlist index when the block renders on a channel site. In the editor, the block previews that playlist's videos with its own display settings, as the site renders them. The playlist index skips blocks that show another playlist, so they never become playlists of their own.
  • All Playlists block: new updated order ( "Recently updated" ) and showUpdated option, which adds "Updated 2 weeks ago · 1 hr 12 min" under each card.
  • Channel_Blocks hands the editor the site's playlists ( key, title and videos ) for the picker and the canvas preview through an inline script, so the WordPress.com Simple editor gets them too; it is registered from the package and from Jetpack's WordPress.com block loader.

These are additions to blocks that already exist; the defaults keep current markup as it is. The page per playlist that builds on them is #53504.

Part 4 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
  4. VideoPress Channel: a page per playlist #53504 — VideoPress Channel: a page per playlist
  5. 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

  • VIDP-416 ( VideoPress channels platform project )

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

No.

Testing instructions

  • jp test php packages/videopress; pnpm run build in the package.
  • On a site with the channel feature enabled, publish two posts, each with a titled Video Playlist block.
  • In another post or template, add a Video Playlist block and set Source → Videos to "A playlist on this site". The canvas previews the most recently updated playlist; pick another one in the dropdown and the preview switches to its videos ( titles and posters load live ). Layout, player and style settings apply to the preview. A playlist that was unpublished, or a site without playlists, shows a placeholder saying so. On the front end the block shows that playlist's videos, title and description.
  • Confirm the post holding the sourced block does not appear as an extra playlist in the All Playlists block.
  • All Playlists: set Order to "Recently updated" — the playlist whose post was edited last comes first. Turn on "Last update and length" — each card shows "Updated … · ".
  • An existing Video Playlist or All Playlists block renders exactly as before.

🤖 Generated with Claude Code

…update

The Video Playlist block gets a `source`: its own videos ( default ), or a
playlist published on the site, picked in the editor ( the most recently
updated when none is picked ). The playlist index skips blocks that show
another playlist. The All Playlists block gets an `updated` order and a
`showUpdated` option ( "Updated 2 weeks ago · 1 hr 12 min" ).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 15, 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 update/videopress-playlist-blocks-for-channels branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack update/videopress-playlist-blocks-for-channels

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 15, 2026
@github-actions

github-actions Bot commented Oct 15, 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 15, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

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

File Coverage Δ% Δ Uncovered
projects/plugins/jetpack/extensions/extended-blocks/videopress-video/videopress-video.php 12/30 (40.00%) -2.86% 2 ❤️‍🩹
projects/packages/videopress/src/class-initializer.php 502/560 (89.64%) -0.16% 1 ❤️‍🩹
projects/packages/videopress/src/class-all-playlists-block.php 328/331 (99.09%) 0.06% 0 💚
projects/packages/videopress/src/class-channel.php 146/150 (97.33%) 1.37% 0 💚
projects/packages/videopress/src/class-playlist-index.php 110/113 (97.35%) 0.07% 0 💚

3 files are newly checked for coverage.

File Coverage
projects/packages/videopress/src/class-channel-blocks.php 28/28 (100.00%) 💚
projects/packages/videopress/src/client/block-editor/blocks/playlist/source-controls.tsx 24/24 (100.00%) 💚
projects/packages/videopress/src/client/block-editor/channel/editor-controls.tsx 12/12 (100.00%) 💚

Full summary · PHP report · JS report

@heydemoura
heydemoura marked this pull request as ready for review October 15, 2026 11:31
@heydemoura
heydemoura requested a review from a team as a code owner October 15, 2026 11:31
Heyde Moura and others added 2 commits October 15, 2026 08:38
Channel_Blocks registers no blocks yet, so it drops the empty block loop
( Phan: PhanEmptyForeach ) until the first channel block brings it in. Tests
cover the `updated` order and `showUpdated` meta of the All Playlists block,
the playlist record lookups and the `index` source, the editor data wiring,
and the editor's source panel, playlist picker and All Playlists toggle.

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

A Video Playlist block that shows a playlist from the site rendered a
placeholder in the editor. It now previews that playlist's videos, the
picked one or the most recently updated, with the block's own display
settings, the same way the site renders it. The editor data now carries
each playlist's videos; the placeholder stays for a playlist without
videos, one that is no longer published, or a site without playlists.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@heydemoura
heydemoura force-pushed the update/videopress-playlist-blocks-for-channels branch from 9751702 to b8f5ac4 Compare October 15, 2026 12:20
The block's `source` was resolved by a filter that only the channel feature
hooked, so on a site without a channel theme a block showing a playlist from
the site rendered nothing on the published post. The filter is now hooked
wherever the Video Playlist block is registered.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@heydemoura
heydemoura force-pushed the update/videopress-playlist-blocks-for-channels branch from ff0c36e to e6c39d0 Compare October 15, 2026 13:14
@heydemoura
heydemoura merged commit 4f62713 into trunk Oct 15, 2026
101 of 102 checks passed
@heydemoura
heydemoura deleted the update/videopress-playlist-blocks-for-channels branch October 15, 2026 13:57
@github-actions github-actions Bot added the [Status] UI Changes Add this to PRs that change the UI so documentation can be updated. label Oct 15, 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