Adding tags filter input on tags selector, adding frequently used tags to suggest tags that are used together.
Some checks are pending
CodeQL / Analyze (push) Waiting to run
Controller Tests / controller-tests (push) Waiting to run
Jest Tests / jest-tests (push) Waiting to run

This commit is contained in:
Roland 2026-03-07 10:29:05 -07:00
parent d2d09da296
commit 1913755db5
No known key found for this signature in database
GPG key ID: 1BA620CE6C9A4680
5 changed files with 236 additions and 3 deletions

View file

@ -1498,6 +1498,26 @@ export async function getTags() {
return response
}
export async function getRecentTags() {
const uri = `${API_URI}/tag/recent`;
const response = await apiGet(uri);
if (response.ok) {
const body = await response.json();
return body['tag_names'] || [];
}
return [];
}
export async function getCooccurringTags(tagName) {
const uri = `${API_URI}/tag/cooccurring/${encodeURIComponent(tagName)}`;
const response = await apiGet(uri);
if (response.ok) {
const body = await response.json();
return body['tag_names'] || [];
}
return [];
}
export async function tagFileGroup(fileGroup, name) {
const body = {tag_name: name};