Skip to content

Commit 060b1c7

Browse files
committed
fix: remove unused imports, fix param naming, add aria-expanded
1 parent 4f62348 commit 060b1c7

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

frontend/src/components/DependencyGraph/GraphNode.tsx

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@ import {
77
FileText,
88
TestTube2,
99
Settings,
10-
File,
11-
AlertTriangle,
12-
Flame,
13-
CheckCircle2,
14-
CircleAlert
10+
File
1511
} from 'lucide-react'
1612
import { cn } from '@/lib/utils'
1713
import { Badge } from '@/components/ui/badge'

frontend/src/components/DependencyGraph/ImpactPanel.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface ImpactPanelProps {
2525
onClose: () => void
2626
onFileClick: (fileId: string) => void
2727
onFileHover: (fileId: string | null) => void
28-
onAnalyzeInSearch?: (fileId: string) => void
28+
onAnalyzeInSearch?: (fullPath: string) => void
2929
}
3030

3131
const RISK_CONFIG: Record<RiskLevel, {
@@ -132,6 +132,7 @@ function CollapsibleSection({
132132
<div className="border-t border-zinc-200 dark:border-zinc-800 pt-3">
133133
<button
134134
onClick={() => setIsOpen(!isOpen)}
135+
aria-expanded={isOpen}
135136
className="w-full flex items-center gap-2 text-left hover:bg-zinc-100 dark:hover:bg-zinc-800/50 -mx-2 px-2 py-1 rounded transition-colors"
136137
>
137138
{isOpen ? (

0 commit comments

Comments
 (0)