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

Streamable cart #1913

Merged
merged 4 commits into from
Jan 29, 2025
Merged

Streamable cart #1913

merged 4 commits into from
Jan 29, 2025

Conversation

apledger
Copy link
Contributor

What/Why?

Refactored Cart to use Streamable pattern. Also fixed positioning of Toaster.

Testing

CleanShot 2025-01-16 at 11 59 47@2x

CleanShot.2025-01-16.at.13.54.30.mp4

@apledger apledger requested a review from a team as a code owner January 16, 2025 18:55
Copy link

changeset-bot bot commented Jan 16, 2025

🦋 Changeset detected

Latest commit: 3db640e

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 Jan 16, 2025

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

Name Status Preview Comments Updated (UTC)
catalyst-canary ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jan 29, 2025 7:16pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Jan 29, 2025 7:16pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2025 7:16pm
catalyst-soul ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2025 7:16pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Jan 29, 2025 7:16pm


useEffect(() => {
if (lastResult?.error) {
console.log(lastResult.error);
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we throw a toast here?

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.

Now that we have the Streamable pattern in the component, we should actually pass in promises instead of awaiting for the cart. Is this something you planned to do in a different PR? I can also help with this, let me know.

Copy link
Collaborator

@migueloller migueloller 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. No additional comments other than the ones that have already been made

@apledger apledger added this pull request to the merge queue Jan 29, 2025
Merged via the queue into canary with commit 1cead1d Jan 29, 2025
10 checks passed
@apledger apledger deleted the ap/streamable-cart branch January 29, 2025 19:35
@github-actions github-actions bot mentioned this pull request Jan 29, 2025
Copy link
Contributor

⚡️🏠 Lighthouse report

Lighthouse ran against https://catalyst-canary-2thz3q3m2-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 99
🟢 Accessibility 92
🟠 Best practices 78
🟠 SEO 82

📱 Mobile

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

Category Score
🟠 Performance 86
🟢 Accessibility 92
🟠 Best practices 78
🟠 SEO 85

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.

4 participants