From d6488e69b93f9dcf7d56e7401f059ca177202846 Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Wed, 25 Mar 2026 22:45:27 -0400 Subject: [PATCH] Remove usages of red for non-destructive, reversible UI --- ui/src/components/alerts/details.tsx | 2 +- ui/src/components/docker/container-selector.tsx | 4 ++-- ui/src/components/docker/link.tsx | 6 +++--- ui/src/components/log-section.tsx | 6 +++--- ui/src/components/stack-service-selector.tsx | 4 ++-- ui/src/components/tags/filter.tsx | 4 ++-- ui/src/components/updates/details.tsx | 2 +- ui/src/pages/alerts.tsx | 4 ++-- ui/src/pages/profile/index.tsx | 1 - ui/src/pages/swarm/config/index.tsx | 2 +- ui/src/pages/swarm/secret/index.tsx | 2 +- ui/src/pages/updates.tsx | 4 ++-- ui/src/resources/alerter/index.tsx | 4 ++-- ui/src/resources/selector.tsx | 4 ++-- ui/src/resources/server/docker/images.tsx | 2 +- ui/src/resources/server/docker/networks.tsx | 2 +- ui/src/resources/server/docker/volumes.tsx | 2 +- ui/src/resources/swarm/config.tsx | 2 +- ui/src/resources/swarm/docker/configs.tsx | 2 +- ui/src/resources/swarm/docker/secrets.tsx | 2 +- ui/src/ui/enable-switch.tsx | 4 +--- 21 files changed, 31 insertions(+), 34 deletions(-) diff --git a/ui/src/components/alerts/details.tsx b/ui/src/components/alerts/details.tsx index a99487ea1..a08dfdc91 100644 --- a/ui/src/components/alerts/details.tsx +++ b/ui/src/components/alerts/details.tsx @@ -98,7 +98,7 @@ export function AlertDetailsContent({ {/** HEADER */} {fmtUpperCamelcase(alert.data.type)} - + diff --git a/ui/src/components/docker/container-selector.tsx b/ui/src/components/docker/container-selector.tsx index 44e63bf87..3634ce61b 100644 --- a/ui/src/components/docker/container-selector.tsx +++ b/ui/src/components/docker/container-selector.tsx @@ -86,8 +86,8 @@ export default function ContainerSelector({ {clearable && ( { e.stopPropagation(); onSelect?.(""); diff --git a/ui/src/components/docker/link.tsx b/ui/src/components/docker/link.tsx index a43752c28..14449a58f 100644 --- a/ui/src/components/docker/link.tsx +++ b/ui/src/components/docker/link.tsx @@ -82,7 +82,7 @@ export const DOCKER_LINK_ICONS: { : noContainers ? ["none", "host", "bridge"].includes(name) ? "None" - : "Critical" + : "Neutral" : "Good"; return ; }, @@ -92,7 +92,7 @@ export const DOCKER_LINK_ICONS: { const noContainers = !name ? false : containers.every((container) => container.image_id !== name); - const intention = !name ? "Warning" : noContainers ? "Critical" : "Good"; + const intention = !name ? "Warning" : noContainers ? "Neutral" : "Good"; return ; }, Volume: ({ serverId, name, size = "1rem" }) => { @@ -101,7 +101,7 @@ export const DOCKER_LINK_ICONS: { const noContainers = !name ? false : containers.every((container) => !container.volumes?.includes(name)); - const intention = !name ? "Warning" : noContainers ? "Critical" : "Good"; + const intention = !name ? "Warning" : noContainers ? "Neutral" : "Good"; return ; }, }; diff --git a/ui/src/components/log-section.tsx b/ui/src/components/log-section.tsx index 07943e6ac..2698fb38a 100644 --- a/ui/src/components/log-section.tsx +++ b/ui/src/components/log-section.tsx @@ -135,8 +135,8 @@ export function LogSectionInner({ {terms.map((term, index) => (