Skip to content

Premium Analytics: Fix leaderboard column headers not lining up with row text - #54193

Merged
chihsuan merged 2 commits into
change/charts-307-leaderboard-label-insetfrom
change/charts-307-leaderboard-text-inset
Oct 29, 2026
Merged

chihsuan merged 2 commits into
change/charts-307-leaderboard-label-insetfrom
change/charts-307-leaderboard-text-inset

Conversation

@chihsuan

@chihsuan chihsuan commented Oct 28, 2026 •

Copy link
Copy Markdown
Member

Fixes CHARTS-307

Proposed changes

Fix the column header above leaderboard widgets (Pages, Views) not lining up with the row text. In most widgets (Top posts & pages, Clicks, Referrers, Tags & categories) the row text started 4px past the header in every language.

  • The header reads the chart's label inset instead of restating the chart's padding.
  • Premium Analytics sets that inset to the rows' 12px from the design prototype (Premium Analytics: unify the shared leaderboard row height, radius, and hover #51595), so the header moves to the rows and no row moves.
  • The widgets' own rows, the Tags & categories drill-in list and the video Embeds list read the same inset, so one value keeps them in step.

Related product discussion/links

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

No.

Testing instructions

Setup: run Storybook from this branch (pnpm run storybook in projects/packages/premium-analytics).

Widget rows

  1. Open Widgets / TopPosts › Default. Confirm PAGES starts at the same edge as Hello World Post and the rows below it.
  2. In devtools, add dir="rtl" to <html> in the story frame. Confirm they still line up.
  3. Open Widgets / VideoDetailEmbeds › Default. Confirm the embed links look the same as on trunk.

On a site (optional)

  1. On a site with Stats data, open the Stats dashboard with the admin language set to English, then to Arabic or Hebrew.
  2. In Top posts & pages, confirm the header and the row titles start at the same edge in both languages.
  3. In Tags & categories, open a grouped row. Confirm its members list looks the same as on trunk.

Screenshots

Top posts in left-to-right. Before: Hello World Post starts 4px past PAGES. After: aligned. The rows, bar and row height do not change.

Before After
Before: Top posts header 4px off the row title After: Top posts header aligned with the row title

@github-actions

github-actions Bot commented Oct 28, 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 change/charts-307-leaderboard-text-inset branch.
  • To test on Simple, run the following command on your sandbox:
bin/jetpack-downloader test jetpack change/charts-307-leaderboard-text-inset

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] Premium Analytics [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Premium Analytics labels Oct 28, 2026
@github-actions

github-actions Bot commented Oct 28, 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.


Premium Analytics 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 28, 2026 •

Copy link
Copy Markdown

Code Coverage Summary

No summary data is available for parent commit a792d8e, so cannot calculate coverage changes. 😴

If that commit is a feature branch rather than a trunk commit, this is expected. Otherwise, this should be updated once coverage for a792d8e is available.

Full summary · PHP report · JS report

@chihsuan
chihsuan force-pushed the change/charts-307-leaderboard-text-inset branch from e0ac834 to 61daaba Compare October 28, 2026 07:14
@chihsuan
chihsuan force-pushed the change/charts-307-leaderboard-text-inset branch from 61daaba to 55ad5ca Compare October 29, 2026 04:27
@chihsuan
chihsuan marked this pull request as ready for review October 29, 2026 05:28
@chihsuan
chihsuan requested a review from a team as a code owner October 29, 2026 05:28
@chihsuan
chihsuan merged commit 6c1ccb6 into trunk Oct 29, 2026
93 of 94 checks passed
@chihsuan
chihsuan deleted the change/charts-307-leaderboard-text-inset branch October 29, 2026 05:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

[Package] Premium Analytics [Plugin] Jetpack Issues about the Jetpack plugin. https://wordpress.org/plugins/jetpack/ [Plugin] Premium Analytics

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant