Skip to content

VideoPress: add a Home tab to the dashboard - #51522

Open
heydemoura wants to merge 1 commit into
add/videopress-library-upload-empty-statefrom
add/videopress-home-tab
Open

heydemoura wants to merge 1 commit into
add/videopress-library-upload-empty-statefrom
add/videopress-home-tab

Conversation

@heydemoura

Copy link
Copy Markdown
Contributor

Proposed changes

Part 3 of 4 splitting #51481 (welcome modal → Library upload empty state → this PR → follow-up fixes). Based on add/videopress-library-upload-empty-state.

  • Add a Home tab: recent videos (thumbnail opens the video), per-video view counts fed by the stats top-videos list, an upload header action, and an emptied-library dropzone that hands files to the Library's onboarding flow.
  • Home joins the tab strip only once the user has videos — on first run the Library's upload empty state is the page, so the strip stays Library-led. The strip's order freezes per mount so the first successful upload can't re-order it under the cursor.
  • Publishing from the flow and deleting the last video now land on Home.

Related product discussion/links

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

No.

Testing instructions

  • Build with jetpack build plugins/jetpack --deps, use a Jetpack-connected site with at least one VideoPress video.
  • Jetpack → VideoPress: the tab strip shows Home / Library / Analytics / Settings. Home lists recent videos with view counts; clicking a thumbnail opens the video details.
  • On a site with no videos, Home is absent from the strip and the Library leads.
  • Delete every video from the Library, then visit Home: it leads with the upload dropzone; dropping a file lands in the Library's onboarding flow mid-upload.
  • jetpack test js packages/videopress — all suites pass.

@heydemoura
heydemoura requested a review from a team as a code owner August 24, 2026 20:45
@heydemoura heydemoura added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review This PR is ready for review. labels Aug 24, 2026
@heydemoura heydemoura self-assigned this Aug 24, 2026
@heydemoura heydemoura added Enhancement Changes to an existing feature — removing, adding, or changing parts of it [Status] Needs Review This PR is ready for review. labels Aug 24, 2026
@github-actions

github-actions Bot commented Aug 24, 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-home-tab branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack add/videopress-home-tab

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

github-actions Bot commented Aug 24, 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:

The Jetpack plugin has different release cadences depending on the platform:

  • WordPress.com Simple releases happen as soon as you deploy your changes after merging this PR (PCYsg-Jjm-p2).
  • WoA releases happen weekly.
  • Releases to self-hosted sites happen monthly:
    • Scheduled release: September 7, 2026

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 Aug 24, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

Cannot generate coverage summary while tests are failing. 🤐

Please fix the tests, or re-run the Code coverage job if it was something being flaky.

Full summary · PHP report · JS report

@heydemoura
heydemoura force-pushed the add/videopress-library-upload-empty-state branch from 8e507df to 5bbd921 Compare August 28, 2026 13:55
@heydemoura
heydemoura force-pushed the add/videopress-library-upload-empty-state branch from 5bbd921 to fa31d3a Compare August 28, 2026 14:02
@heydemoura
heydemoura force-pushed the add/videopress-home-tab branch from 6c15624 to ba48b68 Compare August 28, 2026 14:04
@heydemoura
heydemoura force-pushed the add/videopress-library-upload-empty-state branch from fa31d3a to 87f89be Compare August 28, 2026 17:20
@heydemoura
heydemoura force-pushed the add/videopress-home-tab branch from ba48b68 to a9bc70a Compare August 28, 2026 17:21
@heydemoura
heydemoura force-pushed the add/videopress-library-upload-empty-state branch from 87f89be to cff91c7 Compare August 28, 2026 17:53
@heydemoura
heydemoura force-pushed the add/videopress-home-tab branch from a9bc70a to b3587a7 Compare August 28, 2026 17:53
@heydemoura
heydemoura force-pushed the add/videopress-library-upload-empty-state branch from b7bac8d to d448a16 Compare September 1, 2026 16:43
Home greets returning users with their recent videos, view counts and
quick actions, and joins the tab strip only once there is something to
come back to — on first run the Library's upload empty state is the
page, so the strip stays Library-led. The strip's order freezes per
mount so the first successful upload can't re-order it mid-flow, and
publishing or deleting a last video now lands on Home.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@heydemoura
heydemoura force-pushed the add/videopress-home-tab branch from b3587a7 to c38fb0f Compare September 1, 2026 16:46
@@ -0,0 +1,269 @@
import { useGlobalNotices } from '@automattic/jetpack-components/global-notices';
import { Tooltip } from '@wordpress/components';

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi! You can use Tooltip from the @wordpress/ui package instead. It's a more modern version of the same component.

Please also rebase onto the latest trunk; you'll see the new linter rule complain about using the old component until you update. If you must use this older component, you can include it in the linter exclusion list for now. Just lemme know!

@simison

simison commented Oct 19, 2026

Copy link
Copy Markdown
Member

Lemme know if the PR is still valid or if you'll drop it; I can help review the component usage with latest design system features. I see quite a lot of improvements to be made but don't want to spend time commenting if you'll drop the PR anyway. Cheers!

This branch has not been deployed

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

Labels

Enhancement Changes to an existing feature — removing, adding, or changing parts of it [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] Needs Review This PR is ready for review. [Tests] Includes Tests

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants