Skip to content

Commit ae6c2aa

Browse files
committed
feat: improve icons
1 parent 0a499b8 commit ae6c2aa

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

src/components/PatternCard.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const PatternCard: React.FC<PatternCardProps> = ({ pattern }) => {
3131
return (
3232
<div className="rounded-lg border border-[#30363d] bg-[#161b22] overflow-hidden">
3333
<div className="p-4 flex items-center gap-3 border-b border-[#30363d]">
34-
<pattern.icon className="w-5 h-5" />
34+
<pattern.icon className="w-5 h-5" color={pattern.iconColor} />
3535
<div>
3636
<h2 className="text-[#c9d1d9] font-medium">{pattern.title}</h2>
3737
<p className="text-[#8b949e] text-sm">{pattern.description}</p>

src/config/patterns.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ import { createGitCommand } from '@/utils/git-commands';
55
export const hotspotPattern: PatternDefinition = {
66
id: 'hotspots',
77
icon: Flame,
8-
title: 'Hotspots 🌶️',
8+
iconColor: '#bd2424',
9+
title: 'Hotspots️',
910
description: 'Track frequently changing files that might need attention',
1011
params: [
1112
{
@@ -44,7 +45,8 @@ ${createGitCommand.countFileChanges(params.timeWindow as string, params.keywords
4445
export const dungeonPattern: PatternDefinition = {
4546
id: 'dungeons',
4647
icon: Skull,
47-
title: 'Dungeons 💀',
48+
iconColor: '#aeaeae',
49+
title: 'Dungeons',
4850
description: 'Find files with high activity but few contributors',
4951
params: [
5052
{

src/types/git-patterns.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ export interface ParamConfig {
1313

1414
export interface PatternDefinition {
1515
id: string;
16-
icon: LucideIcon; // Changed from ReactNode to LucideIcon
16+
icon: LucideIcon;
17+
iconColor: string;
1718
title: string;
1819
description: string;
1920
params: ParamConfig[];

0 commit comments

Comments
 (0)