lbry-desktop/ui
infinite-persistence 87c3dcc057
SyncFatalError: show nag instead of hard-crashing. (#331)
* SyncFatalError: show nag instead of hard-crashing.

## Issue
When sync fails, we crash the app.

## Ticket
Maybe closes 39 "Better handle both internal and web backend interruptions / downtime"

## Approach
I'm tackling this from the standpoint that (1) sync errors are not that fatal -- we'll just lost a few recent changes (2) network disconnection is the common cause.

## Changes
- If we are offline:
    - Inform user through a nag. All other status is meaningless if we are offline.
- If we are online:
    - If api is STATUS_DOWN, show the existing crash page.
    - If there is a sync error, show a nag saying settings are now potentially unsynchronized, and add a button to retry sync.
    - If there is a chunk error, nag to reload.

* Attempt to detect `status=DOWN`

Previous code resolves the status to either "ok" or "not", which makes the app unable to differentiate between the "degraded" (nag) and "down" (crash) states.
2021-11-22 09:30:43 -05:00
..
component SyncFatalError: show nag instead of hard-crashing. (#331) 2021-11-22 09:30:43 -05:00
constants Reduce livestream chat size to 50 2021-11-17 21:04:17 +08:00
effects Remove use-history-nav.js 2021-11-09 16:03:37 +08:00
modal Simplify makeSelectTitleForUri 2021-11-16 12:23:18 +08:00
page Cost Info selector fixes 2021-11-19 16:01:25 +08:00
redux Notifications: skip resolve during boot (#330) 2021-11-19 09:46:31 -05:00
scss Detect concurrent uploads and stop it. 2021-11-22 16:12:11 +08:00
util Attempt to speed up sidebar menu for mobile (#283) 2021-11-12 10:59:11 -05:00
analytics.js Videojs component refactor (#240) 2021-11-12 09:56:46 -05:00
app.js
comments.js Comment Moderation - time based bans 2021-09-03 07:17:56 +08:00
i18n.js Revert "Simplify language lists" 2021-04-06 15:42:27 -04:00
index.jsx Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
lbry.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
logWarningConsoleMessage.js new lbc icon 2020-09-29 17:12:32 -04:00
native.js working 2020-12-16 10:52:22 -05:00
reducers.js Support resume-able upload via tus (#186) 2021-11-10 13:16:16 -05:00
rewards.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
store.js Additional GA events via redux/lbryio hook 2021-10-22 10:56:43 +08:00