Skip to content
Open
Show file tree
Hide file tree
Changes from 75 commits
Commits
Show all changes
99 commits
Select commit Hold shift + click to select a range
7c4f8e5
feat: add new searchbox - initial setup
g-francesca Jun 24, 2025
e4d0c1d
style: search button
g-francesca Jun 24, 2025
086dd84
style: searchbox empty state
g-francesca Jun 25, 2025
8451f80
style: modal search
g-francesca Jun 25, 2025
8ecdf9e
style: prompt wrapper
g-francesca Jun 26, 2025
6ac3d65
fix: layout sliding panel
g-francesca Jun 26, 2025
87db2f9
style: chat sources
g-francesca Jun 26, 2025
40ea1c8
refactor: search component
g-francesca Jul 1, 2025
31273fd
feat: add translations for search component
g-francesca Jul 3, 2025
31e2db8
update orama core and update logo
aileenvl Jul 9, 2025
2a22940
update sync
aileenvl Jul 9, 2025
65ecd9f
update pnpm-lock
aileenvl Jul 9, 2025
834636f
Update apps/site/components/Common/Searchbox/Chat.tsx
aileenvl Jul 10, 2025
f088203
Update apps/site/components/Common/Searchbox/Chat.tsx
aileenvl Jul 10, 2025
3d582dd
Update apps/site/components/Common/Searchbox/Search.tsx
aileenvl Jul 10, 2025
b1fff6a
Update apps/site/components/Common/Searchbox/Search.tsx
aileenvl Jul 10, 2025
e09fa32
Update apps/site/components/Common/Searchbox/Search.tsx
aileenvl Jul 10, 2025
d37297f
fix height and pr comments
aileenvl Jul 10, 2025
954ee99
Merge branch 'main' of https://github.com/oramasearch/nodejs.org
aileenvl Jul 10, 2025
ff59f5b
fix import and add directories for Search and Chat
aileenvl Jul 10, 2025
8d7657e
update icon and orama ui components
aileenvl Jul 18, 2025
43c56bd
rollback translation changes
aileenvl Jul 18, 2025
83a0c1b
update on datasource and ui components
aileenvl Aug 20, 2025
f4e51bf
update env variables
aileenvl Aug 20, 2025
242c667
pr comments and facets added
aileenvl Aug 21, 2025
535d6a8
pr comments
aileenvl Aug 21, 2025
992f1fe
fixes in styles and facets
aileenvl Aug 22, 2025
d73687a
facets search fix
aileenvl Aug 23, 2025
e7a64b9
push facets query fix
aileenvl Aug 23, 2025
dbd4637
feat: adds filters to search
micheleriva Aug 23, 2025
aab05d1
Merge branch 'main' of github.com:oramasearch/nodejs.org
micheleriva Aug 23, 2025
5a7c885
fix facet count
aileenvl Aug 23, 2025
7aa8350
reset searchTerm
aileenvl Aug 23, 2025
89d9d71
old logo
aileenvl Aug 23, 2025
80065bf
fix mobile search
aileenvl Aug 23, 2025
78c4f3f
chat mobile
aileenvl Aug 23, 2025
29f2faf
mobile enhacements
aileenvl Aug 23, 2025
4892e1d
fix blur
aileenvl Aug 26, 2025
db4f272
env variables and dispatcher
aileenvl Aug 26, 2025
e7c235e
change css to tailwind, remove inline styles and add env constant
aileenvl Sep 1, 2025
5e3d6e5
update orama core and add data source
aileenvl Sep 2, 2025
43d8cac
fixes css
aileenvl Sep 8, 2025
ec1c340
Revert "fixes css"
aileenvl Sep 8, 2025
f1d7ac0
Add .env to gitignore to prevent accidental commits
aileenvl Sep 8, 2025
3a209c7
Merge remote-tracking branch 'upstream/main'
g-francesca Sep 9, 2025
d4e0f12
chore: update @orama/ui version
g-francesca Sep 10, 2025
43fc70e
style: review modal style
g-francesca Sep 10, 2025
053ee98
style: review search results style
g-francesca Sep 10, 2025
dc2fbba
fix: arrow navigation and focus style
g-francesca Sep 10, 2025
8fe9b47
feat: open modal via CMD+k
g-francesca Sep 10, 2025
55500e8
fix: SlidingPanel classes
g-francesca Sep 10, 2025
bf19060
fix: chat scroll behaviour
g-francesca Sep 11, 2025
91509d2
refactor: chat interface
g-francesca Sep 11, 2025
76dfd16
fix: sources style not applied
g-francesca Sep 11, 2025
fafbd2b
fix: style of chat panel in light mode
g-francesca Sep 15, 2025
e6e5779
style: fix sources and scroll to bottom style
g-francesca Sep 15, 2025
33c7e7e
fix: collapse source text link
g-francesca Sep 15, 2025
59e3513
style: add chat loading animation
g-francesca Sep 15, 2025
e1acf25
style: mobile toggle search/chat
g-francesca Sep 15, 2025
41d8a78
fix: toggle animation
g-francesca Sep 15, 2025
4a3de89
refactor: search modal layout composition
g-francesca Sep 15, 2025
5ce485e
refactor: search footer and chat actions
g-francesca Sep 16, 2025
a82d0f7
fix: chat scrollbar style
g-francesca Sep 16, 2025
ec17ab7
Merge branch 'nodejs:main' into main
g-francesca Sep 16, 2025
72faa73
style: mobile fixes for chat panel
g-francesca Sep 16, 2025
1fdda0e
fix: markdown style
g-francesca Sep 16, 2025
962df65
chore: update env var name
g-francesca Sep 16, 2025
73cc27b
fix: chat scrollbar style
g-francesca Sep 16, 2025
5661437
Merge branch 'nodejs:main' into main
g-francesca Sep 22, 2025
61451b0
chore: update @orama/ui version
g-francesca Sep 22, 2025
73140c6
style: fix mobile scrollbar style
g-francesca Sep 22, 2025
93ed85b
chore: update @orama/ui to 1.2.0
g-francesca Sep 23, 2025
9490cf0
feat: improve search loading
g-francesca Sep 23, 2025
d1b3b8b
fix: remove default public orama key
g-francesca Sep 23, 2025
668b475
Merge branch 'main' into review-orama-searchbox
g-francesca Sep 23, 2025
15b51b6
fix: use tailwind utility classes
g-francesca Sep 23, 2025
b9e45be
style: review searchbar scrollbar style
g-francesca Sep 23, 2025
259017e
fix: minor syntax improvements
g-francesca Sep 23, 2025
e56a289
fix: use translated label
g-francesca Sep 23, 2025
3c78cb0
fix: document type
g-francesca Sep 23, 2025
808383f
fix: use translated labels for suggestions
g-francesca Sep 23, 2025
09875a1
fix: gitignore comment
g-francesca Sep 23, 2025
8ecfd75
style: add motion-safe variant
g-francesca Sep 24, 2025
6805449
style: use size class
g-francesca Sep 24, 2025
a0e121c
fix: separate type imports
g-francesca Sep 24, 2025
0e28da9
style: use vertcal tw classes
g-francesca Sep 24, 2025
c95a223
style: minor style fixes
g-francesca Sep 24, 2025
760b468
fix: color contrast
g-francesca Sep 24, 2025
9d131c3
fix: modal search focus trap
g-francesca Sep 24, 2025
4836c80
style: fix color contrast
g-francesca Sep 24, 2025
950d7ad
fix: disable search button when no env vars
g-francesca Sep 24, 2025
6c23e1c
fix: ssr searchbox
g-francesca Sep 24, 2025
8667e5c
fix: clean up code
g-francesca Oct 2, 2025
347abf6
fix: import get documents
g-francesca Oct 6, 2025
7f252e0
fix: playwright tests for search
g-francesca Oct 6, 2025
6182176
fix: get documents
g-francesca Oct 7, 2025
af1e659
fix: search results element targeted for test
g-francesca Oct 7, 2025
57579d1
Merge remote-tracking branch 'upstream/main'
g-francesca Oct 7, 2025
75784a7
Merge branch 'main' into review-orama-searchbox
g-francesca Oct 7, 2025
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
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,5 @@ test-results
playwright-report

