Skip to content

Commit efa716a

Browse files
committed
fix(ui): replace ALL emojis with Lucide icons
AddRepoForm.tsx: - πŸ“¦ β†’ Package icon (modal header) - πŸš€ β†’ Plus icon (submit button) - βœ• β†’ X icon (close button) SearchPanel.tsx: - ⚑ β†’ Zap icon (cached badge) - πŸ” β†’ Search icon (empty state) DependencyGraph.tsx: - πŸ’‘ β†’ Lightbulb icon (hint text) Zero emojis remaining in main UI components. Professional icon system complete.
1 parent e5c6860 commit efa716a

3 files changed

Lines changed: 14 additions & 7 deletions

File tree

β€Žfrontend/src/components/AddRepoForm.tsxβ€Ž

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useState } from 'react'
22
import { motion, AnimatePresence } from 'framer-motion'
3+
import { Package, Plus, X } from 'lucide-react'
34

45
interface AddRepoFormProps {
56
onAdd: (gitUrl: string, branch: string) => Promise<void>
@@ -53,7 +54,7 @@ export function AddRepoForm({ onAdd, loading }: AddRepoFormProps) {
5354
<div className="flex items-center justify-between p-6 border-b border-white/5">
5455
<div className="flex items-center gap-3">
5556
<div className="w-10 h-10 rounded-xl bg-gradient-to-br from-blue-500/20 to-purple-500/20 flex items-center justify-center">
56-
<span className="text-xl">πŸ“¦</span>
57+
<Package className="w-5 h-5 text-blue-400" />
5758
</div>
5859
<div>
5960
<h3 className="text-lg font-semibold text-white">Add Repository</h3>
@@ -65,7 +66,7 @@ export function AddRepoForm({ onAdd, loading }: AddRepoFormProps) {
6566
className="w-8 h-8 flex items-center justify-center rounded-lg text-gray-400 hover:text-white hover:bg-white/10 transition-colors"
6667
disabled={loading}
6768
>
68-
βœ•
69+
<X className="w-4 h-4" />
6970
</button>
7071
</div>
7172

@@ -123,7 +124,7 @@ export function AddRepoForm({ onAdd, loading }: AddRepoFormProps) {
123124
</>
124125
) : (
125126
<>
126-
<span>πŸš€</span>
127+
<Plus className="w-4 h-4" />
127128
<span>Add & Index</span>
128129
</>
129130
)}

β€Žfrontend/src/components/DependencyGraph.tsxβ€Ž

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import ReactFlow, {
99
} from 'reactflow'
1010
import type { Node, Edge } from 'reactflow'
1111
import dagre from 'dagre'
12+
import { Lightbulb } from 'lucide-react'
1213
import 'reactflow/dist/style.css'
1314
import { useDependencyGraph } from '../hooks/useCachedQuery'
1415

@@ -357,8 +358,9 @@ export function DependencyGraph({ repoId, apiUrl, apiKey }: DependencyGraphProps
357358
<span className="text-gray-400">Dependency</span>
358359
</div>
359360
</div>
360-
<div className="mt-3 pt-3 border-t border-white/5 text-xs text-gray-500">
361-
πŸ’‘ Click any node to highlight its dependencies β€’ Drag to pan β€’ Scroll to zoom
361+
<div className="mt-3 pt-3 border-t border-white/5 text-xs text-gray-500 flex items-center gap-2">
362+
<Lightbulb className="w-3.5 h-3.5 text-blue-400" />
363+
<span>Click any node to highlight its dependencies β€’ Drag to pan β€’ Scroll to zoom</span>
362364
</div>
363365
</div>
364366
</div>

β€Žfrontend/src/components/SearchPanel.tsxβ€Ž

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { useState } from 'react';
22
import { toast } from 'sonner';
3+
import { Zap, Search } from 'lucide-react';
34
import { SearchBox, ResultCard } from './search';
45
import type { SearchResult } from '../types';
56

@@ -83,7 +84,10 @@ export function SearchPanel({ repoId, apiUrl, apiKey, repoUrl }: SearchPanelProp
8384
{cached && (
8485
<>
8586
<span className="text-text-muted">β€’</span>
86-
<span className="badge-success">⚑ Cached</span>
87+
<span className="badge-success inline-flex items-center gap-1">
88+
<Zap className="w-3 h-3" />
89+
Cached
90+
</span>
8791
</>
8892
)}
8993
</div>
@@ -108,7 +112,7 @@ export function SearchPanel({ repoId, apiUrl, apiKey, repoUrl }: SearchPanelProp
108112
{results.length === 0 && hasSearched && !loading && (
109113
<div className="card p-16 text-center">
110114
<div className="w-20 h-20 mx-auto mb-4 rounded-2xl glass flex items-center justify-center">
111-
<span className="text-4xl">πŸ”</span>
115+
<Search className="w-10 h-10 text-gray-500" />
112116
</div>
113117
<h3 className="text-base font-semibold mb-2 text-text-primary">No results found</h3>
114118
<p className="text-sm text-text-secondary">

0 commit comments

Comments
Β (0)