ai-customization #22

Merged
gpatti merged 4 commits from ai-customization into main 2026-04-13 01:13:41 +00:00
Showing only changes of commit 89ac22e9d1 - Show all commits

View File

@@ -298,9 +298,13 @@ export default function TagSelector({ itemKey, onTagsChanged, refreshKey }: Prop
{all.categories.map((category) => {
const categoryTags = all.tags.filter((t) => t.categoryId === category.id)
const search = categorySearches[category.id] ?? ''
const visibleTags = categoryTags
.filter((t) => !search || t.name.toLowerCase().includes(search.toLowerCase()))
.slice(0, 25)
const filtered = categoryTags.filter(
(t) => !search || t.name.toLowerCase().includes(search.toLowerCase())
)
const visibleTags = [
...filtered.filter((t) => isAssigned(t.id)),
...filtered.filter((t) => !isAssigned(t.id)),
].slice(0, 25)
return (
<div key={category.id}>