@@ -82,16 +82,21 @@ function ProjectsBody({
8282 1 ,
8383 ) ;
8484
85+ // Hide Jira legend entry when Jira is disabled (all counts are 0).
86+ const hasJira = sorted . some ( p => p . jira_count > 0 ) ;
87+
8588 return (
8689 < div className = { `space-y-3 ${ variant === 'collapsible' ? 'mt-3' : 'mt-4' } ` } >
8790 { /* Legend */ }
8891 < div className = "flex gap-3 text-[10px] text-gray-600 pl-6" >
8992 < span className = "flex items-center gap-1" >
9093 < span className = "inline-block w-2 h-2 rounded-[2px]" style = { { background : '#06B6D4' } } /> PRs
9194 </ span >
92- < span className = "flex items-center gap-1" >
93- < span className = "inline-block w-2 h-2 rounded-[2px]" style = { { background : '#A855F7' } } /> Jiras
94- </ span >
95+ { hasJira && (
96+ < span className = "flex items-center gap-1" >
97+ < span className = "inline-block w-2 h-2 rounded-[2px]" style = { { background : '#A855F7' } } /> Jiras
98+ </ span >
99+ ) }
95100 < span className = "flex items-center gap-1" >
96101 < span className = "inline-block w-2 h-2 rounded-[2px]" style = { { background : 'rgba(255,255,255,0.18)' } } /> Commits
97102 </ span >
@@ -102,7 +107,7 @@ function ProjectsBody({
102107 const totalVol = p . estimated_prs + p . jira_count + p . estimated_commits ;
103108 const barPct = ( totalVol / maxVolume ) * 100 ;
104109 return (
105- < div key = { i } className = "bg-white/[0.02] rounded-lg p-3" >
110+ < div key = { p . name } className = "bg-white/[0.02] rounded-lg p-3" >
106111 < div className = "flex items-start justify-between gap-3 mb-1" >
107112 < div className = "flex items-center gap-2 min-w-0" >
108113 < span className = "text-xs text-gray-600 w-4 shrink-0 text-right" > { i + 1 } </ span >
0 commit comments