aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorMohamed Bassem <me@mbassem.com>2025-01-04 14:39:38 +0000
committerMohamed Bassem <me@mbassem.com>2025-01-04 14:39:38 +0000
commitce16eda75f4d93646e485b7115398e81e7c88acc (patch)
treea2e34e6067ce7b6818cd59bf8ce9fa52b8a9fc7c /apps
parent4439c91f426a8c8a13c4a84c8cb685ae67cc07e6 (diff)
downloadkarakeep-ce16eda75f4d93646e485b7115398e81e7c88acc.tar.zst
fix: Change search endpoint to accept query as raw string
Diffstat (limited to 'apps')
-rw-r--r--apps/web/components/dashboard/search/SearchInput.tsx2
-rw-r--r--apps/web/lib/hooks/bookmark-search.ts5
2 files changed, 3 insertions, 4 deletions
diff --git a/apps/web/components/dashboard/search/SearchInput.tsx b/apps/web/components/dashboard/search/SearchInput.tsx
index ace3d785..5e46fc18 100644
--- a/apps/web/components/dashboard/search/SearchInput.tsx
+++ b/apps/web/components/dashboard/search/SearchInput.tsx
@@ -84,7 +84,7 @@ const SearchInput = React.forwardRef<
}}
/>
<QueryExplainerTooltip
- className="-translate-1/2 absolute right-1.5 top-2 p-0.5"
+ className="-translate-1/2 absolute right-1.5 top-2 stroke-foreground p-0.5"
parsedSearchQuery={parsedSearchQuery}
/>
{parsedSearchQuery.result === "full" &&
diff --git a/apps/web/lib/hooks/bookmark-search.ts b/apps/web/lib/hooks/bookmark-search.ts
index 4662ffb6..386355f7 100644
--- a/apps/web/lib/hooks/bookmark-search.ts
+++ b/apps/web/lib/hooks/bookmark-search.ts
@@ -52,7 +52,7 @@ export function useDoBookmarkSearch() {
}
export function useBookmarkSearch() {
- const { parsedSearchQuery } = useSearchQuery();
+ const { searchQuery } = useSearchQuery();
const {
data,
@@ -64,8 +64,7 @@ export function useBookmarkSearch() {
isFetchingNextPage,
} = api.bookmarks.searchBookmarks.useInfiniteQuery(
{
- text: parsedSearchQuery.text,
- matcher: parsedSearchQuery.matcher,
+ text: searchQuery,
},
{
placeholderData: keepPreviousData,