From 62f7d900c52784ff05d933b52379e5455ea6bd00 Mon Sep 17 00:00:00 2001 From: Mohamed Bassem Date: Sun, 28 Sep 2025 11:03:48 +0100 Subject: 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 --- packages/sdk/src/karakeep-api.d.ts | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'packages/sdk') diff --git a/packages/sdk/src/karakeep-api.d.ts b/packages/sdk/src/karakeep-api.d.ts index a50fec82..1ac35e04 100644 --- a/packages/sdk/src/karakeep-api.d.ts +++ b/packages/sdk/src/karakeep-api.d.ts @@ -1146,7 +1146,13 @@ export interface paths { */ get: { parameters: { - query?: never; + query?: { + nameContains?: string; + sort?: "name" | "usage" | "relevance"; + attachedBy?: "ai" | "human" | "none"; + cursor?: string; + limit?: number | null; + }; header?: never; path?: never; cookie?: never; @@ -1161,6 +1167,7 @@ export interface paths { content: { "application/json": { tags: components["schemas"]["Tag"][]; + nextCursor: string | null; }; }; }; -- cgit v1.2.3-70-g09d2