Skip to content

Commit 689ed2a

Browse files
committed
Add Kapa-powered search chat
1 parent 1fc07b1 commit 689ed2a

10 files changed

Lines changed: 2183 additions & 557 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
},
3131
"dependencies": {
3232
"@floating-ui/react": "^0.27.19",
33+
"@kapaai/react-sdk": "^0.9.10",
3334
"@modelcontextprotocol/sdk": "^1.29.0",
3435
"@netlify/functions": "^5.1.5",
3536
"@netlify/vite-plugin-tanstack-start": "^1.3.2",
@@ -105,6 +106,7 @@
105106
"remove-markdown": "^0.6.3",
106107
"resend": "^6.10.0",
107108
"shiki": "^4.0.2",
109+
"streamdown": "^2.5.0",
108110
"tailwind-merge": "^3.5.0",
109111
"tar-stream": "^3.1.8",
110112
"three": "^0.183.2",

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,4 @@ allowBuilds:
2525

2626
# sentry
2727
'@sentry/cli': false
28+
'@fingerprintjs/fingerprintjs-pro-react': false

src/components/Dropdown.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export function DropdownContent({
7171
align={align}
7272
sideOffset={sideOffset}
7373
className={twMerge(
74-
'dropdown-content z-[1000] min-w-48 rounded-lg p-1.5',
74+
'dropdown-content z-[1200] min-w-48 rounded-lg p-1.5',
7575
'border border-gray-200 dark:border-gray-700',
7676
'bg-white dark:bg-gray-800',
7777
'shadow-lg',

src/components/SearchButton.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import * as React from 'react'
22
import { Command, Search } from 'lucide-react'
33
import { twMerge } from 'tailwind-merge'
4-
import { useSearchContext } from '~/contexts/SearchContext'
54
import { Button } from '~/ui'
65

76
interface SearchButtonProps {
@@ -10,13 +9,13 @@ interface SearchButtonProps {
109
}
1110

1211
export function SearchButton({ className }: SearchButtonProps) {
13-
const { openSearch } = useSearchContext()
14-
1512
return (
1613
<Button
14+
type="button"
15+
data-search-trigger
16+
aria-haspopup="dialog"
1717
variant="ghost"
1818
size="xs"
19-
onClick={openSearch}
2019
className={twMerge('gap-2 bg-gray-500/5 dark:bg-gray-500/30', className)}
2120
>
2221
<Search className="w-3.5 h-3.5" />

0 commit comments

Comments
 (0)