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): fetch and show digital items in Cart #713

Merged
merged 1 commit into from
Mar 28, 2024
Merged

Conversation

jorgemoya
Copy link
Contributor

Builds of #711 to show correct pricing info.

What/Why?

Fetch and show digital items in Cart.

Screenshot 2024-03-27 at 2 25 17 PM

Testing

Locally

@jorgemoya jorgemoya requested a review from a team as a code owner March 27, 2024 19:26
Copy link

changeset-bot bot commented Mar 27, 2024

🦋 Changeset detected

Latest commit: c7cadde

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 Mar 27, 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 Mar 28, 2024 8:37pm
4 Ignored Deployments
Name Status Preview Comments Updated (UTC)
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 8:37pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 8:37pm
catalyst-storybook ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 8:37pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Mar 28, 2024 8:37pm

@jorgemoya jorgemoya changed the title Add digital items feat(core): fetch and show digital items in Cart Mar 27, 2024
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.

Looks good on my end, few 🍹's but all :gucci:

apps/core/messages/en.json Outdated Show resolved Hide resolved
@@ -44,19 +44,5 @@ export async function updateProductQuantity({
throw new Error('Failed to change product quantity in Cart');
}

// reset shipping estimation on update product quantity
cookies().set({
Copy link
Contributor

Choose a reason for hiding this comment

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

🎉

export const CartItem = async ({ product }: { product: Product }) => {
const t = await getTranslations('Cart');

const extractCartlineItemsData = ({
Copy link
Member

Choose a reason for hiding this comment

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

🍹 Not from this PR but maybe a quick win, thoughts on changing CartItemCounter to avoid this?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Like pass in props instead of a single object?

Copy link
Contributor

⚡️🏠 Lighthouse report

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

Category Score
🟢 Performance 98
🟢 Accessibility 100
🟠 Best practices 78
🟢 SEO 92

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

@jorgemoya jorgemoya added this pull request to the merge queue Mar 28, 2024
Merged via the queue into main with commit 643033a Mar 28, 2024
11 checks passed
@jorgemoya jorgemoya deleted the add-digital-items branch March 28, 2024 23:15
This was referenced Mar 28, 2024
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.

3 participants