-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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(search): implements Orama searchbox #6908
base: main
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Sorry @micheleriva this has been idle for too long - it's been a messy few weeks. Are you looking for any particular feedback on the approach? |
Looks like this is a draft yet, and most of the styles feel broken 🤔 |
Hey @bmuenzenmeyer, @ovflowd I'm sorry, I completely missed your comments. We found some bugs in the searchbox and dedicated more time to stabilize it. We've been testing it for weeks on other websites so we believe it is finally ready. I still have to fix a small couple of things, then I'll open it for review 🙏 |
FYI @micheleriva build is failing:
Did you try a prod build locally? |
18f2004
to
b279f6f
Compare
Also it'd be great if there was some margin between the results |
This comment was marked as resolved.
This comment was marked as resolved.
That's fine by me if these are the links within the MDX AI results |
description: ({ | ||
path, | ||
pageSectionTitle, | ||
}: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you extract this from an inline type? Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
path: string; | ||
pageSectionTitle: string; | ||
}) => { | ||
return getFormattedPath(path, pageSectionTitle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No return statement and arrow needed just direct => getFormattedPath(path, pageSectionTitle);
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm happy with this landing as it is. Please just address the final comments and if possible, discard the package-lock.json changes from this PR and rerun npm i
and then commit the package-lock
You can do that by doing: git checkout origin/main -- package-lock.json
Also @micheleriva any chance your Search component can allow us to override the I'm fine merging as it is, but would appreciate that change ✨ |
@ovflowd I completely understand and agree with you. Will provide a way to avoid full-page refreshes with an update in the coming weeks |
Oh yeah, no rush, we can follow-up on that <3 |
Is it fine if you are able to prevent default behavior and use router programatically? Like:
|
1aca36a
to
4e14fb9
Compare
@ovflowd hi! I think you missed this message |
Oh, apologies, yeah feel free to implement this :) |
4e14fb9
to
05d2d8e
Compare
Hi @ovflowd . I believe we handled all suggested changes / bugs. About the "soft redirect" using router, we're still working on it. Would appreciate if we can handle it in a next PR. Let me know if there is anything still pending. Thanks! |
05d2d8e
to
d1b2fcd
Compare
d1b2fcd
to
84d73c8
Compare
Description
As discussed with @ovflowd, this PR implements the official Orama Searchbox.
Validation
Related Issues
Check List
npm run format
to ensure the code follows the style guide.npm run test
to check if all tests are passing.npx turbo build
to check if the website builds without errors.