({ workingDir, hash, path, enabled })
| 171 | const dir = dirname(entry.path) |
| 172 | |
| 173 | return ( |
| 174 | <div |
| 175 | data-card-key={key} |
| 176 | className={cn( |
| 177 | 'rounded-md border border-border bg-background overflow-hidden transition-shadow', |
| 178 | flash && 'ring-2 ring-info/40', |
| 179 | )} |
| 180 | > |
| 181 | <button |
| 182 | type="button" |
| 183 | aria-expanded={!collapsed} |
| 184 | onClick={() => onStateChange(key, { collapsed: !collapsed })} |
| 185 | className="w-full flex items-center gap-2 px-3 py-2 bg-muted/40 hover:bg-muted/70 transition-colors text-left" |
| 186 | > |
| 187 | {collapsed |
| 188 | ? <ChevronRight size={13} className="text-muted-foreground/70 shrink-0" /> |
| 189 | : <ChevronDown size={13} className="text-muted-foreground/70 shrink-0" />} |
| 190 | <FileStatusBadge status={entry.status} /> |
| 191 | <span className="text-xs font-medium text-foreground truncate">{basename(entry.path)}</span> |
| 192 | {dir && <span className="font-mono text-[11px] text-muted-foreground truncate">{dir}</span>} |
nothing calls this directly
no test coverage detected