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

Integrate Orama for search #6257

Merged
merged 53 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
6377ab1
feat: adds basic orama structure
micheleriva Jan 16, 2024
dfcea9f
Merge branch 'main' into feat/integrate-orama
micheleriva Jan 16, 2024
fdb40e9
feat: adds searchbox
micheleriva Jan 17, 2024
3bfc095
Merge branch 'main' into feat/integrate-orama
micheleriva Jan 17, 2024
f037bdb
Merge branch 'main' into feat/integrate-orama
micheleriva Jan 18, 2024
2dc00c1
feat: integrates searchbox
micheleriva Jan 19, 2024
5e2325c
Merge branch 'main' into feat/integrate-orama
micheleriva Jan 19, 2024
052a635
style: moves components to separate files
micheleriva Jan 19, 2024
5a8b189
feat: wip on searchbox
micheleriva Jan 19, 2024
cfacfca
feat: adds basic mobile styles
micheleriva Jan 19, 2024
9de0148
tmp: work in progress
micheleriva Jan 21, 2024
7c01328
Merge branch 'main' into feat/integrate-orama
micheleriva Jan 21, 2024
8a860b7
work in progress
micheleriva Jan 22, 2024
69bc5ca
feat: improves search page
micheleriva Jan 22, 2024
a24870d
style: addresses feedbacks on code style
micheleriva Jan 22, 2024
7ce813e
style: addresses feedbacks on code style
micheleriva Jan 22, 2024
56ce384
feat: adds texts management via i18n
micheleriva Jan 22, 2024
9c85831
fix: encodes URL components
micheleriva Jan 22, 2024
5e3cef2
style: addresses feedback
micheleriva Jan 22, 2024
a7aab20
style: addresses feedback
micheleriva Jan 22, 2024
ebc3742
docs: adds comments to Orama sync script
micheleriva Jan 22, 2024
bbc98da
style: addresses feedback
micheleriva Jan 22, 2024
5aab3cc
style: addresses feedback
micheleriva Jan 22, 2024
e1fde64
style: addresses feedback
micheleriva Jan 22, 2024
ff2086f
refactor: moves components and hooks into the correct folder structure
micheleriva Jan 22, 2024
2a7052d
refactor: moves components and hooks into the correct folder structure
micheleriva Jan 22, 2024
97f5de4
refactor: moves components and hooks into the correct folder structure
micheleriva Jan 22, 2024
5b773b8
refactor: moves components and hooks into the correct folder structure
micheleriva Jan 22, 2024
765033c
refactor: moves components and hooks into the correct folder structure
micheleriva Jan 22, 2024
f22681d
refactor: moves components and hooks into the correct folder structure
micheleriva Jan 22, 2024
cfd39e8
Merge branch 'main' into feat/integrate-orama
micheleriva Jan 22, 2024
da148e2
style: addresses feedback
micheleriva Jan 22, 2024
f876fa6
style: addresses feedback
micheleriva Jan 22, 2024
3be81f7
style: addresses feedback
micheleriva Jan 22, 2024
b1a012a
style: addresses feedback
micheleriva Jan 22, 2024
eb0915b
style: addresses feedback
micheleriva Jan 22, 2024
531cf0c
ci: adds Orama sync script to gh workflows
micheleriva Jan 23, 2024
f4e25b4
chore: removes useless log
micheleriva Jan 23, 2024
18c764e
Merge branch 'nodejs:main' into feat/integrate-orama
micheleriva Jan 24, 2024
c0c5c9f
style: addresses feedback and adds tests
micheleriva Jan 24, 2024
c86e7aa
feat: adds footer
micheleriva Jan 24, 2024
2aaf9e5
fix: fixes logo in light mode
micheleriva Jan 24, 2024
602856b
updates orama dependencies
micheleriva Jan 24, 2024
3b9d5d9
Merge branch 'main' into feat/integrate-orama
micheleriva Feb 2, 2024
ff65300
chore: updates orama dependencies to latest version
micheleriva Feb 2, 2024
38ccff5
Merge branch 'main' into feat/integrate-orama
micheleriva Feb 21, 2024
05ceb46
chore: updates Orama client
micheleriva Feb 22, 2024
e01a445
fix: fixes unexpected close of modal on click
micheleriva Feb 22, 2024
28a7bce
fix: fixes Orama logo
micheleriva Feb 22, 2024
9f57a16
chore: removes unused test attribute
micheleriva Feb 22, 2024
75230d0
fix: code-reviews
ovflowd Feb 23, 2024
f0e09ba
chore: minor copy changes
ovflowd Feb 23, 2024
0c62be5
fix: aggregate results and make them unique
ovflowd Feb 23, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion components/Common/Search/States/WithSearchBox.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,11 @@ export const WithSearchBox: FC<SearchBoxProps> = ({ onClose }) => {

return (
<div className={styles.searchBoxModalContainer}>
<div className={styles.searchBoxModalPanel} ref={searchBoxRef}>
<div
className={styles.searchBoxModalPanel}
ref={searchBoxRef}
data-test="1"
micheleriva marked this conversation as resolved.
Show resolved Hide resolved
>
<div className={styles.searchBoxInnerPanel}>
<div className={styles.searchBoxInputContainer}>
<button
Expand Down
2 changes: 1 addition & 1 deletion hooks/react-client/useClickOutside.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const useClickOutside = <T extends HTMLElement>(
useEffect(() => {
const element = ref?.current;
const handleClickOutside = (event: Event) => {
if (element && !element.contains(event.currentTarget as Node)) {
if (element && !element.contains(event.target as Node)) {
fn();
}
};
Expand Down
Loading