-
Notifications
You must be signed in to change notification settings - Fork 152
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
spike: saving artworks to lists on other grids #11978
Conversation
ca3ef14
to
97baa1f
Compare
{!!artworkEntityId && ( | ||
<SelectListsForArtworkModalQueryRender | ||
artworkID={artworkEntityId} | ||
onClose={clearArtworkId} | ||
onSave={handleSaveListsForArtwork} | ||
/> | ||
)} |
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.
This approach to displaying the modal helps us solve this and some other problems
showHoverDetails={showHoverDetails} | ||
disableRouterLinking={disableRouterLinking} | ||
to={to} | ||
enableSaveButtonForLists |
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.
In the future, this prop will not be required and these changes will be propagated to all components (FlatGridItem
, ShelfArtwork
, etc)
fragment SaveArtworkToListsButton_artwork on Artwork { | ||
id | ||
internalID | ||
is_saved: isSaved |
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.
I think we can change that to:
is_saved: isSaved | |
isSaved |
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.
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.
Looks great 👍 My only question would be the toast inside the artwork, vs at the standard bottom right of the page, but that's probably been settled by design.
@damassi the toast is top center in Force actually |
Ah, I thought that was only in a few spots, but most positions its at the bottom right (like in our other apps). Hm |
Just earlier today Ryan told me that design team has signed off on a global change to position the toasts in Force towards the bottom right of the viewport. Does anyone foresee complications? |
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.
LGTM
Co-authored-by: Anandaroop Roy <anandaroop.roy+github@gmail.com>
it is useful to know this. thank you for sharing this info! |
The type of this PR is: Spike
Review app: artwork-saving
Demo for saves page
demo-1.mp4
Demo for artist artworks page
demo-2.mp4