Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stats widget not working until user visits Stats screen in app #17567

Closed
guarani opened this issue Nov 25, 2021 · 2 comments · Fixed by #18885
Closed

Stats widget not working until user visits Stats screen in app #17567

guarani opened this issue Nov 25, 2021 · 2 comments · Fixed by #18885

Comments

@guarani
Copy link
Contributor

guarani commented Nov 25, 2021

Expected behavior

If a user adds a WordPress widget to their device's home screen, the widget should work out of the box or display an actionable message to help the user get it functioning.

Actual behavior

After adding the widget, it shows "Unable to load site stats". This happens only if the user hasn't visited the app's Stats screen after logging in.

Steps to reproduce the behavior

  1. Perform a fresh install of WPiOS
  2. Log in to the app
  3. Background the app and add the Today widget
  4. Notice the "Unable to load site stats" message appears, with no instruction on how to remedy this
  5. Notice that tapping on the widget opens the app, but does not deep link to the Stats screen (see Tapping widget does not deep link to Stats view until Stats view is manually loaded #18452)

Possible solution

My understanding is that there is an implicit requirement that the user visits the Stats page in the app for widgets to work. If widgets must depend on that user action taking place first, the widget could show the actionable message instead of "Unable to load site stats". For example, we could use "Visit the app's Stats page to enable the widget".

Tested on iPhone 11, iOS 15.0.2, WPiOS 18.6.1

First reported by @AliSoftware

@AliSoftware
Copy link
Contributor

For example, we could use "Visit the app's Stats page to enable the widget".

Bonus point if we could make this message tappable and deep-link to said Stats page 🙂

@twstokes
Copy link
Contributor

For example, we could use "Visit the app's Stats page to enable the widget".

Bonus point if we could make this message tappable and deep-link to said Stats page 🙂

👋 This came up today so I added #18452.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants