lbry-desktop/ui/component
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
..
abandonedChannelPreview integrate all the things 2021-10-15 23:49:41 -04:00
app mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
autoplayCountdown integrate all the things 2021-10-15 23:49:41 -04:00
blockList Blocklist: don't show pagination widget when searching. 2021-09-11 21:16:42 +08:00
button support embed preference (#7114) 2021-09-18 10:23:30 -04:00
cardVerify updated code 2021-07-03 14:42:37 -04:00
channelAbout cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
channelBlockButton Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
channelContent Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
channelDiscussion integrate all the things 2021-10-15 23:49:41 -04:00
channelForm Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
channelMentionSuggestion Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
channelMentionSuggestions Comment-selectors: fix memoization 2021-12-03 15:22:32 -05:00
channelMentionTopSuggestion Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
channelMuteButton Rename default import/exports for clarity in text search (no functional change) 2021-07-09 08:40:26 +08:00
channelSelector integrate all the things 2021-10-15 23:49:41 -04:00
channelStakedIndicator Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
channelThumbnail Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
channelTitle Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimAbandonButton integrate all the things 2021-10-15 23:49:41 -04:00
claimAuthor integrate all the things 2021-10-15 23:49:41 -04:00
claimCollectionAdd integrate all the things 2021-10-15 23:49:41 -04:00
claimCollectionAddButton mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
claimEffectiveAmount integrate all the things 2021-10-15 23:49:41 -04:00
claimInsufficientCredits Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimLink Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimList collection reordering changes 2021-12-02 15:08:24 -05:00
claimListDiscover fix 7188 window.location.pathname (#7401) 2022-01-04 15:40:42 -05:00
claimListHeader cleaner discover filters display 2021-12-02 20:43:32 -05:00
claimMenuList Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimPreview Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimPreviewSubtitle strip out livestreams 2021-10-20 17:05:37 -04:00
claimPreviewTile Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimPreviewTitle Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimProperties Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
claimRepostAuthor integrate all the things 2021-10-15 23:49:41 -04:00
claimRepostButton mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
claimSupportButton mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
claimTags Optimize tags and followedTags 2021-12-03 15:22:32 -05:00
claimTilesDiscover fix 7188 window.location.pathname (#7401) 2022-01-04 15:40:42 -05:00
claimType strip out livestreams 2021-10-20 17:05:37 -04:00
claimUri integrate all the things 2021-10-15 23:49:41 -04:00
collectionActions clear shuffle when entering edit or publish for collections (#7380) 2021-12-30 22:21:37 -05:00
collectionContentSidebar Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
collectionEdit Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
collectionMenuList integrate all the things 2021-10-15 23:49:41 -04:00
collectionPreviewOverlay Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
collectionPreviewTile Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
collectionSelectItem integrate all the things 2021-10-15 23:49:41 -04:00
collectionsListMine no empty lists on lists page (#7375) 2021-12-30 13:36:08 -05:00
comment Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
commentCreate mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
commentMenuList mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
commentReactions mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
commentsList Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
commentsReplies mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
common mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
copyableText Restore "Stream Key Button (#7127)" + lint and modifications 2021-09-23 20:13:02 +08:00
creatorAnalytics integrate all the things 2021-10-15 23:49:41 -04:00
dateTime re-reselect proof of concept + fix Date selector as first example 2021-12-03 15:22:32 -05:00
emailCollection integrate all the things 2021-10-15 23:49:41 -04:00
embedPlayButton Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
embedTextArea
errorBoundary mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
expandable
fileActions Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileDescription Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
fileDetails cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
fileDownloadLink Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileDrop integrate all the things 2021-10-15 23:49:41 -04:00
filePrice Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileReactions mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
fileRender Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileRenderDownload fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
fileRenderFloating Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileRenderInitiator Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileRenderInline Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileSubtitle restore file release time 2021-10-29 12:24:33 -04:00
fileThumbnail integrate all the things 2021-10-15 23:49:41 -04:00
fileTitle Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileTitleSection Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileType strip out livestreams 2021-10-20 17:05:37 -04:00
fileValues Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
fileViewCount Optimize selectClaimIsMine (#7370) 2021-12-31 12:52:26 -05:00
fileViewCountInline fix 7188 window.location.pathname (#7401) 2022-01-04 15:40:42 -05:00
fileViewerEmbeddedTitle Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
fileWatchLaterLink mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
formFieldPrice
header mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
hiddenNsfwClaims integrate all the things 2021-10-15 23:49:41 -04:00
homepageSelector Move combobox to right | Move "Search only in language" into separate row 2021-08-23 23:45:09 +08:00
i18nMessage
IframeReact re-enable pdfs on web 2021-04-05 15:06:56 -04:00
invited Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
inviteList
inviteNew remove invites and rewards 2021-12-08 20:41:57 -05:00
lastReleaseChanges prevent release notes from extending beyond height of app 2021-03-18 18:17:10 -04:00
loginGraphic FileThumbnail: don't go through optimizer if GIF 2021-06-23 14:15:37 -04:00
logo cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
markdownLink integrate all the things 2021-10-15 23:49:41 -04:00
maxPurchasePrice [Content] refactor and grab Max Purchase Price 2021-08-23 23:45:10 +08:00
nagContinueFirstRun integrate all the things 2021-10-15 23:49:41 -04:00
navigationButton
navigationHistory
navigationHistoryItem integrate all the things 2021-10-15 23:49:41 -04:00
navigationHistoryRecent
notification remove invites and rewards 2021-12-08 20:41:57 -05:00
notificationBubble recon notify components 2021-07-19 22:16:29 -04:00
notificationContentChannelMenu lint 2021-10-15 23:49:41 -04:00
notificationHeaderButton recon notify components 2021-07-19 22:16:29 -04:00
nudgeFloating
optimizedImage Fix channel-selector thumbnail not updating 2021-07-21 16:38:54 +08:00
page strip out livestreams 2021-10-20 17:05:37 -04:00
playlistsMine carry collection active tab to playlists page 2021-11-07 14:59:35 -05:00
postEditor integrate all the things 2021-10-15 23:49:41 -04:00
postViewer integrate all the things 2021-10-15 23:49:41 -04:00
previewLink Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
previewOverlayProperties Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
privacyAgreement Revert "rm lbry.tv, rm lbryfirst, rm DOMAIN, etc" 2021-12-04 22:20:39 -05:00
publishAdditionalOptions integrate all the things 2021-10-15 23:49:41 -04:00
publishBid integrate all the things 2021-10-15 23:49:41 -04:00
publishDescription fix advanced editor in description (#7372) 2021-12-29 15:58:55 -05:00
publishFile strip out livestreams 2021-10-20 17:05:37 -04:00
publishForm restore posts publishing (#7359) 2021-12-16 14:26:52 -05:00
publishFormErrors lint 2021-10-15 23:49:41 -04:00
publishName Revert "rm lbry.tv, rm lbryfirst, rm DOMAIN, etc" 2021-12-04 22:20:39 -05:00
publishPending integrate all the things 2021-10-15 23:49:41 -04:00
publishPrice integrate all the things 2021-10-15 23:49:41 -04:00
publishReleaseDate integrate all the things 2021-10-15 23:49:41 -04:00
recommendedContent remove more web folder stuff 2021-10-20 17:05:37 -04:00
reportContent integrate all the things 2021-10-15 23:49:41 -04:00
repostCreate Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
rewardAuthIntro
rewardLink fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardListClaimed
rewardSummary
rewardTile fix accessibility issue on rewards page #5991 2021-07-20 12:14:28 -05:00
rewardTotal
router Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
searchChannelField integrate all the things 2021-10-15 23:49:41 -04:00
searchOptions Remove unused items 2021-07-14 11:13:13 +08:00
searchTopClaim Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
selectAsset improve channel cover upload ux 2021-10-28 15:17:18 -04:00
selectChannel integrate all the things 2021-10-15 23:49:41 -04:00
selectThumbnail reenable thumbs from videos (#7409) 2022-01-07 15:00:12 -05:00
settingAccount mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
settingAccountPassword Move 'update password' into a subpage 2021-08-23 23:45:31 +08:00
settingAppearance mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
settingAutoLaunch integrate all the things 2021-10-15 23:49:41 -04:00
settingClosingBehavior integrate all the things 2021-10-15 23:49:41 -04:00
settingCommentsServer integrate all the things 2021-10-15 23:49:41 -04:00
settingContent mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
settingEnablePrereleases add feature to enable experimental upgrades (#7353) 2021-12-15 15:58:47 -05:00
settingLanguage Fix jumpy ui when changing language 2021-09-13 15:44:29 +08:00
settingShareUrl Revert "rm lbry.tv, rm lbryfirst, rm DOMAIN, etc" 2021-12-04 22:20:39 -05:00
settingsRow Styles for new Settings Page 2021-08-23 23:45:04 +08:00
settingsSideNavigation Settings: use 'smooth' instead of 'instant' scroll. 2021-09-13 09:59:11 +08:00
settingSystem mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
settingUnauthenticated integrate all the things 2021-10-15 23:49:41 -04:00
settingWalletServer fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
shareButton
sideNavigation mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
skipNavigationButton add SkipNavigationButton to its own file 2021-07-20 19:31:26 -05:00
snackBar adjust css for toast message so that it behaves as expected (text truncation via ellipsis) (#7213) 2021-10-04 09:21:59 -04:00
socialShare Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
spinner
splash integrate all the things 2021-10-15 23:49:41 -04:00
subscribeButton Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
supportsLiquidate integrate all the things 2021-10-15 23:49:41 -04:00
syncEnableFlow integrate all the things 2021-10-15 23:49:41 -04:00
syncFatalError remove more web folder stuff 2021-10-20 17:05:37 -04:00
syncPassword More master reconciliation 2021-04-27 23:05:38 -04:00
syncToggle integrate all the things 2021-10-15 23:49:41 -04:00
tag integrate all the things 2021-10-15 23:49:41 -04:00
tagsSearch Revert "rm lbry.tv, rm lbryfirst, rm DOMAIN, etc" 2021-12-04 22:20:39 -05:00
tagsSelect
theme
themeSelector integrate all the things 2021-10-15 23:49:41 -04:00
transactionListTable integrate all the things 2021-10-15 23:49:41 -04:00
transactionListTableItem integrate all the things 2021-10-15 23:49:41 -04:00
txoList export all 2021-10-20 17:05:37 -04:00
uriIndicator Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
userChannelFollowIntro cut SIMPLE_SITE 2021-10-20 17:05:37 -04:00
userEmail fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
userEmailNew Revert "rm lbry.tv, rm lbryfirst, rm DOMAIN, etc" 2021-12-04 22:20:39 -05:00
userEmailReturning cloud connect 2021-10-22 16:39:45 -04:00
userEmailVerify More master reconciliation 2021-04-27 23:05:38 -04:00
userFirstChannel lint 2021-10-15 23:49:41 -04:00
userPasswordReset
userPasswordSet
userPhoneNew
userPhoneVerify More master reconciliation 2021-04-27 23:05:38 -04:00
userSignIn
userSignInPassword Add SITE_HELP_EMAIL in strings to ease Odysee string merge and maintenance. 2021-03-08 11:33:33 -05:00
userSignOutButton
userSignUp remove extra sign up pages 2021-12-08 20:41:57 -05:00
userTagFollowIntro
userVerify sms copy 2021-07-21 08:11:33 -04:00
videoDuration integrate all the things 2021-10-15 23:49:41 -04:00
viewers Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
walletAddress mostly remove is_web (#7408) 2022-01-07 14:02:33 -05:00
walletBackup Electron 15 (#7384) 2022-01-02 15:33:11 -05:00
walletBalance fixes restoring wallet page and removing lbry.tv references 2021-11-28 15:06:11 -05:00
walletSend integrate all the things 2021-10-15 23:49:41 -04:00
walletSendTip Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
walletSpendableBalanceHelp integrate all the things 2021-10-15 23:49:41 -04:00
walletSwap integrate all the things 2021-10-15 23:49:41 -04:00
walletTipAmountSelector integrate all the things 2021-10-15 23:49:41 -04:00
wunderbar remove lazy import 2021-10-20 17:05:37 -04:00
wunderbarSuggestion Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
wunderbarSuggestions integrate all the things 2021-10-15 23:49:41 -04:00
wunderbarTopSuggestion Selector refactors (#7424) 2022-01-19 20:46:01 -05:00
youtubeBadge
youtubeTransferStatus integrate all the things 2021-10-15 23:49:41 -04:00
yrbl
yrblWalletEmpty remove invites and rewards 2021-12-08 20:41:57 -05:00
zoomableImage