diff --git a/frontend/src/components/library/TreeGridView.tsx b/frontend/src/components/library/TreeGridView.tsx index 2792c905..1973b6ee 100644 --- a/frontend/src/components/library/TreeGridView.tsx +++ b/frontend/src/components/library/TreeGridView.tsx @@ -1,5 +1,5 @@ import { Link } from 'react-router-dom' -import { Pencil, Globe, Lock, Trash2, GitBranch, FileText, Wrench, Star, Download } from 'lucide-react' +import { Pencil, Globe, Lock, Trash2, GitBranch, FileText, Wrench, Star, Download, ClipboardList } from 'lucide-react' import type { TreeListItem } from '@/types' import { TagBadges } from '@/components/common/TagBadges' import { StaggerList } from '@/components/common/StaggerList' @@ -10,6 +10,7 @@ import { getTreeEditorPath } from '@/lib/routing' interface TreeGridViewProps { trees: TreeListItem[] onStartSession: (treeId: string, treeType?: string) => void + onPrepareSession?: (tree: TreeListItem) => void onTagClick: (tag: string) => void onFolderCreated: (parentId?: string | null) => void onDeleteTree: (tree: TreeListItem) => void @@ -23,6 +24,7 @@ interface TreeGridViewProps { export function TreeGridView({ trees, onStartSession, + onPrepareSession, onTagClick, onDeleteTree, onForkTree, @@ -169,6 +171,20 @@ export function TreeGridView({ )} + {onPrepareSession && tree.tree_type !== 'troubleshooting' && ( + + )} )} + {onPrepareSession && tree.tree_type !== 'troubleshooting' && ( + + )} )} + {onPrepareSession && tree.tree_type !== 'troubleshooting' && ( + + )}