Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.43k stars 1.99k forks source link

Stats: Mismatched title when selecting a custom range #86986

Open itsmeichigo opened 10 months ago

itsmeichigo commented 10 months ago

Quick summary

The title for the selected date range on Jetpack Stats always reflects the most recent range based on the selected period. E.g: When "Week" is selected, the title is the last week, not the actual selected date range.

Screenshot 2024-01-30 at 12 55 16

Steps to reproduce

  1. Access wp-admin with Calypso
  2. Select Stats
  3. Select an arbitrary date range in the past.
  4. Notice the big title on the graph doesn't get updated.

What you expected to happen

When a custom date range is selected, the range should be displayed on the big title.

What actually happened

The title only gets updated when picking a different period (day/week/month/year). It would then display the latest range of that period, which doesn't match the specified custom range.

Impact

All

Available workarounds?

No but the platform is still usable

Platform (Simple and/or Atomic)

No response

Logs or notes

No response

kangzj commented 10 months ago

Thanks for filing this for us! This definitely is a bug by the looks of it. We'll look into it in the next couple of weeks. Thanks again @itsmeichigo 👍