bigcommerce / catalyst

Catalyst - for Composable Commerce
https://catalyst-demo.site
MIT License
91 stars 64 forks source link

feat: remove the need of using the `BIGCOMMERCE_ACCESS_TOKEN` #1261

Closed chanceaclark closed 1 month ago

chanceaclark commented 1 month ago

What/Why?

[!TIP] Reviewing by commit will be helpful.

Removes the need of using the BIGCOMMERCE_ACCESS_TOKEN to fetch any data. If the environment variable is present, it'll fetch shipping zone from the management API, otherwise it'll regress back to fetching all countries and states.

Testing

With an access token

Screenshot 2024-08-13 at 17 19 04

Without an access token

Screenshot 2024-08-13 at 17 30 39

changeset-bot[bot] commented 1 month ago

🦋 Changeset detected

Latest commit: f0690e6c08f484a6a1e4e1721b08524f8926e943

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

This PR includes changesets to release 2 packages | Name | Type | | ---------------------------- | ----- | | @bigcommerce/catalyst-core | Minor | | @bigcommerce/catalyst-client | 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

vercel[bot] commented 1 month ago

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 14, 2024 3:30pm
6 Skipped Deployments | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **catalyst** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst/8mezytoYhfKAKCjcBgNBuZ1cn4n2)) | | | Aug 14, 2024 3:30pm | | **catalyst-1millionproducts-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-1millionproducts-store/DMAyp5YjdnUo2JqHBoWE7uHVmBQc)) | [Visit Preview](https://catalyst-1millionproducts-store-git-9599d7-bigcommerce-platform.vercel.app) | | Aug 14, 2024 3:30pm | | **catalyst-au** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-au/9ruhjovZo5vsqjQUkophoMZ2KkaC)) | [Visit Preview](https://catalyst-au-git-chore-shipping-zones-bigcommerce-platform.vercel.app) | | Aug 14, 2024 3:30pm | | **catalyst-test-store** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-test-store/DXgiuZjYu9PJ5UA2y6USEXANHiG5)) | [Visit Preview](https://catalyst-test-store-git-chore-shipp-590252-bigcommerce-platform.vercel.app) | | Aug 14, 2024 3:30pm | | **catalyst-uk** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-uk/3AxVXtAV9kbn7DBMmvKJTQYJYEEQ)) | [Visit Preview](https://catalyst-uk-git-chore-shipping-zones-bigcommerce-platform.vercel.app) | | Aug 14, 2024 3:30pm | | **catalyst-unstable** | ⬜️ Ignored ([Inspect](https://vercel.com/bigcommerce-platform/catalyst-unstable/YE62ZRhnBhRn7kztfEtNAJuDmToE)) | [Visit Preview](https://catalyst-unstable-git-chore-shipping-zones-bigcommerce-platform.vercel.app) | | Aug 14, 2024 3:30pm |
github-actions[bot] commented 1 month ago

⚡️🏠 Lighthouse report

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