From 9a8ad176252e72cefc26cb45b1b3615dcd9f16a1 Mon Sep 17 00:00:00 2001 From: maria-rcks Date: Sun, 20 Sep 2026 23:31:09 +0000 Subject: [PATCH] fix(web): match thread notification icons to sidebar status --- .../ThreadNotificationCoordinator.tsx | 29 ++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/apps/web/src/components/ThreadNotificationCoordinator.tsx b/apps/web/src/components/ThreadNotificationCoordinator.tsx index 5feda71ea8f3..1401965e90c7 100644 --- a/apps/web/src/components/ThreadNotificationCoordinator.tsx +++ b/apps/web/src/components/ThreadNotificationCoordinator.tsx @@ -2,6 +2,12 @@ import { useAtomValue } from "@effect/atom-react"; import { useNavigate, useParams } from "@tanstack/react-router"; import type { EnvironmentId, ThreadId } from "@t3tools/contracts"; import * as Option from "effect/Option"; +import { + CircleAlertIcon, + CircleCheckIcon, + MessageCircleQuestionIcon, + ShieldQuestionIcon, +} from "lucide-react"; import { useCallback, useEffect, useRef } from "react"; import { getClientSettings, useClientSettings } from "../hooks/useSettings"; @@ -154,7 +160,28 @@ function EnvironmentNotifications({ type: kind === "completion" ? "success" : status === "failed" ? "error" : "warning", title, description: thread.title, - data: { hideCopyButton: true }, + data: { + hideCopyButton: true, + leadingIcon: + kind === "completion" ? ( + + ) : status === "approval" ? ( + + ) : status === "failed" ? ( + + ) : ( + + ), + }, actionProps: { children: "Open thread", onClick: () => {