lbry-desktop/ui
infinite-persistence 5638f64831
New version nudge (#1793)
## Ticket
1329

The existing nudge to refresh the webpage only happens when the app cannot find the specific javascript file in the server. As we don't purge the files on each build, the browser typically uses the cached version of the app, which could be weeks behind (based on the error logs).

## Approach
Poll the current version periodically (set to 1 hour for now) and invoke the nudge when a newer version is detected.

We typically don't need to bump `MINIMUM_VERSION` unless there is an urgent need to make users move away from older versions (e.g. API changes, mistakes, etc.)

## Trade-offs
Wanted to put the value in a separate file called `.min.version` so that the env's history won't be polluted with version bumps, but not sure how to implement with minimal code without having to read from the file. Getting from the env is the easiest to implement (per my limited knowledge).
2022-07-05 09:14:32 -04:00
..
component Fix notification target for some types (#1790) 2022-07-05 06:55:04 -04:00
constants Preorder content functionality (#1743) 2022-06-23 20:58:32 -04:00
contexts Category: Hide "Repost" from ContentType filter, except for WildWest 2022-04-25 08:49:46 -04:00
effects Handle browsers that don't support IntersectionObserver (#1739) 2022-06-23 08:10:27 -04:00
modal Preorder cleanup 2022-06-28 13:36:18 +08:00
page PremiumBadge: retrieve membership db internally instead of from parent (#1764) 2022-07-01 15:40:06 -04:00
redux New version nudge (#1793) 2022-07-05 09:14:32 -04:00
scss Part 1 (#1789) 2022-07-04 14:32:30 +02:00
util Update thumbnail cards URL (#1748) 2022-06-23 18:09:48 -04:00
analytics.js Fix localStorage crash 2022-05-26 08:27:35 -04:00
app.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
comments.js Remove custom comments server 2022-02-03 10:24:58 -05:00
i18n.js Add env to auto report new strings in console 2022-01-05 00:26:31 -08:00
index.jsx New version nudge (#1793) 2022-07-05 09:14:32 -04:00
lbry.js Tip: show modal instead of toast when timeout 2022-06-01 08:40:39 -04: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 Change logic for daily reward claiming to weekly 2021-12-23 02:40:58 -05:00
store.js 1318: Persist recsys data for send after tab close 2022-05-24 13:52:50 -04:00