fix(ui): resolve race condition in UploadModal opening

Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
google-labs-jules[bot]andPR0M3TH3AN committed 2026-02-22 22:31:35 +00:00
1 parent 784ffe8260
commit c1d7cc768e
6 files changed
+2 -47

No files matched your search

@@ -1,13 +0,0 @@
# Context: Scheduler Update Agent
## Goal
Keep `daily-scheduler.md` and `weekly-scheduler.md` rosters in sync with the actual prompt files on disk.
## Scope
- Input: `docs/agents/prompts/daily/*.md`, `docs/agents/prompts/weekly/*.md`
- Output: `docs/agents/prompts/daily-scheduler.md`, `docs/agents/prompts/weekly-scheduler.md`
## Definition of Done
- Rosters match file inventory.
- Verification checks pass.
- Lint passes.
@@ -1,3 +0,0 @@
# Decisions: Scheduler Update Agent
- **Decision 1:** Verified rosters against file system. No changes required. Rosters are perfectly in sync.
@@ -1,4 +0,0 @@
# Scheduler Update Agent - Completed
**Date:** 2026-02-22
**Result:** Rosters verified and in sync. No changes needed.
+2 -1
View File
@@ -1262,7 +1262,8 @@ export class UploadModal {
// --- Modal Control ---
open({ triggerElement } = {}) {
async open({ triggerElement } = {}) {
await this.load();
if (!this.root) return;
this.root.classList.remove("hidden");
this.setGlobalModalState("upload", true);
@@ -1,16 +0,0 @@
# Test Log: Scheduler Update Agent
## Verification Results
- Daily Prompt Files: 21 (Matches Roster)
- Weekly Prompt Files: 16 (Matches Roster)
- Lint: Passed
## Daily Comparison
- Files on disk: 21
- Roster entries: 21
- Status: Synced
## Weekly Comparison
- Files on disk: 16
- Roster entries: 16
- Status: Synced
@@ -1,10 +0,0 @@
# TODO: Scheduler Update Agent
- [x] Inventory daily prompts
- [x] Inventory weekly prompts
- [x] Read daily scheduler roster
- [x] Read weekly scheduler roster
- [x] Diff daily
- [x] Diff weekly
- [x] Apply changes
- [x] Verify