-
Notifications
You must be signed in to change notification settings - Fork 683
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
My Account - Create wishlist UI #2766
Conversation
|
@revanth0212 this work looks really good. UX approved. |
import { useState, useCallback } from 'react'; | ||
|
||
/** | ||
* @function |
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.
Why @function js doc ?
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 is part of the new Docs initiate we have started for the code. I modeled this after @jcalcaben's previous PR. @jcalcaben is this as expected?
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.
@larsroettig this is used to help me auto-generate reference docs from the source code
@revanth0212 yes, this looks like the proper format
@@ -1,3 +1,52 @@ | |||
.root { |
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.
Empty root style ?
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 good, some suggestions to clean things up.
packages/venia-ui/lib/components/WishlistPage/createWishlist.ee.js
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/WishlistPage/createWishlist.ee.js
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/WishlistPage/createWishlist.ee.js
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/WishlistPage/createWishlist.ee.js
Outdated
Show resolved
Hide resolved
</Field> | ||
<RadioGroup | ||
classes={radioGroupClasses} | ||
field="listtype" |
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.
Very odd, but I don't see listtype
or sharing_code
in the createWishlist
mutation. If GraphQL does not support this field on creation, we should remove it.
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 feel that looks like a mistake. sharing_code
seems to be part of the WishList
interface though, hence I would say, let's have it in the UX till the WishList
feature is available through GQL.
packages/venia-ui/lib/components/WishlistPage/createWishlist.css
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/WishlistPage/createWishlist.css
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/WishlistPage/createWishlist.css
Outdated
Show resolved
Hide resolved
packages/venia-ui/lib/components/WishlistPage/__tests__/createWishlist.ee.spec.js
Outdated
Show resolved
Hide resolved
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.
Please loop in the GraphQL team just in case we need to add list visibility as an input field; this looks perfect with current coverage though. Nice work 👍
Thanks, @tjwiebell. I have created an issue on the architecture board asking this question. |
@revanth0212 Please check below observations -
|
…agento/pwa-studio into revanth/my_account_create_list
Thanks for the check Dev. I have addressed the order of the radio buttons. Regarding the link, I haven't changed it and I think it is as expected. |
@schensley Hope 2nd observations is expected? |
@dpatil-magento @revanth0212 |
Description
Added the Create Wishlist logic.
Note: This feature is built ahead of the GQL support. Due to that, the create list mutation is not available and will be handled in PWA-989.
Note to @schensley: The mobile mocks had the buttons placed below the radio button group but since I am using the dialog component they are placed at the bottom. Do we have a standard that we would like to follow for all the mobile dialogs/drawers about where to place the buttons?
Related Issue
Closes PWA-629
Verification Stakeholders
@schensley
Verification Steps
/wishlist
.Create a List
button.Screenshots / Screen Captures (if appropriate)
Checklist