wordpress-mobile / wordpress-mobile/WordPress-Android
Stats Traffic Tab: Keep the selected date when changing the granularity
Nobody has claimed this yet.
- 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:
- Today is Mar 18, 2024.
- I change the date to Feb 29, 2024.
- I change the granularity to "By month"
- 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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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