Skip to content

Commit f6e69c5

Browse files
committed
fix(brand): unified blue color system across all dashboard tabs
- StyleInsights: green/purple stats → blue-500 - StyleInsights: green percentage badges → blue variant - DependencyGraph: mixed white/green/blue stats → all blue-500 - ImpactAnalyzer: yellow/green stats → blue-500 - Preserved semantic colors for risk indicators (red/yellow/green) Brand rule: ALL stat numbers use blue-500, semantic colors only for risk
1 parent 027f0ad commit f6e69c5

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

frontend/src/components/DependencyGraph.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -235,21 +235,21 @@ export function DependencyGraph({ repoId, apiUrl, apiKey }: DependencyGraphProps
235235
<div className="grid grid-cols-1 md:grid-cols-4 gap-4">
236236
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
237237
<div className="text-sm text-gray-400 mb-1">Total Files</div>
238-
<div className="text-3xl font-bold text-white">{allNodes.length}</div>
238+
<div className="text-3xl font-bold text-blue-500">{allNodes.length}</div>
239239
</div>
240240
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
241241
<div className="text-sm text-gray-400 mb-1">Dependencies</div>
242-
<div className="text-3xl font-bold text-blue-400">{edges.length}</div>
242+
<div className="text-3xl font-bold text-blue-500">{edges.length}</div>
243243
</div>
244244
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
245245
<div className="text-sm text-gray-400 mb-1">Avg per File</div>
246-
<div className="text-3xl font-bold text-white">
246+
<div className="text-3xl font-bold text-blue-500">
247247
{metrics?.avg_dependencies?.toFixed(1) || 0}
248248
</div>
249249
</div>
250250
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
251251
<div className="text-sm text-gray-400 mb-1">Showing</div>
252-
<div className="text-3xl font-bold text-green-400">{nodes.length}</div>
252+
<div className="text-3xl font-bold text-blue-500">{nodes.length}</div>
253253
</div>
254254
</div>
255255

frontend/src/components/ImpactAnalyzer.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function ImpactAnalyzer({ repoId, apiUrl, apiKey }: ImpactAnalyzerProps)
129129
<div className="grid grid-cols-1 md:grid-cols-3 gap-4">
130130
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
131131
<div className="text-sm text-gray-400 mb-1">Direct Dependencies</div>
132-
<div className="text-3xl font-bold text-blue-400">
132+
<div className="text-3xl font-bold text-blue-500">
133133
{result.dependency_count}
134134
</div>
135135
<div className="text-xs text-gray-500 mt-1">
@@ -139,7 +139,7 @@ export function ImpactAnalyzer({ repoId, apiUrl, apiKey }: ImpactAnalyzerProps)
139139

140140
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
141141
<div className="text-sm text-gray-400 mb-1">Total Impact</div>
142-
<div className="text-3xl font-bold text-yellow-400">
142+
<div className="text-3xl font-bold text-blue-500">
143143
{result.dependent_count}
144144
</div>
145145
<div className="text-xs text-gray-500 mt-1">
@@ -149,7 +149,7 @@ export function ImpactAnalyzer({ repoId, apiUrl, apiKey }: ImpactAnalyzerProps)
149149

150150
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
151151
<div className="text-sm text-gray-400 mb-1">Test Files</div>
152-
<div className="text-3xl font-bold text-green-400">
152+
<div className="text-3xl font-bold text-blue-500">
153153
{result.test_files?.length || 0}
154154
</div>
155155
<div className="text-xs text-gray-500 mt-1">

frontend/src/components/StyleInsights.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,14 @@ export function StyleInsights({ repoId, apiUrl, apiKey }: StyleInsightsProps) {
4141

4242
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
4343
<div className="text-sm text-gray-400 mb-1">Async Adoption</div>
44-
<div className="text-3xl font-bold text-green-400">
44+
<div className="text-3xl font-bold text-blue-500">
4545
{data.summary?.async_adoption || '0%'}
4646
</div>
4747
</div>
4848

4949
<div className="bg-[#0a0a0c] border border-white/5 rounded-xl p-5">
5050
<div className="text-sm text-gray-400 mb-1">Type Hints</div>
51-
<div className="text-3xl font-bold text-purple-400">
51+
<div className="text-3xl font-bold text-blue-500">
5252
{data.summary?.type_hints_usage || '0%'}
5353
</div>
5454
</div>
@@ -126,7 +126,7 @@ export function StyleInsights({ repoId, apiUrl, apiKey }: StyleInsightsProps) {
126126
<span className="text-gray-300">Async/Await Usage</span>
127127
<div className="flex items-center gap-2">
128128
<span className="text-gray-500">{data.patterns?.async_usage}</span>
129-
<span className="px-2 py-0.5 text-xs bg-green-500/10 text-green-400 border border-green-500/20 rounded">
129+
<span className="px-2 py-0.5 text-xs bg-blue-500/10 text-blue-400 border border-blue-500/20 rounded">
130130
{data.patterns?.async_percentage?.toFixed(0)}%
131131
</span>
132132
</div>
@@ -136,7 +136,7 @@ export function StyleInsights({ repoId, apiUrl, apiKey }: StyleInsightsProps) {
136136
<span className="text-gray-300">Type Annotations</span>
137137
<div className="flex items-center gap-2">
138138
<span className="text-gray-500">{data.patterns?.type_annotations}</span>
139-
<span className="px-2 py-0.5 text-xs bg-green-500/10 text-green-400 border border-green-500/20 rounded">
139+
<span className="px-2 py-0.5 text-xs bg-blue-500/10 text-blue-400 border border-blue-500/20 rounded">
140140
{data.patterns?.typed_percentage?.toFixed(0)}%
141141
</span>
142142
</div>

0 commit comments

Comments
 (0)