wordpress-mobile / wordpress-mobile/WordPress-iOS

Stats: Show "Unable to load content" message on Insights tab when data cannot be loaded

Open
#21,184 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

[Type] Task Stats
Dominant language
Swift
Stars
3.9k
Forks
1.2k
Avg merge
23h 51m
Merged PRs (30d)
58

Description

When there's no internet connection and no data for a given site, "Inights" tab shows the cards with "Error occurred" message instead of full screen "Unable to load content" message. Period tabs (days, weeks, months, years) display the expected message.

Expected behavior

"Unable to load content" message is shown on Insights tab

Actual behavior

Cards are shown with "Error occurred" message on Insights tab

Steps to reproduce the behavior
  1. Open Jetpack
  2. Turn off internet connection
  3. Open Stats
  4. Select Insights tab

https://github.com/wordpress-mobile/WordPress-iOS/assets/4062343/f04d7886-2a85-471a-8f31-7a7d5c4b6d16

Tested on [device], iOS [version], Jetpack iOS / WordPress iOS 22.9

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

Reproduce the issue in the Stats Insights tab with the internet connection disabled, then compare its behavior with the period tabs, which already show the expected message. Done means the Insights tab displays the full-screen "Unable to load content" message instead of cards with "Error occurred".

Written by the indexing model from the issue text.

Assessment

Tech stack
ios, swift
Domain
analytics, mobile
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.