From 903d7100c37d4129279a3db7f196cd58c2b476e6 Mon Sep 17 00:00:00 2001 From: Kosmos Date: Tue, 21 Apr 2026 20:33:16 +0000 Subject: [PATCH] Use domain counters in summary --- lang/de.json | 5 +++-- lang/en.json | 5 +++-- module.json | 2 +- scripts/apps/audit-report-app.js | 5 +++-- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/lang/de.json b/lang/de.json index 6f2424d..61d04f9 100644 --- a/lang/de.json +++ b/lang/de.json @@ -53,8 +53,9 @@ "Files": "Dateien", "References": "Referenzen", "Findings": "Findings", - "High": "High", - "Warning": "Warning", + "Missing": "Fehlt", + "Deprecated": "Veraltet", + "Orphaned": "Verwaist", "ByType": "Findings nach Typ", "NoFindings": "Keine Findings", "WorkBlocks": "Arbeitsblöcke", diff --git a/lang/en.json b/lang/en.json index e9b16a5..b014798 100644 --- a/lang/en.json +++ b/lang/en.json @@ -53,8 +53,9 @@ "Files": "Files", "References": "References", "Findings": "Findings", - "High": "High", - "Warning": "Warning", + "Missing": "Missing", + "Deprecated": "Deprecated", + "Orphaned": "Orphaned", "ByType": "Findings by Type", "NoFindings": "No findings", "WorkBlocks": "Work Blocks", diff --git a/module.json b/module.json index 468d953..85e5439 100644 --- a/module.json +++ b/module.json @@ -2,7 +2,7 @@ "id": "kosmos-storage-audit", "title": "Kosmos Storage Audit", "description": "Analyzes media references and risky storage locations across Foundry data and public roots.", - "version": "0.0.30", + "version": "0.0.31", "compatibility": { "minimum": "13", "verified": "13" diff --git a/scripts/apps/audit-report-app.js b/scripts/apps/audit-report-app.js index 578307a..64168b5 100644 --- a/scripts/apps/audit-report-app.js +++ b/scripts/apps/audit-report-app.js @@ -260,8 +260,9 @@ function renderSummary(summary, loading) {
${localize("KSA.Summary.Files")}${summary.files}
${localize("KSA.Summary.References")}${summary.references}
${localize("KSA.Summary.Findings")}${summary.findings}
-
${localize("KSA.Summary.High")}${summary.bySeverity.high}
-
${localize("KSA.Summary.Warning")}${summary.bySeverity.warning}
+
${localize("KSA.Summary.Missing")}${summary.byKind["broken-reference"] ?? 0}
+
${localize("KSA.Summary.Deprecated")}${summary.byKind["non-package-to-package-reference"] ?? 0}
+
${localize("KSA.Summary.Orphaned")}${summary.byKind["orphan-file"] ?? 0}

${localize("KSA.Summary.ByType")}