Automattic / Automattic/jetpack

VideoPress: improve the user experience on Offline mode

Open
#30,628 4 comments 0 reactions 0 assignees View on GitHub
[Plugin] VideoPress
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

More context here p9dueE-7eT-p2
Reported by @sergeymitr

On Offline mode, the plugin doesn’t handle connection errors very well, and users get stuck with the spinner if Offline Mode is on:

![Image](https://user-images.githubusercontent.com/16329583/237645348-579d486d-f842-428c-b855-b158f9ef16f9.png)

Same goes for other site registration errors, we probably need to check the returned promise for errors [here](https://href.li/?https://github.com/Automattic/jetpack/blob/trunk/projects/packages/videopress/src/client/admin/components/pricing-section/index.tsx#L84).

Contributor guide

Open the contributing guide

Research direction

Start in projects/packages/videopress/src/client/admin/components/pricing-section/index.tsx around line 84, where the site-registration promise is referenced. Reproduce Offline mode and other site registration errors, then verify that rejected promises no longer leave users stuck on the spinner.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
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.