fix(studio): fix catalog Add button per category, search by tags

Add button rules: VFX, Social, Scenes get Add + Ask agent. Captions,
Transitions, Effects, Data get Ask agent only.

Search now matches category names and tags, so searching "captions"
shows all caption blocks.
This commit is contained in:
Miguel Ángel
2026-05-21 19:54:35 -04:00
parent d5518b26f1
commit 76d2c6af5d
2 changed files with 8 additions and 2 deletions
+5 -1
View File
@@ -56,7 +56,11 @@ export function useBlockCatalog() {
if (search.trim()) {
const q = search.toLowerCase();
result = result.filter(
(b) => b.title.toLowerCase().includes(q) || b.description.toLowerCase().includes(q),
(b) =>
b.title.toLowerCase().includes(q) ||
b.description.toLowerCase().includes(q) ||
b.category.toLowerCase().includes(q) ||
b.tags?.some((t) => t.toLowerCase().includes(q)),
);
}
return result;