lbry-desktop/ui/page
jessopb c7021a08ad
Selector refactors (#7424)
* Attempt to speed up sidebar menu for mobile (#283)

* Exclude default homepage data at compile time

The youtuber IDs alone is pretty huge, and is unused in the `CUSTOM_HOMEPAGE=true` configuration.

* Remove Desktop items and other cleanup

- Moved constants out of the component.
- Remove SIMPLE_SITE check.
- Remove Desktop-only items

* Sidebar: limit subscription and tag section

Too slow for huge lists

Limit to 10 initially, and load everything on "Show more"

* Fix makeSelectThumbnailForUri

- Fix memo
- Expose function to extract directly from claim if client already have it.

* Fix and optimize makeSelectIsSubscribed (#273)

- It will not return true if the uri provided is canonical, because the compared subscription uri is in permanent form. This was causing certain elements like the Heart to not appear in claim tiles.
- It is super slow for large subscriptions not just because of the array size + being a hot selector, but also because it is looking up the claim twice (not memo'd) and also calling `parseURI` to determine if it's a channel, which is unnecessary if you already have the claim.

- Optimize the selector to only look up the claim once, and make operations using already-obtained info.

* Simplify makeSelectTitleForUri

No need to memo given no transformation.

* Simplify makeSelectIsUriResolving

- Memo not required. `resolvingUris` is very dynamic and is a short array anyways.
- Changeg from using `indexOf` to `includes`, which is more concise.

* Cost Info selector fixes

- no memo required since they are just directly accessing the store.

Co-authored-by: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com>
Co-authored-by: infinite-persistence <inf.persistence@gmail.com>
2022-01-19 20:46:01 -05:00
..
backup add wallet sync message on wallet page 2020-02-21 13:42:17 -05:00
buy remove invites and rewards 2021-12-08 20:41:57 -05:00
channel Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
channelNew remove invites and rewards 2021-12-08 20:41:57 -05:00
channels integrate all the things 2021-10-15 23:49:41 -04:00
channelsFollowing cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
channelsFollowingDiscover update trending to use trending_score 2021-12-02 20:42:51 -05:00
collection Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
creatorDashboard integrate all the things 2021-10-15 23:49:41 -04:00
discover mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
file Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileListDownloaded mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
fileListPublished remove lbryinc web, update sitename, etc 2021-10-21 21:20:59 -04:00
fourOhFour Revert "move stuff to web (#6537)" 2021-07-19 10:12:57 -04:00
help cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
home mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
invite remove invites and rewards 2021-12-08 20:41:57 -05:00
invited integrate all the things 2021-10-15 23:49:41 -04:00
library mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
listBlocked integrate all the things 2021-10-15 23:49:41 -04:00
lists limit collection display 2021-11-07 14:59:35 -05:00
navigationHistory refactor lbrytv web server 2019-11-11 13:27:29 -05:00
notifications Fix notifications fetching issues (#7002) 2021-09-01 12:03:48 -04:00
ownComments Comment-selectors: fix memoization 2021-12-03 15:22:32 -05:00
passwordReset new layout 🕺 2020-09-29 17:12:32 -04:00
passwordSet new layout 🕺 2020-09-29 17:12:32 -04:00
passwordUpdate Move 'update password' into a subpage 2021-08-23 23:45:31 +08:00
playlists limit collection display 2021-11-07 14:59:35 -05:00
publish integrate all the things 2021-10-15 23:49:41 -04:00
receive ReceiveLBC: switch from Modal to Page 2021-04-13 14:02:25 -04:00
report Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
reportContent Implement ReportContent page 2021-04-21 10:49:31 -04:00
repost integrate all the things 2021-10-15 23:49:41 -04:00
rewards mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
rewardsVerify rewards redirect fix for manually approved users 2020-07-03 13:18:28 -04:00
search fix top on search page 2021-10-20 17:05:37 -04:00
send integrate all the things 2021-10-15 23:49:41 -04:00
settings mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
settingsCreator strip out livestreams 2021-10-20 17:05:37 -04:00
settingsNotifications mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
show Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
signIn new layout 🕺 2020-09-29 17:12:32 -04:00
signInVerify cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
signInWalletPassword get sync password out of signing flow 2020-09-21 14:11:25 -04:00
signUp new layout 🕺 2020-09-29 17:12:32 -04:00
tagsFollowing mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
tagsFollowingManage per channel notification settings 2020-11-02 14:13:13 -05:00
top cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
wallet fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
welcome new layout 🕺 2020-09-29 17:12:32 -04:00
youtubeSync mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00