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
@@ -119,7 +119,9 @@ export const BlocksTab = memo(function BlocksTab({ onAddBlock, onPreviewBlock }:
videoUrl={block.preview?.video}
onPreview={onPreviewBlock}
onAdd={
block.type === "hyperframes:component"
block.category === "vfx" ||
block.category === "social" ||
block.category === "scenes"
? () => onAddBlock?.(block.name)
: undefined
}