wordpress-mobile / wordpress-mobile/WordPress-Android

Stats Traffic Tab: Keep the selected date when changing the granularity

Open
#20,491 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Enhancement Stats
Dominant language
Kotlin
Stars
3.2k
Forks
1.4k
Avg merge
1d 11h
Merged PRs (30d)
69

Description

On the traffic tab, the selected date for "By day", "By week", By month", and "By year" is currently managed separately. But, when the selected date is changed, we should see the same date after changing the granularity.

For example:

  1. Today is Mar 18, 2024.
  2. I change the date to Feb 29, 2024.
  3. I change the granularity to "By month"
  4. The selected month should be Feb, 2024.
    For further details on this behavior, you can refer to the same feature on iOS and the web

[!IMPORTANT]
Before starting this issue, make sure that https://github.com/wordpress-mobile/WordPress-Android/issues/20396 has been completed.

Slack discussion: p1709662286480829/1709585366.152709-slack-C06BR07TJHK

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at the Android traffic tab and trace how the selected date is stored for the By day, By week, By month, and By year granularities. Check the referenced iOS and web behavior for comparison, after confirming issue 20396 is complete. Done means changing the date and then the granularity preserves the corresponding date period.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
mobile
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.