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

@@ -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
})