Show progress bar on compact view for active tasks

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
cliffhall 2026-03-30 09:59:09 -04:00
commit 2540617271

View file

@ -198,20 +198,23 @@ export function TaskCard(props: TaskCardProps) {
</SubtleButton> </SubtleButton>
</SummaryRow> </SummaryRow>
{progress !== undefined && isActive && (
<ProgressDisplay
progress={progress}
description={progressDescription}
/>
)}
{isExpanded && ( {isExpanded && (
<Collapse in={isExpanded}> <Collapse in={isExpanded}>
<Stack gap="sm"> <Stack gap="sm">
{progressDescription && ( {progressDescription && !isActive && (
<Stack gap={2}> <Stack gap={2}>
<DetailLabel>Status Message</DetailLabel> <DetailLabel>Status Message</DetailLabel>
<StatusMessageText>{progressDescription}</StatusMessageText> <StatusMessageText>{progressDescription}</StatusMessageText>
</Stack> </Stack>
)} )}
{progress !== undefined && (
<ProgressDisplay progress={progress} />
)}
{error && ( {error && (
<Stack gap={2}> <Stack gap={2}>
<DetailLabel>Error</DetailLabel> <DetailLabel>Error</DetailLabel>