TypeScript
fix(web): match thread notification icons to sidebar status (#12806)
maria30e3649c3281
diff --git a/apps/web/src/components/ThreadNotificationCoordinator.tsx b/apps/web/src/components/ThreadNotificationCoordinator.tsxindex 5feda71ea8f..1401965e90c 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" ? (+ <CircleCheckIcon+ aria-hidden+ className="size-4 text-emerald-700 dark:text-emerald-300"+ />+ ) : status === "approval" ? (+ <ShieldQuestionIcon+ aria-hidden+ className="size-4 text-amber-700 dark:text-amber-300"+ />+ ) : status === "failed" ? (+ <CircleAlertIcon aria-hidden className="size-4 text-red-700 dark:text-red-300" />+ ) : (+ <MessageCircleQuestionIcon+ aria-hidden+ className="size-4 text-indigo-600 dark:text-indigo-300"+ />+ ),+ },actionProps: {children: "Open thread",onClick: () => {