google / google/site-kit-wp

Duplicate dates on x-axis in All Traffic and Search traffic widgets on dashboard

Open
#6,451 2 comments 0 reactions 0 assignees View on GitHub
P2 Type: Bug
Dominant language
JavaScript
Stars
1.4k
Forks
383
Avg merge
4d 12h
Merged PRs (30d)
80

Description

## Bug Description

While testing #6034 I noticed a UX/UI issue, when in gathering state, and 7 days is selected as the data range.

The dates on the x-axis are duplicated on the all traffic and search traffic widgets.

I initially thought it was a regression from the ticket I was testing but the issue occurs on the latest version of Site Kit.

This is an issue on the main, entity and view only dashboard.

Update: Just adding that the issue is also appearing on 14 days for the all traffic widget. It's fine for search traffic chart.

![Image](https://github.com/user-attachments/assets/65dce372-da94-4c11-97e9-cd25a1b25fe5)

![image](https://user-images.githubusercontent.com/73545194/214310895-d2751a50-14b2-4241-9e3a-a2c2fee27aef.png)

## Steps to reproduce

1. Set up a new Site Kit with Analytics.
2. Ensure that it is in gathering data state. (which it should be for a new site)
3. Go to the dashboard and observe the duplicate dates in the widgets.

---------------

_Do not alter or remove anything below. The following sections will be managed by moderators only._

## Acceptance criteria

*

## Implementation Brief

*

### Test Coverage

*

## QA Brief

*

## Changelog entry

*

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue on a new Site Kit setup with Analytics in the gathering-data state, using the dashboard's 7-day range and then the 14-day range for All Traffic. Inspect the date-label rendering for the All Traffic and Search traffic widgets across the main, entity, and view-only dashboards; done means the affected x-axes show each date only once.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
data-visualization, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.