Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 14 additions & 9 deletions apps/web/src/components/chat/ComposerTasksBadge.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ListTodoIcon } from "lucide-react";
import { CheckIcon, CircleDotIcon, CircleIcon, ListTodoIcon } from "lucide-react";
import { memo, type ComponentProps } from "react";

import { formatDuration } from "../../session-logic";
Expand Down Expand Up @@ -90,7 +90,7 @@ function TaskSummary({
className={progress.completedSteps >= progress.totalSteps ? "text-success" : undefined}
data-composer-task-progress="true"
>
{progress.completedSteps}/{progress.totalSteps} complete
{progress.completedSteps}/{progress.totalSteps}
</ComposerBanner.Count>
<TaskSegments className="hidden w-20 sm:flex" steps={steps} />
<ComposerBanner.ToggleIcon expanded={expanded} />
Expand Down Expand Up @@ -166,36 +166,41 @@ export const ComposerTasksContent = memo(function ComposerTasksContent({
data-composer-tasks-list="true"
>
{keyedTaskSteps(steps).map(({ key, step }) => (
<ComposerBanner.Row key={key} render={<li />}>
<ComposerBanner.Row key={key} render={<li />} className="items-start py-1 pe-2">
Comment thread
maria-rcks marked this conversation as resolved.
<ComposerBanner.Icon
className={cn(
"font-mono text-[10px]",
"h-4",
step.status === "completed"
? "text-success"
: step.status === "inProgress"
? "text-primary"
: "text-muted-foreground/40",
)}
>
{step.status === "completed" ? "✓" : step.status === "inProgress" ? "●" : "○"}
{step.status === "completed" ? (
<CheckIcon />
) : step.status === "inProgress" ? (
<CircleDotIcon />
) : (
<CircleIcon />
)}
</ComposerBanner.Icon>
<ComposerBanner.Content
className={cn(
"block wrap-anywhere",
step.status === "completed"
? "text-muted-foreground/55"
: step.status === "inProgress"
? "text-foreground/90"
: "text-muted-foreground/70",
)}
>
<span className="sr-only">{taskStatusLabels[step.status]}: </span>
{step.step}
</ComposerBanner.Content>
<ComposerBanner.Actions>
<span className="text-[10px] text-muted-foreground">
{taskStatusLabels[step.status]}
</span>
<span
className="w-10 text-right text-[10px] text-muted-foreground/45 tabular-nums"
className="w-12 text-right text-[10px]/4 text-muted-foreground/45 tabular-nums"
data-composer-task-duration="true"
>
{step.durationMs !== undefined
Expand Down
Loading