graph view

This commit is contained in:
tusharmagar 2026-01-13 12:12:52 +05:30 committed by Ramnique Singh
parent 174dcaf3ee
commit 102a9e5855
4 changed files with 766 additions and 3 deletions

View file

@ -75,6 +75,7 @@ interface TreeNode {
type KnowledgeActions = {
createNote: (parentPath?: string) => void
createFolder: (parentPath?: string) => void
openGraph: () => void
expandAll: () => void
collapseAll: () => void
rename: (path: string, newName: string, isDir: boolean) => Promise<void>
@ -256,7 +257,7 @@ function KnowledgeSection({
const quickActions = [
{ icon: FilePlus, label: "New Note", action: () => actions.createNote() },
{ icon: FolderPlus, label: "New Folder", action: () => actions.createFolder() },
{ icon: Network, label: "Graph View", action: () => {} },
{ icon: Network, label: "Graph View", action: () => actions.openGraph() },
{ icon: ArrowDownAZ, label: "Sort", action: () => {} },
]