wordpress-mobile / wordpress-mobile/WordPress-Android
Jetpack Stats: incorrect date navigation and view more loading issues
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 3.2k
- Forks
- 1.4k
- Avg merge
- 1d 11h
- Merged PRs (30d)
- 69
Description
Expected behavior
When navigating between stats for different pages or posts with the "Days" filter selected, the app should accurately display the selected date without reverting to earlier dates. The "View more" option should also load the complete list of stats reliably.
Actual behavior
- When tapping stats for different pages or posts:
- The current date starts to jump backwards after each selection (e.g., from Oct 30 to Oct 29, then Oct 20, etc.).
- Eventually, the current date gets "stuck" on an earlier date and cannot return to the correct day.
- The "View more" option:
- Often results in a blank screen.
- Occasionally displays a loading animation but never resolves.
- Requires restarting the app or waiting a few minutes before retrying.
- Home page stats:
- Show only older years (e.g., 2021, 2020) rather than recent stats (e.g., 2023, 2024).
Steps to reproduce the behavior
- Open the Jetpack app and tap on Stats.
- Tap on any page or post to view stats for the last 14 days.
- Repeat the process with a different page or post.
- Observe how the selected date shifts backwards with each new page/post.
- Tap on "View more" at the bottom of the stats list.
- Check if the stats list loads or shows a blank/loading screen.
- Navigate to the Home page stats and observe if the displayed years include recent data.
Tested on [device], iOS [version], Jetpack iOS / WordPress iOS [version]
User setup:
- Oppo Reno5 (CPH2159), Android 13
- Jetpack app 25.4
My setup:
- Google Pixel 3a, Android 12
- Jetpack app 25.4
Notes:
- User reported this in 8960687-zd-a8c
- The issue has been reported on Slack: p1732282144254829-slack-C01264051NE
- I, Animesh and Nick tried to replicate this with no success; here's a video from my testing:
https://github.com/user-attachments/assets/43387a1c-49dc-4ce5-9e61-75363fd71b86 - The issue with the "Years" filter is being fixed in PR #21450.
- The problem described here pertains specifically to the "Days" filter and navigation between individual pages/posts.
The "View more" loading issue and outdated home page stats also require separate investigation.
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
No source files or tests are named. Start by tracing the Jetpack Stats flow for the Days filter, page/post navigation, View more loading, and Home stats, using the reproduction steps and linked testing video; compare the Days behavior with PR #21450, which addresses the separate Years-filter issue. Done means dates remain correct across selections, View more resolves reliably, and Home stats shows recent years.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100