Explain notices and reorder result sections
This commit is contained in:
@@ -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