Skip to content
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

Merged
merged 1 commit into from
Aug 23, 2024
Merged

feat(core): add wishlist book #998

merged 1 commit into from
Aug 23, 2024

Conversation

yurytut1993
Copy link
Contributor

@yurytut1993 yurytut1993 commented Jun 13, 2024

What/Why?

This pr adds wish lists book for customer account.
For now customer can:

  • fetch existed wish lists
  • create wish list
  • delete wishlist
  • paginate with wish lists pages

Testing

Locally

wishlist-book.mov

Copy link

changeset-bot bot commented Jun 13, 2024

🦋 Changeset detected

Latest commit: 4e760b7

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-core Patch

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

Copy link

vercel bot commented Jun 13, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
catalyst-latest ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 21, 2024 9:11pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 9:11pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 9:11pm
catalyst-integration-customer-access-token ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 9:11pm
catalyst-test-store ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 9:11pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 9:11pm
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Aug 21, 2024 9:11pm

Copy link
Contributor

@bc-alexsaiannyi bc-alexsaiannyi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

core/messages/en.json Outdated Show resolved Hide resolved
core/app/[locale]/(default)/account/[tab]/page-data.ts Outdated Show resolved Hide resolved
core/app/[locale]/(default)/account/[tab]/page-data.ts Outdated Show resolved Hide resolved
Comment on lines 25 to 32
revalidatePath('/account/wishlists', 'page');

if (newWishlist) {
return {
status: 'success',
data: newWishlist,
};
}
Copy link
Contributor

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? 🤔

Copy link
Contributor Author

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

core/app/[locale]/(default)/account/[tab]/page-data.ts Outdated Show resolved Hide resolved
@chanceaclark
Copy link
Contributor

Closing due to inactivity. Reopen this PR or open a new one if we wish to bring this change in.

@jorgemoya
Copy link
Contributor

@yurytut1993 is this ready for rereview?

@yurytut1993
Copy link
Contributor Author

yurytut1993 commented Aug 21, 2024

@yurytut1993 is this ready for rereview?

@jorgemoya testing showed several minor issues - I'll ping you when I fix it

Copy link
Contributor

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-6drlwa6ny-bigcommerce-platform.vercel.app

🖥️ Desktop

We ran Lighthouse against the changes on a desktop and produced this report. Here's the summary:

Category Score
🟠 Performance 78
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 82

📱 Mobile

We ran Lighthouse against the changes on a mobile and produced this report. Here's the summary:

Category Score
🟢 Performance 99
🟢 Accessibility 100
🟢 Best practices 96
🟠 SEO 85

Copy link
Contributor

@bc-azvierieva bc-azvierieva left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good 👍

@yurytut1993 yurytut1993 merged commit 98d6c79 into wishlist Aug 23, 2024
13 of 14 checks passed
@yurytut1993 yurytut1993 deleted the wishlist-book branch August 23, 2024 16:33
yurytut1993 added a commit that referenced this pull request Sep 13, 2024
…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)
yurytut1993 added a commit that referenced this pull request Sep 13, 2024
…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)
yurytut1993 added a commit that referenced this pull request Sep 17, 2024
…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)
yurytut1993 added a commit that referenced this pull request Sep 30, 2024
…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)
yurytut1993 added a commit that referenced this pull request Sep 30, 2024
…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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants