From 1993802c38e82642016a5b42bcc60c0b04936650 Mon Sep 17 00:00:00 2001 From: mrhid6 Date: Fri, 7 Aug 2026 10:52:16 +0100 Subject: [PATCH] feat: Updated rescan button text --- web/app/(app)/vulnerabilities/page.tsx | 52 ++++---------------------- 1 file changed, 8 insertions(+), 44 deletions(-) diff --git a/web/app/(app)/vulnerabilities/page.tsx b/web/app/(app)/vulnerabilities/page.tsx index 62ef53d..a134150 100644 --- a/web/app/(app)/vulnerabilities/page.tsx +++ b/web/app/(app)/vulnerabilities/page.tsx @@ -99,7 +99,7 @@ export default function VulnerabilitiesPage() { {isAdmin && ( )} @@ -120,9 +120,7 @@ export default function VulnerabilitiesPage() { paged.reset(); }} aria-pressed={severity === s} - className={`flex items-center gap-2 rounded-lg border px-2.5 py-1.5 text-left transition-colors ${ - severity === s ? "border-accent bg-surface-2" : "border-transparent hover:bg-surface-2" - }`} + className={`flex items-center gap-2 rounded-lg border px-2.5 py-1.5 text-left transition-colors ${severity === s ? "border-accent bg-surface-2" : "border-transparent hover:bg-surface-2"}`} > {counts[s] ?? 0} @@ -139,20 +137,14 @@ export default function VulnerabilitiesPage() { paged.reset(); }} aria-pressed={state === s} - className={`rounded-lg border px-3 py-1.5 text-sm capitalize transition-colors ${ - state === s ? "border-accent text-accent" : "border-border text-text-secondary hover:text-text-primary" - }`} + className={`rounded-lg border px-3 py-1.5 text-sm capitalize transition-colors ${state === s ? "border-accent text-accent" : "border-border text-text-secondary hover:text-text-primary"}`} > {s} ))} - {groups.error && ( -
- {(groups.error as Error).message} -
- )} + {groups.error &&
{(groups.error as Error).message}
} {groups.isLoading ? ( @@ -162,49 +154,21 @@ export default function VulnerabilitiesPage() { ) : packages.length > 0 ? ( <> {paged.slice.map((g) => ( - unaccept.mutate(f.id)} - onApplyUpdates={(serverId) => applyUpdates.mutate(serverId)} - applying={applyUpdates.isPending ? (applyUpdates.variables as string) : undefined} - /> + unaccept.mutate(f.id)} onApplyUpdates={(serverId) => applyUpdates.mutate(serverId)} applying={applyUpdates.isPending ? (applyUpdates.variables as string) : undefined} /> ))} - + ) : (

No {state} findings{severity ? ` at ${severity} severity` : ""}.

-

- Servers report their packages hourly. A server whose distribution has no advisory feed is reported as unsupported - on its own page rather than counted as clean here. -

+

Servers report their packages hourly. A server whose distribution has no advisory feed is reported as unsupported on its own page rather than counted as clean here.

)}
- {accepting && ( - setAccepting(null)} - onAccept={(reason, until) => accept.mutate({ id: accepting.id, reason, until })} - /> - )} + {accepting && setAccepting(null)} onAccept={(reason, until) => accept.mutate({ id: accepting.id, reason, until })} />} ); }