wordpress-mobile / wordpress-mobile/WordPress-Android
My Site Dashboard - Offline Mode - No network snackbar instead of stale dashboard feed message
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 there is no network available, the stale dashboard feed message and snackbar should be shown instead of the no network snackbar. (TBD)
Actual behavior
In a specific scenario (mentioned below), no network snackbar is shown instead of the stale dashboard feed message and snackbar.
Steps to reproduce the behavior
- User opens the app, the app is in foreground, user is looking at My Site.
- User puts the device on airplane mode.
- The NO CONNECTION orange dot bottom banner is automatically shown.
- User triggers pull-to-refresh.
- The dashboard feed is not updated.
- ⚠️ The dashboard feed Stale Message is not shown.
- ⚠️ A There is no network available toast is shown. However, the dashboard feed Snackbar Message should be shown instead.
- The NO CONNECTION orange dot bottom banner is still shown.
- User puts the device out of airplane mode.
- The NO CONNECTION orange dot bottom banner automatically disappears.
- User triggers pull-to-refresh.
- The dashboard feed is updated.
⚠️ Stale Message not shown and the Snackbar Message is not shown as well.
Reference: p5T066-2Vl-p2#comment-11000
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 file or test is named in the issue. Reproduce the My Site flow by enabling airplane mode, showing the offline banner, and triggering pull-to-refresh; then compare the stale dashboard feed and snackbar behavior with the documented expected behavior. Done means the stale feed message and dashboard snackbar appear instead of the generic no-network toast.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, kotlin
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100