From 4ea1a47239cb0e08434a16197730edd5c2f4ec37 Mon Sep 17 00:00:00 2001 From: Kosmos Date: Tue, 21 Apr 2026 14:34:34 +0000 Subject: [PATCH] Show module version in report header --- module.json | 2 +- scripts/apps/audit-report-app.js | 6 +++++- styles/audit.css | 13 +++++++++++++ 3 files changed, 19 insertions(+), 2 deletions(-) diff --git a/module.json b/module.json index d5b4b9a..ca1189e 100644 --- a/module.json +++ b/module.json @@ -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" diff --git a/scripts/apps/audit-report-app.js b/scripts/apps/audit-report-app.js index 7415797..35e9e78 100644 --- a/scripts/apps/audit-report-app.js +++ b/scripts/apps/audit-report-app.js @@ -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 = `
-

${localize("KSA.Hero.Title")}

+
+

${localize("KSA.Hero.Title")}

+ ${context.moduleVersion ? `v${escapeHtml(context.moduleVersion)}` : ""} +

${renderLocalizedCodeText("KSA.Hero.Intro1", { dataRoot: "data", publicRoot: "public" }, ["data", "public"])}

${renderLocalizedCodeText("KSA.Hero.Intro2", { dataRoot: "data" }, ["data"])}

${escapeHtml(localize("KSA.Hero.Intro3"))}

diff --git a/styles/audit.css b/styles/audit.css index 1b99e5e..615c901 100644 --- a/styles/audit.css +++ b/styles/audit.css @@ -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,