Skip to content

Commit 2f37386

Browse files
committed
Release v0.4.18
1 parent 2b16a27 commit 2f37386

4 files changed

Lines changed: 7 additions & 4 deletions

File tree

app/frontend/src/components/ResourceDetailPanel.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,9 @@ const filteredSuggestions = computed(() => {
413413
const addedIds = new Set((props.resource.tags ?? []).map(t => t.id))
414414
const query = newTagInput.value.trim().toLowerCase()
415415
const available = tagSuggestions.value.filter(t => !addedIds.has(t.id))
416-
return query ? available.filter(t => t.name.toLowerCase().includes(query)) : available
416+
return query
417+
? available.filter(tag => tag.name.toLowerCase().includes(query) || pinyinMatch(tag.name, query) !== null)
418+
: available
417419
})
418420
419421
async function addTagFromSuggestion(tag: { id: number; name: string }) {

app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ai-cubby",
3-
"version": "0.4.18-beta.4",
3+
"version": "0.4.18",
44
"description": "AI小抽屉 - 本地资源自动入库与AI标签",
55
"main": "out/main/main.js",
66
"scripts": {

app/scripts/test-default.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ test('resource detail tag suggestions include tags from every resource type', ()
6363
const detail = read('frontend/src/components/ResourceDetailPanel.vue')
6464
assert.match(detail, /window\.api\.tags\.getForType\(undefined, 'lastAssigned'\)/)
6565
assert.doesNotMatch(detail, /getForType\(props\.resource\.type, 'lastAssigned'\)/)
66+
assert.match(detail, /pinyinMatch\(tag\.name, query\) !== null/)
6667
})
6768

6869
test('AI full indexing cannot overlap or remain stuck in indexing state', () => {

0 commit comments

Comments
 (0)