feat: add KnowledgeGraph component for D3-based visualization and AI-driven graph management
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import React, { useCallback, useEffect, useRef, useState } from 'react';
|
||||
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 { anthropicApi } from '../../lib/api';
|
||||
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"
|
||||
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'}
|
||||
</Button>
|
||||
{syncError && (
|
||||
|
||||
Reference in New Issue
Block a user