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 Search component #1239

Merged
merged 2 commits into from
Aug 8, 2024
Merged

feat(core): add Search component #1239

merged 2 commits into from
Aug 8, 2024

Conversation

jorgemoya
Copy link
Contributor

What/Why?

Move most layout/styling logic to Search ui component.

Testing

Locally.

Copy link

changeset-bot bot commented Aug 7, 2024

🦋 Changeset detected

Latest commit: e7c9d15

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 Aug 7, 2024

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

Name Status Preview Comments Updated (UTC)
catalyst-latest 🛑 Canceled (Inspect) 💬 Add feedback Aug 7, 2024 7:29pm
6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
catalyst ⬜️ Ignored (Inspect) Aug 7, 2024 7:29pm
catalyst-1millionproducts-store ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 7:29pm
catalyst-au ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 7:29pm
catalyst-test-store ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 7:29pm
catalyst-uk ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 7:29pm
catalyst-unstable ⬜️ Ignored (Inspect) Visit Preview Aug 7, 2024 7:29pm

@jorgemoya jorgemoya marked this pull request as ready for review August 7, 2024 19:26
@jorgemoya jorgemoya requested a review from a team as a code owner August 7, 2024 19:26
Copy link
Contributor

github-actions bot commented Aug 7, 2024

⚡️🏠 Lighthouse report

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

Comment on lines +20 to +26
const isSearchQuery = (data: unknown): data is QuickSearchResults => {
if (typeof data === 'object' && data !== null && 'products' in data) {
return true;
}

return false;
};
Copy link
Contributor

Choose a reason for hiding this comment

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

🍹 Can we use zod here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will have to tackle this in a different PR.

@jorgemoya jorgemoya added this pull request to the merge queue Aug 8, 2024
Merged via the queue into main with commit 9a37c6a Aug 8, 2024
13 checks passed
@jorgemoya jorgemoya deleted the search-component branch August 8, 2024 19:20
@github-actions github-actions bot mentioned this pull request Aug 8, 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.

2 participants