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

chore: use new searchbox #761

Merged
merged 4 commits into from
Aug 17, 2024
Merged

chore: use new searchbox #761

merged 4 commits into from
Aug 17, 2024

Conversation

rjborba
Copy link
Contributor

@rjborba rjborba commented Aug 13, 2024

Adds the new searchbox.

It has some issues, but next release should fix most of them.

Copy link

vercel bot commented Aug 13, 2024

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

Name Status Preview Comments Updated (UTC)
orama-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 17, 2024 5:05am

@@ -11,7 +11,7 @@ export default defineConfig({
site: "https://docs.orama.com",
vite: {
ssr: {
noExternal: ['nanoid']
noExternal: ['nanoid', '@orama/react-components']
Copy link
Collaborator

Choose a reason for hiding this comment

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

in memory of the hell behind this line.... 😄

api_key: 'NKiqTJnwnKsQCdxN7RyOBJgeoW5hJ594',
endpoint: 'https://cloud.orama.run/v1/indexes/orama-docs-bzo330'
})
defineCustomElements()

Copy link
Collaborator

Choose a reason for hiding this comment

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

  • to be removed with the next release of @orama/react-components

import { SearchBox, SearchButton } from '@orama/searchbox'
import '@orama/searchbox/dist/index.css'
import { OramaSearchBox, defineCustomElements } from '@orama/react-components'
import '@orama/react-components/dist/index.css'
Copy link
Collaborator

Choose a reason for hiding this comment

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

style should be already bundled actually, if you remove this import I expect you to not have problems with style

eq: currentCategory
}
}
: {}
Copy link
Collaborator

@g-francesca g-francesca Aug 13, 2024

Choose a reason for hiding this comment

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

not sure, but maybe we don't need really need this if it's used for facets

  • check if we need to add add this where

Copy link
Collaborator

Choose a reason for hiding this comment

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

checked that we need it to filter between open source and cloud doc

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.

3 participants