lbry-desktop/ui/modal
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
..
modalAffirmPurchase Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
modalAnnouncements Add announcement modal and open it after prefs sync'd. 2022-05-20 00:04:06 +08:00
modalAutoGenerateThumbnail Fix video thumbnail selector exceeding the modal size (#891) 2022-02-16 09:50:41 -05:00
modalAutoUpdateDownloaded Fetch and display last release changes from GitHub in modal upgrade & modal auto update downloaded 2021-02-09 11:04:03 -05:00
modalBlockChannel Better non-clickable implementation 2022-04-05 19:44:09 -07:00
modalClaimCollectionAdd Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
modalCollectionCreate Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
modalConfirm Make MODALS.CONFIRM not dismissed when out of focus 2022-06-02 10:40:19 -04:00
modalConfirmAge Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalConfirmOdyseeMembership Membership: i18n fixes + add strings 2022-03-16 15:22:19 +08:00
modalConfirmThumbnailUpload Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalConfirmTransaction Fix context for translators 2022-04-03 22:13:18 +08:00
modalCustomizeHomepage Homepage: add "reset" + 'hideByDefault' categories 2022-05-26 10:59:31 -04:00
modalDownloading Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalError Don't report thumbnail size errors 2022-02-17 13:54:54 +08:00
modalFileSelection Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalFileTimeout Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalFirstReward copy changes 2020-09-29 17:12:32 -04:00
modalHideRecommendation Better non-clickable implementation 2022-04-05 19:44:09 -07:00
modalImageUpload Thumbnail upload fixes (#6860) 2021-08-24 20:28:23 -04:00
modalIncompatibleDaemon Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalMassTipUnlock FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
modalMembershipSplash Membership subscriptions (#812) 2022-03-09 13:05:37 -05:00
modalMinChannelAge Don't allow a duration that exceeds Feb 8th 2022-02-23 23:01:59 +08:00
modalMobileSearch Moderator Delegation GUI 2021-06-18 15:46:51 -04:00
modalOpenExternalResource Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
modalPasswordUnsave Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalPhoneCollection Use sentence case for all card titles 2020-09-29 17:12:32 -04:00
modalPreorderContent Preorder cleanup 2022-06-28 13:36:18 +08:00
modalPublish Publish revamp (Part 2) (#1781) 2022-07-11 16:12:37 +02:00
modalPublishPreview Publish revamp (Part 2) (#1781) 2022-07-11 16:12:37 +02:00
modalRemoveCard Fix doAbandonClaim (#699) 2022-01-14 14:26:03 -05:00
modalRemoveCollection Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
modalRemoveComment Allow moderators to delete comment (#235) 2021-11-08 12:22:40 -05:00
modalRemoveFile Fix doAbandonClaim (#699) 2022-01-14 14:26:03 -05:00
modalRepost Fix crashing when uri has spaces 2022-05-02 09:39:01 -04:00
modalRevokeClaim Help hints + channel removal 2022-06-06 16:53:36 -04:00
modalRewardCode FAQ stuff (#109) 2021-10-21 16:21:51 -04:00
modalRouter Playlists v2: Refactors, touch ups + Queue Mode (#1604) 2022-07-13 10:59:59 -03:00
modalSendTip Add CommentCreate to Modal on Mobile 2022-02-08 12:35:40 -05:00
modalSetReferrer Odysee specific changes and other misc improvements (#219) 2021-11-03 15:47:19 -04:00
modalSocialShare Minor design fixes in modals (#1711) 2022-06-20 13:51:57 +02:00
modalSupportsLiquidate Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalSyncEnable fix sync clean wallet bug 2020-09-21 14:11:25 -04:00
modalTransactionFailed copy 2021-07-19 17:39:59 -04:00
modalUpgrade Fix scrollbar in upgrade modal (#7076) 2021-09-13 11:35:26 -04:00
modalViewImage Zoomable image viewer in Markdown (posts and comments) 2021-01-27 10:06:31 -05:00
modalWalletDecrypt Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalWalletEncrypt Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalWalletUnlock Desktop cherry-pick: "7240 Integrate lbry redux and lbryinc" 2021-10-19 20:40:07 +08:00
modalYoutubeWelcome yt welcome recon 2021-07-19 17:33:23 -04:00
modal.jsx add aria-label for modal close button (X) 2021-07-13 18:23:45 -05:00