Show module version in report header

This commit is contained in:
2026-04-21 14:34:34 +00:00
parent 61a2343d9f
commit 4ea1a47239
3 changed files with 19 additions and 2 deletions

View File

@@ -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.25",
"version": "0.0.26",
"compatibility": {
"minimum": "13",
"verified": "13"

View File

@@ -39,6 +39,7 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
showAll: this.#showAll,
progress: this.#progress,
notices: this.#analysis?.notices ?? [],
moduleVersion: game.modules.get("kosmos-storage-audit")?.version ?? null,
summary: this.#summarize(this.#analysis),
groupedFindings
};
@@ -50,7 +51,10 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV
container.innerHTML = `
<section class="storage-audit__hero">
<div>
<div class="storage-audit__title-row">
<h2>${localize("KSA.Hero.Title")}</h2>
${context.moduleVersion ? `<span class="storage-audit__version">v${escapeHtml(context.moduleVersion)}</span>` : ""}
</div>
<p>${renderLocalizedCodeText("KSA.Hero.Intro1", { dataRoot: "data", publicRoot: "public" }, ["data", "public"])}</p>
<p>${renderLocalizedCodeText("KSA.Hero.Intro2", { dataRoot: "data" }, ["data"])}</p>
<p>${escapeHtml(localize("KSA.Hero.Intro3"))}</p>

View File

@@ -107,9 +107,22 @@
line-height: 1.05;
}
.storage-audit__title-row {
display: flex;
align-items: baseline;
gap: 0.7rem;
flex-wrap: wrap;
}
.storage-audit__hero h2 {
font-weight: 800;
letter-spacing: 0.01em;
margin-bottom: 0;
}
.storage-audit__version {
opacity: 0.7;
white-space: nowrap;
}
.storage-audit__hero p,