-
Notifications
You must be signed in to change notification settings - Fork 86
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
feat(core): add wishlist book #998
Conversation
🦋 Changeset detectedLatest commit: 4e760b7 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
848a89a
to
ead6a44
Compare
b49bf7f
to
ce2d7f3
Compare
ce2d7f3
to
6737a8e
Compare
6737a8e
to
5eb4005
Compare
core/app/[locale]/(default)/account/[tab]/_components/addresses-content/address-book.tsx
Outdated
Show resolved
Hide resolved
5eb4005
to
59e4f49
Compare
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
core/app/[locale]/(default)/account/[tab]/_actions/delete-wishlists.ts
Outdated
Show resolved
Hide resolved
.../account/[tab]/_components/wishlist-content/create-wishlist-form/_actions/create-wishlist.ts
Outdated
Show resolved
Hide resolved
revalidatePath('/account/wishlists', 'page'); | ||
|
||
if (newWishlist) { | ||
return { | ||
status: 'success', | ||
data: newWishlist, | ||
}; | ||
} |
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.
Curious about this behavior. Since we revalidate the path, do we ever use the result from data? 🤔
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.
We use this right after the mutation works to update state. Revalidate works slower, so using data from mutations makes interface more fast and responsive. The same for deleting wish list - we delete wish list from list right after successful mutation. But we still need retaliate for correct pagination work
Closing due to inactivity. Reopen this PR or open a new one if we wish to bring this change in. |
59e4f49
to
12f7538
Compare
12f7538
to
59d2fdf
Compare
59d2fdf
to
42157f1
Compare
@yurytut1993 is this ready for rereview? |
42157f1
to
11d9b95
Compare
@jorgemoya testing showed several minor issues - I'll ping you when I fix it |
11d9b95
to
4e760b7
Compare
⚡️🏠 Lighthouse reportLighthouse ran against https://catalyst-latest-6drlwa6ny-bigcommerce-platform.vercel.app 🖥️ DesktopWe ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:
📱 MobileWe ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:
|
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 👍
…tructure feat(core): add delete wishlist mutation (#975) feat(core): add create wishlist mutation (#958) feat(core): update customer account modal component (#1001) feat(core): add wishlist items mutation (#1268) feat(core): delete wishlist items mutation (#1269) feat(core): update delete wishlists mutation (#1273) feat(core): update create wishlist mutation (#1272) feat(core): add wishlist book (#998) Add wishlist test (#1314) Update Wishlist test feat(core): add wishlist drawer (#1182)
…tructure feat(core): add delete wishlist mutation (#975) feat(core): add create wishlist mutation (#958) feat(core): update customer account modal component (#1001) feat(core): add wishlist items mutation (#1268) feat(core): delete wishlist items mutation (#1269) feat(core): update delete wishlists mutation (#1273) feat(core): update create wishlist mutation (#1272) feat(core): add wishlist book (#998) Add wishlist test (#1314) Update Wishlist test feat(core): add wishlist drawer (#1182)
…tructure feat(core): add delete wishlist mutation (#975) feat(core): add create wishlist mutation (#958) feat(core): update customer account modal component (#1001) feat(core): add wishlist items mutation (#1268) feat(core): delete wishlist items mutation (#1269) feat(core): update delete wishlists mutation (#1273) feat(core): update create wishlist mutation (#1272) feat(core): add wishlist book (#998) Add wishlist test (#1314) Update Wishlist test feat(core): add wishlist drawer (#1182)
…tructure feat(core): add delete wishlist mutation (#975) feat(core): add create wishlist mutation (#958) feat(core): update customer account modal component (#1001) feat(core): add wishlist items mutation (#1268) feat(core): delete wishlist items mutation (#1269) feat(core): update delete wishlists mutation (#1273) feat(core): update create wishlist mutation (#1272) feat(core): add wishlist book (#998) Add wishlist test (#1314) Update Wishlist test feat(core): add wishlist drawer (#1182)
…tructure feat(core): add delete wishlist mutation (#975) feat(core): add create wishlist mutation (#958) feat(core): update customer account modal component (#1001) feat(core): add wishlist items mutation (#1268) feat(core): delete wishlist items mutation (#1269) feat(core): update delete wishlists mutation (#1273) feat(core): update create wishlist mutation (#1272) feat(core): add wishlist book (#998) Add wishlist test (#1314) Update Wishlist test feat(core): add wishlist drawer (#1182)
What/Why?
This pr adds wish lists book for customer account.
For now customer can:
Testing
Locally
wishlist-book.mov