Skip to content

Commit 9a6a2ae

Browse files
committed
fix: delete unused hook, add hover highlighting in clustered mode
- Remove unused useDirectoryClustering.ts (dead code) - Add hover highlighting for files in clustered mode - Keeps helpers in index.tsx (single source of truth)
1 parent 8e685ec commit 9a6a2ae

2 files changed

Lines changed: 3 additions & 117 deletions

File tree

frontend/src/components/DependencyGraph/hooks/useDirectoryClustering.ts

Lines changed: 0 additions & 117 deletions
This file was deleted.

frontend/src/components/DependencyGraph/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,9 @@ function DependencyGraphInner({ repoId, apiUrl, apiKey }: DependencyGraphProps)
252252
else if (selectedImpact?.directDependents.includes(node.id)) state = 'direct'
253253
else if (selectedImpact?.transitiveDependents.includes(node.id)) state = 'transitive'
254254
else if (selectedNodeId && !selectedNodeId.startsWith('dir:')) state = 'dimmed'
255+
256+
// Hover highlighting in clustered mode
257+
if (hoveredFileId === node.id && state === 'dimmed') state = 'direct'
255258

256259
flowNodes.push({
257260
id: node.id,

0 commit comments

Comments
 (0)