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 customer account orders functionality #1639

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

bc-alexsaiannyi
Copy link
Contributor

@bc-alexsaiannyi bc-alexsaiannyi commented Nov 13, 2024

What/Why?

This PR combines and brings Order functionality to Customer's Account.

Testing

locally

Account_Orders.mov

Copy link

changeset-bot bot commented Nov 13, 2024

🦋 Changeset detected

Latest commit: 2ec0e3e

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 Minor

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 Nov 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 Dec 9, 2024 9:06pm
catalyst-soul ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 9, 2024 9:06pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Dec 9, 2024 9:06pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 9:06pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 9:06pm
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Dec 9, 2024 9:06pm

@bc-alexsaiannyi bc-alexsaiannyi changed the title Account orders feat(core): add customer account orders functionality Nov 13, 2024
@bookernath
Copy link
Contributor

@bc-alexsaiannyi I think we can squash this into one commit with a single changeset

Copy link
Contributor

@chanceaclark chanceaclark left a comment

Choose a reason for hiding this comment

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

I think there's a bit of refactoring needed here to optimize for performance. I left 🍹's where I think that is the case. I'm not blocking this PR from going through though, but we should probably tackle these optimizations during release freeze.

Copy link
Contributor

@jorgemoya jorgemoya left a comment

Choose a reason for hiding this comment

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

For order details, we should rely on slugs to fetch details. Lets create a page for /account/orders/[id] to display order content, instead of using search params to know what to render.

We also should rely more on Suspense boundaries and loading states to make sure this page is speedy.

@bc-alexsaiannyi
Copy link
Contributor Author

Hey @jorgemoya, I think that mentioned concerns have been addressed in separate PRs that are already merged in this branch. Can you please look at it once more if we're good to go🙏

bc-alexsaiannyi and others added 2 commits December 9, 2024 16:02
feat(core): add order details components & update page data

feat(core): add translations for order details page, small fixes for multi consignments order

refactor(core): update header and account home page links after refactoring

fix(core): simplify UI with respect to available data

fix(core): move orders connection under customer in respect with api

fix(core): update quantity of items in order truncated card

refactor(core): update getTranslations for orders

fix(core): separate promotions and coupons for order summary

refactor(core): update OrderItemFragment according to API changes

refactor(core): update in respect with storefront token changes

feat(core): add images for order items

refactor(core): Next15 upgrade asynchronous searchparams for orders page

feat(core): add path to PDP for Orders

fix(core): update styles for product snippet

refactor(core): add filters to orders query

refactor(core): update order page to use slug

refactor(core): add suspense boundaries & skeleton for product snippet in orders

test(core): add account orders test
@chanceaclark chanceaclark added this pull request to the merge queue Dec 9, 2024
Merged via the queue into main with commit ae2c6cd Dec 9, 2024
13 of 14 checks passed
@chanceaclark chanceaclark deleted the account-orders branch December 9, 2024 22:20
@github-actions github-actions bot mentioned this pull request Dec 9, 2024
Copy link
Contributor

github-actions bot commented Dec 9, 2024

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-latest-pn9rpraxb-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 85
🟢 Accessibility 96
🟢 Best practices 100
🟠 SEO 82

📱 Mobile

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants