From 00130569763959edf17d003f37a3a5fdf17a0fe5 Mon Sep 17 00:00:00 2001 From: Marek Dano Date: Fri, 21 Aug 2026 13:52:53 +0100 Subject: [PATCH] fix: Standardize status icons and colors app-wide Signed-off-by: Marek Dano --- src/components/auth/AuthSuccessPanel.tsx | 9 ++--- src/components/dashboard/StatusDot.tsx | 4 +- src/components/dashboard/StatusHeadline.tsx | 10 +++-- src/components/gateways/CreateServerForm.tsx | 5 ++- src/components/gateways/SourceSelection.tsx | 4 +- .../mcp-servers/AdvancedSettings.tsx | 2 +- src/components/mcp-servers/MCPServerForm.tsx | 23 +++++------ .../mcp-servers/QueryParameterAuth.tsx | 8 ++-- src/components/prompts/PromptForm.tsx | 5 ++- .../prompts/PromptPreviewResult.tsx | 6 +-- .../server-catalog/CatalogResults.tsx | 5 ++- src/components/servers/ServerStatusBadge.tsx | 9 +++-- src/components/servers/ServersTable.tsx | 4 +- .../servers/TestConnectionPanel.tsx | 15 +++---- src/components/ui/badge.test.tsx | 8 ++-- src/components/ui/badge.tsx | 6 +-- .../ui/inline-notification.test.tsx | 8 ++-- src/components/ui/inline-notification.tsx | 17 +++----- src/index.css | 8 ++++ src/lib/status.test.ts | 39 +++++++++++++++++++ src/lib/status.ts | 29 ++++++++++++++ src/pages/CreateServer.tsx | 4 +- 22 files changed, 152 insertions(+), 76 deletions(-) create mode 100644 src/lib/status.test.ts create mode 100644 src/lib/status.ts diff --git a/src/components/auth/AuthSuccessPanel.tsx b/src/components/auth/AuthSuccessPanel.tsx index e0b974a..4e76b79 100644 --- a/src/components/auth/AuthSuccessPanel.tsx +++ b/src/components/auth/AuthSuccessPanel.tsx @@ -1,10 +1,10 @@ import { useEffect, useRef } from "react"; -import { CircleCheck } from "lucide-react"; import { Button } from "@/components/ui/button"; +import { STATUS_ICON } from "@/lib/status"; /** * Shared success state for ResetPassword / PasswordChangeRequired: a - * CircleCheck heading (focus-managed for screen-reader/keyboard users), + * success-icon heading (focus-managed for screen-reader/keyboard users), * body copy, and a single CTA. Not used by ForgotPassword, which shows its * success state as an InlineNotification instead of this pattern. */ @@ -37,10 +37,7 @@ export function AuthSuccessPanel({ tabIndex={-1} className="flex items-center gap-2 text-base font-semibold leading-6 text-neutral-900 dark:text-neutral-100 outline-none" > -