-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create My Books Dropper #8019
Merged
mekarpeles
merged 41 commits into
internetarchive:master
from
jimchamp:refactor/generic-dropper
Sep 21, 2023
Merged
Create My Books Dropper #8019
Changes from 34 commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
a818eab
Create My Books Dropper using generic dropper
jimchamp e47eb35
Create JS classes for My Books dropper components
jimchamp 2db3a5e
Add list functionality to dropper
jimchamp a150988
Adds lists to search results droppers
jimchamp 9da52c3
Clean up code
jimchamp 7f5ff1f
Fix linting errors
jimchamp f1be6ae
Disable My Books Dropper via config
jimchamp 831004a
Use correct worksearch dropper
jimchamp 78d9671
Remove My Books Dropper from /subjects pages
jimchamp 662dac1
Use old styling for author page, orphaned editions
jimchamp 8d70c0c
Adjust testing and bundlesize thresholds
jimchamp 48b2019
Remove active lists showcase
jimchamp c5d59ed
Remove feature flag
jimchamp 63be412
Disable dropper when not logged in
jimchamp 1856506
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 2c321c7
Prevent dropper closing on list click
jimchamp dcdc23e
Populate list creation calls with correct data
jimchamp cb1a7af
Revert "Remove feature flag"
jimchamp d2a0b09
Asynchronously load lists once per page
jimchamp e93e35a
Add Dropper tests
jimchamp 9952398
Restructure my-books directory
jimchamp 3aa080b
Reinstate active lists showcase
jimchamp f4ec53b
Add work checkbox to search result items
jimchamp fcbfe07
Fix updating "saving..." message
jimchamp 0426419
Add more tests
jimchamp 8abd55d
Fix bugs after rebase
jimchamp 1d21101
Modify store API
jimchamp acdef29
Ensure disabled droppers cannot open
jimchamp ce0938f
Check if edition before accessing `works` list
jimchamp cc1dc5a
Increment bundlesize threshold for admin page
jimchamp f3bf182
Remove unhelpful comment
jimchamp 144441c
Add dropper event methods
jimchamp bfa1299
Redirect to login on disabled dropper arrow click
jimchamp c02e60f
Remove unused data attribute
jimchamp 0c8bc93
Fix store bugs
jimchamp e6c31f2
Remove unused class member
jimchamp 78c0426
Use list key instead of default cover URL
jimchamp 86d3490
Access data attribute correctly
jimchamp db954ac
Pass list cover URL to new showcase item
jimchamp a56313d
Update openlibrary/plugins/openlibrary/js/my-books/index.js
jimchamp 12230de
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What happens if there is a request error/failure?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nothing now, but maybe we trigger a toast message?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Quick note: any errors are meant to be handled by the caller of this function. Whatever we decide to do on list creation failure will be included inside of a
catch()
call, here:openlibrary/openlibrary/plugins/openlibrary/js/my-books/ReadingLists.js
Lines 379 to 383 in 965c75f