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:
parent
a1c894f72f
commit
2540617271
1 changed files with 8 additions and 5 deletions
|
|
@ -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>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue