feat(search): kind chips, large view with filters and context, tick tasks and list items right in the results
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 2m37s
MindSift CI & Docker Release / Build, Test in Container & Push (push) Successful in 2m37s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
558fc46cf4
commit
994f6dc554
12 files changed
+522
-40
No files matched your search
@@ -35,6 +35,7 @@ import {
|
||||
Thought,
|
||||
SubTask,
|
||||
SearchResults,
|
||||
SearchFilter,
|
||||
TagDetails,
|
||||
TagSummary,
|
||||
User,
|
||||
@@ -1340,10 +1341,12 @@ export const api = {
|
||||
});
|
||||
},
|
||||
|
||||
async searchAll(q: string): Promise<SearchResults> {
|
||||
return request<SearchResults>(
|
||||
`/api/v1/search?q=${encodeURIComponent(q)}`
|
||||
);
|
||||
async searchAll(q: string, filter: SearchFilter = {}): Promise<SearchResults> {
|
||||
const params = new URLSearchParams({ q });
|
||||
for (const [k, v] of Object.entries(filter)) {
|
||||
if (v !== undefined && v !== '') params.set(k, String(v));
|
||||
}
|
||||
return request<SearchResults>(`/api/v1/search?${params.toString()}`);
|
||||
},
|
||||
|
||||
async exportAll(): Promise<any> {
|
||||
|
||||
Reference in new issue
Block a user