diff --git a/module.json b/module.json index 72b823a..c64b8e1 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.5", + "version": "0.0.6", "compatibility": { "minimum": "13", "verified": "13" diff --git a/scripts/apps/audit-report-app.js b/scripts/apps/audit-report-app.js index 08d8f29..2fa58aa 100644 --- a/scripts/apps/audit-report-app.js +++ b/scripts/apps/audit-report-app.js @@ -15,7 +15,7 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV resizable: true }, position: { - width: 760, + width: 980, height: 680 } }; @@ -120,6 +120,8 @@ export class StorageAuditReportApp extends foundry.applications.api.ApplicationV ui.notifications.error(format("KSA.Notify.Failed", { message: error.message })); } finally { this.#loading = false; + const currentWidth = this.position?.width ?? 0; + if (currentWidth < 980) this.setPosition({ width: 980 }); await this.render({ force: true }); } } diff --git a/scripts/core/analyzer.js b/scripts/core/analyzer.js index 4379ea9..1a58dd4 100644 --- a/scripts/core/analyzer.js +++ b/scripts/core/analyzer.js @@ -25,7 +25,9 @@ export async function analyzeStorage({ listFiles, listSources, onProgress }={}) const extracted = extractReferencesFromValue(source.value, { sourceType: source.sourceType, sourceScope: source.sourceScope, - sourceLabel: source.sourceLabel + sourceLabel: source.sourceLabel, + sourceName: source.sourceName, + sourceUuid: source.sourceUuid }); references.push(...extracted); referenceCount += extracted.length;