From 489df1fa5c11a4f3894e7dc4cd2f5817b41d5758 Mon Sep 17 00:00:00 2001 From: Dotta Date: Tue, 21 Apr 2026 08:31:34 -0500 Subject: [PATCH] Refine suggested task interaction UI --- .../components/IssueThreadInteractionCard.tsx | 159 +++++++++--------- .../issue-thread-interactions.stories.tsx | 80 +++++++++ 2 files changed, 162 insertions(+), 77 deletions(-) diff --git a/ui/src/components/IssueThreadInteractionCard.tsx b/ui/src/components/IssueThreadInteractionCard.tsx index d95314be82e..91803ab947e 100644 --- a/ui/src/components/IssueThreadInteractionCard.tsx +++ b/ui/src/components/IssueThreadInteractionCard.tsx @@ -1,6 +1,6 @@ import { useEffect, useMemo, useState } from "react"; import type { Agent } from "@paperclipai/shared"; -import { AlertTriangle, CheckCircle2, ChevronRight, CircleDashed, GitBranch, ListChecks, Loader2, MessageSquareQuote, Sparkles, XCircle } from "lucide-react"; +import { AlertTriangle, CheckCircle2, ChevronRight, CircleDashed, GitBranch, ListChecks, Loader2, MessageSquareQuote, XCircle } from "lucide-react"; import { Link } from "@/lib/router"; import { formatAssigneeUserLabel } from "../lib/assignees"; import { @@ -20,6 +20,7 @@ import { cn, formatDateTime, formatShortDate } from "../lib/utils"; import { MarkdownBody } from "./MarkdownBody"; import { Button } from "./ui/button"; import { Checkbox } from "./ui/checkbox"; +import { PriorityIcon } from "./PriorityIcon"; import { Textarea } from "./ui/textarea"; import { Tooltip, TooltipContent, TooltipTrigger } from "./ui/tooltip"; @@ -78,6 +79,10 @@ function statusLabel(status: IssueThreadInteraction["status"]) { } } +function interactionKindLabel(kind: IssueThreadInteraction["kind"]) { + return kind === "suggest_tasks" ? "Suggested tasks" : "Ask user questions"; +} + function statusIcon(status: IssueThreadInteraction["status"]) { switch (status) { case "accepted": @@ -114,7 +119,7 @@ function statusClasses(status: IssueThreadInteraction["status"]) { }; default: return { - shell: "border-sky-300/80 bg-card", + shell: "border-border bg-card", badge: "border-sky-400/60 bg-sky-100/85 text-sky-950", }; } @@ -132,7 +137,7 @@ function TaskField({ return ( 0 && "relative pl-5")}> +
0 && "relative pl-6")}> {depth > 0 ? (