## MacOS Ignored Files
.DS_Store
.DS_Store
.env
145 changes: 0 additions & 145 deletions apps/site/components/Common/Search/index.tsx

This file was deleted.

60 changes: 0 additions & 60 deletions apps/site/components/Common/Search/utils.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
@reference "../../../../styles/index.css";

.chatActionsContainer {
@apply flex
items-center
justify-end;
}

.chatActionsList {
@apply flex
list-none
items-center
gap-2
p-0;
}

.chatAction {
@apply cursor-pointer
rounded-full
p-2
text-neutral-800
transition-colors
duration-300
hover:bg-neutral-300
dark:text-neutral-400
dark:hover:bg-neutral-900;

svg {
@apply h-4
w-4;
}
}

.chatActionIconSelected {
@apply text-green-600
dark:text-green-400;
}

.chatActionDisaliked {
@apply text-neutral-900
dark:text-neutral-800;
}
71 changes: 71 additions & 0 deletions apps/site/components/Common/Searchbox/ChatActions/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
'use client';

import {
DocumentCheckIcon,
ClipboardIcon,
ArrowPathIcon,
HandThumbDownIcon,
} from '@heroicons/react/24/solid';
import type { Interaction } from '@orama/core';
import { ChatInteractions } from '@orama/ui/components';
import classNames from 'classnames';
import { useState, type FC } from 'react';

import styles from './index.module.css';

type ChatActionsProps = {
interaction: Interaction;
};

export const ChatActions: FC<ChatActionsProps> = ({ interaction }) => {
const [isDisliked, setIsDisliked] = useState(false);

const dislikeMessage = () => {
setIsDisliked(!isDisliked);
};

if (!interaction.response) {
return null;
}

return (
<div className={styles.chatActionsContainer}>
<ul className={styles.chatActionsList}>
<li>
<ChatInteractions.RegenerateLatest
className={styles.chatAction}
interaction={interaction}
>
<ArrowPathIcon />
</ChatInteractions.RegenerateLatest>
</li>
<li>
<ChatInteractions.CopyMessage
className={styles.chatAction}
interaction={interaction}
>
{(copied: boolean) =>
copied ? (
<DocumentCheckIcon className={styles.chatActionIconSelected} />
) : (
<ClipboardIcon />
)
}
</ChatInteractions.CopyMessage>
</li>
{!interaction.loading && interaction.response && (
<li>
<button
className={classNames(styles.chatAction, {
[styles.chatActionDisaliked]: isDisliked,
})}
onClick={dislikeMessage}
>
<HandThumbDownIcon />
</button>
</li>
)}
</ul>
</div>
);
};
Loading