Skip to content

Commit 31e2db8

Browse files
committed
update orama core and update logo
1 parent 31273fd commit 31e2db8

6 files changed

Lines changed: 96 additions & 32 deletions

File tree

apps/site/components/Common/Searchbox/Search.tsx

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ import classNames from 'classnames';
1818
import Image from 'next/image';
1919
import Link from 'next/link';
2020
import { useLocale, useTranslations } from 'next-intl';
21-
import { useTheme } from 'next-themes';
2221
import { type FC, type PropsWithChildren } from 'react';
2322

2423
import styles from './search.module.css';
@@ -30,12 +29,9 @@ type SearchProps = PropsWithChildren & {
3029

3130
export const Search: FC<SearchProps> = ({ onChatTrigger }) => {
3231
const locale = useLocale();
33-
const { resolvedTheme } = useTheme();
3432
const t = useTranslations();
3533
const { searchTerm } = useSearchContext();
3634

37-
const oramaLogo = `https://website-assets.oramasearch.com/orama-when-${resolvedTheme}.svg`;
38-
3935
return (
4036
<>
4137
<SearchInput.Wrapper className={styles.searchInputWrapper}>
@@ -45,9 +41,6 @@ export const Search: FC<SearchProps> = ({ onChatTrigger }) => {
4541
ariaLabel={t('components.search.searchPlaceholder')}
4642
placeholder={t('components.search.searchPlaceholder')}
4743
className={styles.searchInput}
48-
searchParams={{
49-
groupBy: 'siteSection',
50-
}}
5144
/>
5245
</SearchInput.Wrapper>
5346

@@ -215,7 +208,13 @@ export const Search: FC<SearchProps> = ({ onChatTrigger }) => {
215208
>
216209
<small>{t('components.search.poweredBy')}</small>
217210
<Image
218-
src={oramaLogo}
211+
src="/static/logos/orama-logo-icon.svg"
212+
alt={t('components.search.poweredBy') + ' Orama'}
213+
width="22"
214+
height="15"
215+
/>
216+
<Image
217+
src="/static/logos/orama-logo.svg"
219218
alt={t('components.search.poweredBy') + ' Orama'}
220219
width="62"
221220
height="22"

apps/site/components/Common/Searchbox/index.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,12 @@ import styles from './index.module.css';
1111
import { Search } from './Search';
1212

1313
// TODO: test collection, replace with production collection and env variables
14-
const oramaClient = new CollectionManager({
15-
url: 'https://atlantis.cluster.oramacore.com',
16-
collectionID: 'si0xduw9p7z52s5q91d45d82',
17-
readAPIKey: '6O3o7uKE3aoHN6RUWLtKKQbMNNikAupR',
14+
const collectionManager = new CollectionManager({
15+
collectionID: '85f541b3-b691-4d3e-9874-e7b3b4630adb',
16+
apiKey: 'c1_d2ZKYw9ugj_tyVyWE_o$$Y-RBNf9GcTFfocEufnuRl7rCl3KJlhNJnP2MG-',
17+
cluster: {
18+
readURL: 'https://staging.collections.orama.com',
19+
},
1820
});
1921

2022
const InnerSearchBox: FC<PropsWithChildren> = () => {
@@ -63,8 +65,8 @@ const OramaSearch: FC<PropsWithChildren> = () => {
6365
>
6466
<Modal.Inner className={styles.modalInner}>
6567
<Modal.Content className={styles.modalContent}>
66-
<SearchRoot client={oramaClient}>
67-
<ChatRoot client={oramaClient}>
68+
<SearchRoot client={collectionManager}>
69+
<ChatRoot client={collectionManager}>
6870
<InnerSearchBox />
6971
</ChatRoot>
7072
</SearchRoot>

apps/site/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"@orama/react-components": "^0.8.1",
4444
"@oramacloud/client": "^2.1.4",
4545
"@orama/ui": "^0.0.6",
46-
"@orama/core": "^0.1.11",
46+
"@orama/core": "^1.0.0-rc.3",
4747
"@radix-ui/react-slot": "^1.2.3",
4848
"@radix-ui/react-tabs": "^1.1.12",
4949
"@radix-ui/react-toast": "^1.2.14",
Lines changed: 40 additions & 0 deletions
Loading
Lines changed: 14 additions & 0 deletions
Loading

pnpm-lock.yaml

Lines changed: 26 additions & 17 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)