diff --git a/frontend/src/FleetView.tsx b/frontend/src/FleetView.tsx index 3e0f687..1b07da6 100644 --- a/frontend/src/FleetView.tsx +++ b/frontend/src/FleetView.tsx @@ -2,7 +2,7 @@ import { useMemo, useState } from "react"; import { api, type Me, type Fleet, type Scan, type Server, type Stack, type StackStatus, type Target } from "./api"; import { ConfirmDialog } from "./Dialogs"; import { fmtRelative, plural } from "./format"; -import { ArrowUpIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ClockIcon, EditIcon, KeyIcon, PlusIcon, RefreshIcon, SearchIcon, ServerIcon, WarningIcon } from "./icons"; +import { ArrowUpIcon, BanIcon, CheckIcon, ChevronDownIcon, ChevronRightIcon, ClockIcon, EditIcon, KeyIcon, PlusIcon, RefreshIcon, SearchIcon, ServerIcon, WarningIcon } from "./icons"; type Filter = "all" | "updates" | "problems"; @@ -281,9 +281,9 @@ function TargetBlock({ server, target, scan, me, keep, filtering, onCheck, onApp const isOpen = !!open[st.dir]; const [late, total] = [st.services?.filter((s) => s.state === "update").length ?? 0, st.services?.length ?? 0]; const applying = !!applyingDir && applyingDir === st.dir; - // Stack exclue avec une mise à jour disponible : statut neutre, sans bouton. + // Stack exclue avec une mise à jour disponible : statut « Exclue » (couleur propre), sans bouton. const ignored = !applying && !!st.excluded && st.status === "updates"; - const status = applying ? "applying" : ignored ? "stopped" : st.status; + const status = applying ? "applying" : ignored ? "excluded" : st.status; return (
  • setOpen({ ...open, [st.dir]: !isOpen })}> @@ -294,6 +294,7 @@ function TargetBlock({ server, target, scan, me, keep, filtering, onCheck, onApp {applying && } {!applying && st.status === "uptodate" && } {!applying && !ignored && st.status === "updates" && } + {ignored && } {!applying && st.status === "error" && } {applying ? "Mise à jour en cours" : ignored ? "Exclue" : statusLabel[st.status]} @@ -301,12 +302,9 @@ function TargetBlock({ server, target, scan, me, keep, filtering, onCheck, onApp {st.name} {st.excluded && ( - <> - {" "} - - exclue - - + + + )} {st.dir} diff --git a/frontend/src/icons.tsx b/frontend/src/icons.tsx index 89cf03d..a9153b9 100644 --- a/frontend/src/icons.tsx +++ b/frontend/src/icons.tsx @@ -71,6 +71,14 @@ const line = (children: ReactNode) => ); }; +/** Stack exclue des mises à jour : cercle barré. */ +export const BanIcon = line( + <> + + + , +); + /** Icône Papicons avec une pastille en bas à droite (le fond est évidé autour de la pastille). */ const badged = (base: PapPath[], badge: PapPath[]) => function Icon({ size }: IconProps) { diff --git a/frontend/src/styles.css b/frontend/src/styles.css index e25cd22..cb95d67 100644 --- a/frontend/src/styles.css +++ b/frontend/src/styles.css @@ -1252,3 +1252,30 @@ button.copy-ko { border-color: var(--danger); background: var(--danger-soft); } + +/* Stacks exclues des mises a jour : couleur et icone propres, distinctes de "Arretee" */ +:root { + --excl: #c026d3; +} +:root[data-theme="dark"] { + --excl: #e879f9; +} +.stack.st-excluded { + box-shadow: inset 3px 0 0 var(--excl); +} +.status-pill.st-excluded { + color: var(--excl); + background: color-mix(in srgb, var(--excl) 15%, transparent); +} +.excl-badge { + display: inline-flex; + align-items: center; + justify-content: center; + width: 1.25rem; + height: 1.25rem; + margin-left: 0.4rem; + border-radius: 50%; + color: var(--excl); + background: color-mix(in srgb, var(--excl) 15%, transparent); + vertical-align: -0.25rem; +}