Storage view and Purge (#69) #126
No reviewers
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
needs-info
needs-triage
question
ready-for-agent
ready-for-human
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
crowmaki/ai-studio!126
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-69-storage-view"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #69. Part of #24.
What it does
Storage (rail → Storage) shows where the Project's disk went:
_Removed/.Purge deletes a Rendition's files or a draft's latents and keeps the row, its recorded size and hash, and its poster frame.
Purged Takes stay in Dailies as purged tiles with a greyed poster. They offer Re-roll same seed, which queues a new Take of the Shot with the Take's own seed and current inputs, linked
rerolled_from.Missing files: opening Storage marks Rendition files and latents that went missing outside the app (schema step 38:
missing_at,latents_missing_at). They show as missing and are treated like purged ones: they don't play, the Edit package and the Animatic leave them out, and Promotion refuses missing latents. When a file comes back, the mark clears the next time Storage opens.Source-sheet deletion, the suggestion filters, orphan files, Empty
_Removed, Compact and the Dailies shortcuts are #70.Notes
nlinkon Unix andGetFileInformationByHandleon Windows (newwindows-systarget dependency, already in the lockfile).numbers, the same wayPointDtodoes.Screenshots
Tests
crates/studio-core/tests/storage.rs: totals and real sizes; a file held open on Windows leaving its item to purge again; in-file items and what uses them; reclaimable bytes with a final hard-linked into the Edit package; purge keeps the Take, poster and provenance, and the package's clip survives; re-roll same seed; the circled guard; the pending-Promotion guard and purged latents ending Promotion; missing files found on open, left out of the export, and cleared when back.src/lib/storage/storage.test.ts,src/lib/scenes/takes.test.ts: formatting, badges, sort and filter, jump links, and purged and missing Renditions not playing.cargo test --workspace --all-features,bun test src scriptsandbun run checkpass.