-
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.
6b74594
to
1aca36a
Compare
@ovflowd We've rebased the code and fixed the tab cycle. About the broken Links, it may be a deeper discussion. |
I didn't get your question; could you rephrase it? |
I think they mean that https://nodejs.org/some-url will default to https://nodejs.org/en/some-url. |
Exactly it. Sorry, I dropped the message pretty late yesterday. |
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 :) |
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.