diff options
| author | Mohamed Bassem <me@mbassem.com> | 2025-09-28 11:03:48 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-28 11:03:48 +0100 |
| commit | 62f7d900c52784ff05d933b52379e5455ea6bd00 (patch) | |
| tree | 2702d74c96576447974af84850f3ba6b66beeeb4 /apps/mobile | |
| parent | 9fe09bfa9021c8d85d2d9aef591936101cab19f6 (diff) | |
| download | karakeep-62f7d900c52784ff05d933b52379e5455ea6bd00.tar.zst | |
feat: Add tag search and pagination (#1987)
* feat: Add tag search and use in the homepage
* use paginated query in the all tags view
* wire the load more buttons
* add skeleton to all tags page
* fix attachedby aggregation
* fix loading states
* fix hasNextPage
* use action buttons for load more buttons
* migrate the tags auto complete to the search api
* Migrate the tags editor to the new search API
* Replace tag merging dialog with tag auto completion
* Merge both search and list APIs
* fix tags.list
* add some tests for the endpoint
* add relevance based sorting
* change cursor
* update the REST API
* fix review comments
* more fixes
* fix lockfile
* i18n
* fix visible tags
Diffstat (limited to 'apps/mobile')
| -rw-r--r-- | apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/app/dashboard/search.tsx | 2 | ||||
| -rw-r--r-- | apps/mobile/package.json | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx index ea6c2f4d..a4575b27 100644 --- a/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx +++ b/apps/mobile/app/dashboard/bookmarks/[slug]/manage_tags.tsx @@ -35,7 +35,7 @@ const ListPickerPage = () => { }; const { data: allTags, isPending: isAllTagsPending } = api.tags.list.useQuery( - undefined, + {}, { select: React.useCallback( (data: { tags: { id: string; name: string }[] }) => { diff --git a/apps/mobile/app/dashboard/search.tsx b/apps/mobile/app/dashboard/search.tsx index 66423870..5fababc3 100644 --- a/apps/mobile/app/dashboard/search.tsx +++ b/apps/mobile/app/dashboard/search.tsx @@ -10,9 +10,9 @@ import { Text } from "@/components/ui/Text"; import { api } from "@/lib/trpc"; import AsyncStorage from "@react-native-async-storage/async-storage"; import { keepPreviousData } from "@tanstack/react-query"; -import { useDebounce } from "use-debounce"; import { useSearchHistory } from "@karakeep/shared-react/hooks/search-history"; +import { useDebounce } from "@karakeep/shared-react/hooks/use-debounce"; const MAX_DISPLAY_SUGGESTIONS = 5; diff --git a/apps/mobile/package.json b/apps/mobile/package.json index 8a942349..73f9f3ab 100644 --- a/apps/mobile/package.json +++ b/apps/mobile/package.json @@ -62,7 +62,6 @@ "react-native-svg": "^15.11.2", "react-native-webview": "^13.13.5", "tailwind-merge": "^2.2.1", - "use-debounce": "^10.0.0", "zod": "^3.24.2", "zustand": "^5.0.5" }, |
