feat: add KnowledgeGraph component for D3-based visualization and AI-driven graph management

This commit is contained in:
RaymondVerhoef
2026-05-18 21:21:58 +02:00
parent f35550f270
commit 7b84545dc5

View File

@@ -1,6 +1,6 @@
import React, { useCallback, useEffect, useRef, useState } from 'react'; import React, { useCallback, useEffect, useRef, useState } from 'react';
import * as d3 from 'd3'; import * as d3 from 'd3';
import { Trash2, Edit2, Save, X, RefreshCw, AlertCircle, Plus, Link as LinkIcon, Github } from 'lucide-react'; import { Trash2, Edit2, Save, X, RefreshCw, AlertCircle, Plus, Link as LinkIcon } from 'lucide-react';
import * as db from '../../lib/db'; import * as db from '../../lib/db';
import { anthropicApi } from '../../lib/api'; import { anthropicApi } from '../../lib/api';
import { getRepoFolder } from '../../lib/giteaService'; import { getRepoFolder } from '../../lib/giteaService';
@@ -343,7 +343,7 @@ Analyze this graph and return ONLY the optimized JSON object with this EXACT str
variant="outline" variant="outline"
className="w-full flex justify-center items-center gap-2" className="w-full flex justify-center items-center gap-2"
> >
<Github size={16} className={isSyncing ? "animate-pulse" : ""} /> <RefreshCw size={16} className={isSyncing ? "animate-spin" : ""} />
{isSyncing ? 'Checking for updates...' : 'Sync Employee Handbook'} {isSyncing ? 'Checking for updates...' : 'Sync Employee Handbook'}
</Button> </Button>
{syncError && ( {syncError && (