-
Notifications
You must be signed in to change notification settings - Fork 71
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(site): add orama search #1948
feat(site): add orama search #1948
Conversation
Deploying rivet with Cloudflare Pages
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
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.
PR Summary
Added search functionality to the site header using OramaSearchBox, implementing a modal-based search interface with keyboard shortcut display.
- Hardcoded API key in
site/src/components/v2/HeaderSearch.tsx
poses a security risk and should be moved to environment variables - Missing keyboard shortcut implementation for Cmd+K despite UI showing the shortcut in
HeaderSearch.tsx
- No error handling for failed API requests in
HeaderSearch.tsx
- Using 'latest' tag for @next/third-parties and '*' for react/framer-motion in
package.json
could lead to breaking changes - Outdated eslint-config-next (13.0.2) compared to Next.js version (^15.0) in
package.json
3 file(s) reviewed, 3 comment(s)
Edit PR Review Bot Settings | Greptile
@@ -24,6 +24,7 @@ | |||
"@mdx-js/react": "^2.1.5", | |||
"@next/mdx": "^14.0.1", | |||
"@next/third-parties": "latest", |
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.
style: using 'latest' tag can lead to unexpected breaking changes in production. Consider pinning to a specific version
index={{ | ||
endpoint: | ||
"https://cloud.orama.run/v1/indexes/rivet-gg-b87fiw", | ||
api_key: "dcVm1fAKZeTdOfGFZCCH9xWiH7JeYCQZ", |
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.
logic: API key should not be hardcoded in the source code. Move this to an environment variable.
<Kbd className="absolute right-[0.3rem] top-[0.3rem] hidden sm:flex"> | ||
<Kbd.Cmd />K | ||
</Kbd> |
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.
logic: Keyboard shortcut (Cmd+K) is displayed but no keyboard event handler is implemented to handle this shortcut
4b5dfcf
to
e57ca0d
Compare
3670f55
to
fcee7b2
Compare
Merge activity
|
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
Changes