jetpack icon indicating copy to clipboard operation
jetpack copied to clipboard

Jetpack Stats: WP Admin Stats Widget Weekly Stats Label Formatting

Open JenSwish opened this issue 1 year ago • 2 comments

Impacted plugin

Jetpack

Quick summary

When you view the weekly overview on the WP Admin dashboard, the hover labels on the bars are not formatted neatly. Screen Shot on 2024-05-19 at 10-52-43

This isn't an issue for any of the other labels.

Steps to reproduce

  1. Go to WP Admin dashboard
  2. View the Stats widget on the dashboard
  3. Switch to weekly
  4. Hover over any of the bars

A clear and concise description of what you expected to happen.

The labels should be neat and easy to read.

What actually happened

The labels are smashed together at the top.

Impact

All

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

Self-hosted

Logs or notes

User reported in #8155105-zen and #8137899-zen. I was able to replicate on my personal site. See above screenshot.

JenSwish avatar May 19 '24 15:05 JenSwish

Support References

This comment is automatically generated. Please do not edit it.

  • [ ] 8155105-zen
  • [ ] 8137899-zen

github-actions[bot] avatar May 19 '24 16:05 github-actions[bot]

I was also able to reproduce it on a test site with latest Jetpack and date_format being F j, Y when viewing the Weekly Stats:

Screenshot 2024-05-21 at 15 26 39

Hopefully @Automattic/red can take a look

fgiannar avatar May 21 '24 12:05 fgiannar

Hi @kangzj, any ETA about a fix for this issue? If it helps/ needed, the user from 8155105-zen has shared a screenshot of errors in their browser console.

ajaykj avatar May 28 '24 14:05 ajaykj

I'll take a look this week. Thanks @ajaykj

kangzj avatar May 29 '24 02:05 kangzj

Hi @kangzj, do you have any update on this? Thank you!

alinclamba avatar Jun 04 '24 14:06 alinclamba

Sorry I didn't manage to get onto it last week. I just had look and it seems to be related to https://github.com/Automattic/wp-calypso/pull/89369, where the long formats are overridden. I'll fix it by using LL format for weeks, and will leave it for @candy02058912 to double check whether it works okay on Simple. Thanks all.

kangzj avatar Jun 04 '24 22:06 kangzj

Thanks, I'll let the user know 🙌

chatoxz-wp avatar Jun 05 '24 19:06 chatoxz-wp

https://github.com/Automattic/wp-calypso/pull/94738

kangzj avatar Sep 27 '24 03:09 kangzj