wordpress-mobile / wordpress-mobile/WordPress-Android

My Site Dashboard - Offline Mode - No network snackbar instead of stale dashboard feed message

Open
#15,835 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Pri] Low [Type] Bug /My site My Site Dashboard
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
  1. User opens the app, the app is in foreground, user is looking at My Site.
  2. User puts the device on airplane mode.
  3. The NO CONNECTION orange dot bottom banner is automatically shown.
  4. User triggers pull-to-refresh.
  5. The dashboard feed is not updated.
  6. ⚠️ The dashboard feed Stale Message is not shown.
  7. ⚠️ A There is no network available toast is shown. However, the dashboard feed Snackbar Message should be shown instead.
  8. The NO CONNECTION orange dot bottom banner is still shown.
  9. User puts the device out of airplane mode.
  10. The NO CONNECTION orange dot bottom banner automatically disappears.
  11. User triggers pull-to-refresh.
  12. 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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.