@@ -112,7 +112,7 @@ export function TasksByCategory({ tasks, members, statusFilter }: TasksByCategor
112112 // Calculate stats for a category
113113 const getCategoryStats = ( categoryTasks : Task [ ] ) => {
114114 const total = categoryTasks . length ;
115- const done = categoryTasks . filter ( ( t ) => t . status === 'done' ) . length ;
115+ const done = categoryTasks . filter ( ( t ) => t . status === 'done' || t . status === 'not_relevant' ) . length ;
116116 const inProgress = categoryTasks . filter ( ( t ) => t . status === 'in_progress' ) . length ;
117117 const completionRate = total > 0 ? Math . round ( ( done / total ) * 100 ) : 0 ;
118118 return { total, done, inProgress, completionRate } ;
@@ -262,20 +262,34 @@ export function TasksByCategory({ tasks, members, statusFilter }: TasksByCategor
262262 const member = assignedMember ( task ) ;
263263 const statusStyle =
264264 statusPalette [ task . status as keyof typeof statusPalette ] ?? statusPalette . todo ;
265+ const isNotRelevant = task . status === 'not_relevant' ;
265266 return (
266267 < div
267268 key = { task . id }
268- className = "group relative flex cursor-pointer flex-col gap-3 rounded-sm border border-border/60 bg-card/50 p-4 transition-colors hover:bg-muted/20"
269+ className = { `group relative flex cursor-pointer flex-col gap-3 rounded-sm border border-border/60 p-4 transition-colors ${
270+ isNotRelevant
271+ ? 'opacity-50 bg-slate-100/50 backdrop-blur-md hover:bg-slate-100/60'
272+ : 'bg-card/50 hover:bg-muted/20'
273+ } `}
269274 onClick = { ( ) => handleTaskClick ( task . id ) }
270275 >
271276 < span
272277 className = { `absolute left-0 top-0 h-full w-[2px] ${ statusStyle . indicator } ` }
273278 />
279+ { isNotRelevant && (
280+ < div className = "pointer-events-none absolute inset-0 flex items-center justify-center" >
281+ < span className = "text-sm font-bold uppercase tracking-[0.15em] text-slate-600" >
282+ NOT RELEVANT
283+ </ span >
284+ </ div >
285+ ) }
274286
275287 < div className = "flex items-start justify-between gap-3" >
276288 < div className = "min-w-0 flex-1 space-y-2" >
277289 < div className = "flex items-start gap-2" >
278- < h4 className = "flex-1 text-sm font-semibold text-foreground line-clamp-2" >
290+ < h4 className = { `flex-1 text-sm font-semibold line-clamp-2 ${
291+ isNotRelevant ? 'text-slate-500' : 'text-foreground'
292+ } `} >
279293 { task . title }
280294 </ h4 >
281295 < AutomationIndicator
@@ -284,7 +298,9 @@ export function TasksByCategory({ tasks, members, statusFilter }: TasksByCategor
284298 />
285299 </ div >
286300 { task . description && (
287- < p className = "text-xs text-muted-foreground/80 line-clamp-2 leading-relaxed" >
301+ < p className = { `text-xs line-clamp-2 leading-relaxed ${
302+ isNotRelevant ? 'text-slate-400' : 'text-muted-foreground/80'
303+ } `} >
288304 { task . description }
289305 </ p >
290306 ) }
0 commit comments