Explain notices and reorder result sections

This commit is contained in:
2026-04-21 20:59:09 +00:00
parent 3a5d1fb1d6
commit cf6d3cbe08
4 changed files with 16 additions and 11 deletions

View File

@@ -45,6 +45,7 @@
}, },
"Notice": { "Notice": {
"Title": "Hinweise", "Title": "Hinweise",
"ExcludedFromFindings": "Diese Fälle werden zur Einordnung separat angezeigt und bewusst nicht als Findings in die Ergebnisliste aufgenommen.",
"InactiveModuleReferences": "Die aktive Welt referenziert Dateien aus inaktiven Modulen: {modules}", "InactiveModuleReferences": "Die aktive Welt referenziert Dateien aus inaktiven Modulen: {modules}",
"MissingModuleReferences": "Die aktive Welt referenziert Dateien aus Modulordnern, die von Foundry derzeit nicht als Module erkannt werden: {modules}" "MissingModuleReferences": "Die aktive Welt referenziert Dateien aus Modulordnern, die von Foundry derzeit nicht als Module erkannt werden: {modules}"
}, },

View File

@@ -45,6 +45,7 @@
}, },
"Notice": { "Notice": {
"Title": "Notes", "Title": "Notes",
"ExcludedFromFindings": "These cases are shown separately for context and are intentionally excluded from the findings list.",
"InactiveModuleReferences": "The active world references files from inactive modules: {modules}", "InactiveModuleReferences": "The active world references files from inactive modules: {modules}",
"MissingModuleReferences": "The active world references files from module folders that Foundry does not currently recognize as installed modules: {modules}" "MissingModuleReferences": "The active world references files from module folders that Foundry does not currently recognize as installed modules: {modules}"
}, },

View File

@@ -2,7 +2,7 @@
"id": "kosmos-storage-audit", "id": "kosmos-storage-audit",
"title": "Kosmos Storage Audit", "title": "Kosmos Storage Audit",
"description": "Analyzes media references and risky storage locations across Foundry data and public roots.", "description": "Analyzes media references and risky storage locations across Foundry data and public roots.",
"version": "0.0.34", "version": "0.0.35",
"compatibility": { "compatibility": {
"minimum": "13", "minimum": "13",
"verified": "13" "verified": "13"

View File

@@ -225,6 +225,7 @@ function renderNotices(notices, loading) {
return ` return `
<section class="storage-audit__summary storage-audit__summary--notices"> <section class="storage-audit__summary storage-audit__summary--notices">
<h3>${localize("KSA.Notice.Title")}</h3> <h3>${localize("KSA.Notice.Title")}</h3>
<p>${localize("KSA.Notice.ExcludedFromFindings")}</p>
<ul class="storage-audit__notice-list">${items}</ul> <ul class="storage-audit__notice-list">${items}</ul>
</section> </section>
`; `;
@@ -267,24 +268,26 @@ function renderGroupedFindingList(groupedFindings, hasAnalysis, loading, orphanF
if (loading || !hasAnalysis) return ""; if (loading || !hasAnalysis) return "";
const sections = []; const sections = [];
if (groupedFindings.nonPackageToPackage.length) { if (groupedFindings.brokenReferences.length) {
sections.push(renderGroupedSection( sections.push(renderGroupedSection(
localize("KSA.Section.UnanchoredPackageTargets"), localize("KSA.Section.BrokenTargets"),
localize("KSA.Section.UnanchoredPackageTargetsDesc"), localize("KSA.Section.BrokenTargetsDesc"),
renderGroupedTable(groupedFindings.nonPackageToPackage, { "",
includeOwner: true, renderGroupedTable(groupedFindings.brokenReferences, {
includeOwner: false,
includeReason: true, includeReason: true,
includeSources: true includeSources: true
}) })
)); ));
} }
if (groupedFindings.brokenReferences.length) { if (groupedFindings.nonPackageToPackage.length) {
sections.push(renderGroupedSection( sections.push(renderGroupedSection(
localize("KSA.Section.BrokenTargets"), localize("KSA.Section.UnanchoredPackageTargets"),
localize("KSA.Section.BrokenTargetsDesc"), localize("KSA.Section.UnanchoredPackageTargetsDesc"),
renderGroupedTable(groupedFindings.brokenReferences, { "",
includeOwner: false, renderGroupedTable(groupedFindings.nonPackageToPackage, {
includeOwner: true,
includeReason: true, includeReason: true,
includeSources: true includeSources: true
}) })