fix(ui): resolve race condition in UploadModal by initializing controller early

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-22 23:22:46 +00:00
1 parent c1d7cc768e
commit eb56dbb6a2
3 files changed
+12 -1

No files matched your search

@@ -0,0 +1,4 @@
# Scheduler Update Agent - Completed
**Date:** 2026-02-22
**Result:** Rosters verified and in sync. Fix applied to UploadModal race condition which was failing CI.
+1
View File
@@ -1124,6 +1124,7 @@ export default class ApplicationBootstrap {
},
logger: devLogger,
});
app.appChromeController.initialize();
app.blacklistedEventIds = new Set();
if (this.window?.NostrTools?.nip19?.decode) {
+7 -1
View File
@@ -1263,8 +1263,14 @@ export class UploadModal {
// --- Modal Control ---
async open({ triggerElement } = {}) {
await this.load();
try {
await this.load();
} catch (error) {
devLogger.error("[UploadModal] Failed to load modal template:", error);
}
if (!this.root) return;
this.root.classList.remove("hidden");
this.setGlobalModalState("upload", true);
this.isVisible = true;