Skip to content

Commit 2a0bb9c

Browse files
authored
Revert "Add Kapa-powered search chat"
This reverts commit 689ed2a.
1 parent 689ed2a commit 2a0bb9c

10 files changed

Lines changed: 557 additions & 2183 deletions

File tree

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
},
3131
"dependencies": {
3232
"@floating-ui/react": "^0.27.19",
33-
"@kapaai/react-sdk": "^0.9.10",
3433
"@modelcontextprotocol/sdk": "^1.29.0",
3534
"@netlify/functions": "^5.1.5",
3635
"@netlify/vite-plugin-tanstack-start": "^1.3.2",
@@ -106,7 +105,6 @@
106105
"remove-markdown": "^0.6.3",
107106
"resend": "^6.10.0",
108107
"shiki": "^4.0.2",
109-
"streamdown": "^2.5.0",
110108
"tailwind-merge": "^3.5.0",
111109
"tar-stream": "^3.1.8",
112110
"three": "^0.183.2",

pnpm-lock.yaml

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

pnpm-workspace.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,3 @@ 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-[1200] min-w-48 rounded-lg p-1.5',
74+
'dropdown-content z-[1000] 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: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
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'
45
import { Button } from '~/ui'
56

67
interface SearchButtonProps {
@@ -9,13 +10,13 @@ interface SearchButtonProps {
910
}
1011

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

0 commit comments

Comments
 (0)