lbry-desktop/ui/effects
Rafael Saes 83dbe8ec7c
Playlists v2: Refactors, touch ups + Queue Mode (#1604)
* Playlists v2

* Style pass

* Change playlist items arrange icon

* Playlist card body open by default

* Refactor collectionEdit components

* Paginate & Refactor bid field

* Collection page changes

* Add Thumbnail optional

* Replace extra info for description on collection page

* Playlist card right below video on medium screen

* Allow editing private collections

* Add edit option to menus

* Allow deleting a public playlist but keeping a private version

* Add queue to Save menu, remove edit option from Builtin pages, show queue on playlists page

* Fix scroll to recent persisting on medium screen

* Fix adding to queue from menu

* Fixes for delete

* PublishList: delay mounting Items tab to prevent lock-up (#1783)

For a large list, the playlist publish form is unusable (super-slow typing) due to the entire list being mounted despite the tab is not active.
The full solution is still to paginate it, but for now, don't mount the tab until it is selected. Add a spinner to indicate something is loading. It's not prefect, but it's throwaway code anyway. At least we can fill in the fields properly now.

* Batch-resolve private collections (#1782)

* makeSelectClaimForClaimId --> selectClaimForClaimId

Move away from the problematic `makeSelect*`, especially in large loops.

* Batch-resolve private collections
1758

This alleviates the lock-up that is caused by large number of invidual resolves. There will still be some minor stutter due to the large DOM that React needs to handle -- that is logged in 1758 and will be handled separately.

At least the stutter is short (1-2s) and the app is still usable.
Private list items are being resolve individually, super slow if the list is large (>100). Published lists doesn't have this issue.
doFetchItemsInCollections contains most of the useful logic, but it isn't called for private/built-in lists because it's not an actual claim.
Tweaked doFetchItemsInCollections to handle private (UUID-based) collections.

* Use persisted state for floating player playlist card body
- I find it annoying being open everytime

* Fix removing edits from published playlist

* Fix scroll on mobile

* Allow going editing items from toast

* Fix ClaimShareButton

* Prevent edit/publish of builtin

* Fix async inside forEach

* Fix sync on queue edit

* Fix autoplayCountdown replay

* Fix deleting an item scrolling the playlist

* CreatedAt fixes

* Remove repost for now

* Anon publish fixes

* Fix mature case on floating

Co-authored-by: infinite-persistence <64950861+infinite-persistence@users.noreply.github.com>
2022-07-13 10:59:59 -03:00
..
use-claimList-infinite-scroll.js ClaimList: Factor out infinite-scroll and batch-resolve handling into an effect. 2022-05-16 07:57:24 -04:00
use-combined-refs.js fixes button hover 2019-11-19 16:28:59 -05:00
use-connection-status.js Fix "you are offline" nag being stuck 2021-12-22 12:41:05 +08:00
use-debounce.js Add channel list filter 2022-02-01 10:20:00 -05:00
use-drag-drop.js Paste/drop images directly to markdown editor 2022-04-01 12:36:49 -04:00
use-fetch-live.js Remove polling, still happen on channel pages (#1558) 2022-06-09 14:43:45 -04:00
use-fetch-view-count.js Membership subscriptions (#812) 2022-03-09 13:05:37 -05:00
use-fetched.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
use-get-ads.js fetch ads provider for all homepage videos (but still only show ads for unauth users) 2021-04-26 16:38:33 -04:00
use-get-last-visible-slot.js Generalize useGetLastVisibleSlot 2022-04-18 19:06:02 +08:00
use-get-poster.js Consolidate the mobile tile to use the poster size for better caching. 2022-06-17 11:58:43 -04:00
use-get-thumbnail.js useGetThumbnail: fetch streaming_url instead of generating it. 2022-05-13 18:19:20 +08:00
use-get-user-memberships.js cleanup 2022-03-22 16:07:05 -04:00
use-hover.js fix: better hover use-effect 2020-04-23 13:10:41 -04:00
use-interval.js Switch unnecessary let to const 2022-03-02 20:20:27 -08:00
use-is-mounted.js prevent state updates after component unmounted 2020-05-13 10:18:36 -04:00
use-lazy-loading.js Handle browsers that don't support IntersectionObserver (#1739) 2022-06-23 08:10:27 -04:00
use-lighthouse.js Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
use-on-resize.js Improve ~more~ comment viewing operation (#1798) 2022-07-06 08:36:14 -04:00
use-persisted-state.js MAKE ODYSEE EVEN MORE BEAUTIFUL (#539) 2022-02-11 13:50:55 -05:00
use-play-next.js Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
use-previous.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00
use-resolve-pins.js Swap pinnedUrls vs. pinnedClaimIds precedence 2022-04-01 11:35:29 -04:00
use-screensize.js Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
use-should-show-ads.js Fix stale-closure in ad-detection code 2022-05-30 19:03:20 +08:00
use-stream-file.js prevent state updates after component unmounted 2020-05-13 10:18:36 -04:00
use-stream.js flow fixes 2020-12-16 10:52:22 -05:00
use-throttle.js Refactor channelMention suggestions into new textareaSuggestions component 2021-12-09 15:35:40 -05:00
use-tween.js refactor lbrytv web server 2019-11-11 13:27:29 -05:00