Explain notices and reorder result sections
This commit is contained in:
@@ -45,6 +45,7 @@
|
||||
},
|
||||
"Notice": {
|
||||
"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}",
|
||||
"MissingModuleReferences": "Die aktive Welt referenziert Dateien aus Modulordnern, die von Foundry derzeit nicht als Module erkannt werden: {modules}"
|
||||
},
|
||||
|
||||
@@ -45,6 +45,7 @@
|
||||
},
|
||||
"Notice": {
|
||||
"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}",
|
||||
"MissingModuleReferences": "The active world references files from module folders that Foundry does not currently recognize as installed modules: {modules}"
|
||||
},
|
||||
|
||||
@@ -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.34",
|
||||
"version": "0.0.35",
|
||||
"compatibility": {
|
||||
"minimum": "13",
|
||||
"verified": "13"
|
||||
|
||||
@@ -225,6 +225,7 @@ function renderNotices(notices, loading) {
|
||||
return `
|
||||
<section class="storage-audit__summary storage-audit__summary--notices">
|
||||
<h3>${localize("KSA.Notice.Title")}</h3>
|
||||
<p>${localize("KSA.Notice.ExcludedFromFindings")}</p>
|
||||
<ul class="storage-audit__notice-list">${items}</ul>
|
||||
</section>
|
||||
`;
|
||||
@@ -267,24 +268,26 @@ function renderGroupedFindingList(groupedFindings, hasAnalysis, loading, orphanF
|
||||
if (loading || !hasAnalysis) return "";
|
||||
|
||||
const sections = [];
|
||||
if (groupedFindings.nonPackageToPackage.length) {
|
||||
if (groupedFindings.brokenReferences.length) {
|
||||
sections.push(renderGroupedSection(
|
||||
localize("KSA.Section.UnanchoredPackageTargets"),
|
||||
localize("KSA.Section.UnanchoredPackageTargetsDesc"),
|
||||
renderGroupedTable(groupedFindings.nonPackageToPackage, {
|
||||
includeOwner: true,
|
||||
localize("KSA.Section.BrokenTargets"),
|
||||
localize("KSA.Section.BrokenTargetsDesc"),
|
||||
"",
|
||||
renderGroupedTable(groupedFindings.brokenReferences, {
|
||||
includeOwner: false,
|
||||
includeReason: true,
|
||||
includeSources: true
|
||||
})
|
||||
));
|
||||
}
|
||||
|
||||
if (groupedFindings.brokenReferences.length) {
|
||||
if (groupedFindings.nonPackageToPackage.length) {
|
||||
sections.push(renderGroupedSection(
|
||||
localize("KSA.Section.BrokenTargets"),
|
||||
localize("KSA.Section.BrokenTargetsDesc"),
|
||||
renderGroupedTable(groupedFindings.brokenReferences, {
|
||||
includeOwner: false,
|
||||
localize("KSA.Section.UnanchoredPackageTargets"),
|
||||
localize("KSA.Section.UnanchoredPackageTargetsDesc"),
|
||||
"",
|
||||
renderGroupedTable(groupedFindings.nonPackageToPackage, {
|
||||
includeOwner: true,
|
||||
includeReason: true,
|
||||
includeSources: true
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user