Atlas builder (#38) #88
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!88
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-38-atlas-builder"
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 #38
What
studio-corebuilds Atlases from Look Lock snapshots (ADR-0005):ATLAS_LAYOUT_VERSION = 1):#808080.AtlasSize::NativeorAtlasSize::Budget { pixels }.project.atlas_budget_pixels, where NULL means native. Changing it is undoable.atlas(input_key, blob_id, cell_width, cell_height, built_at).atlas.blob_idis added toBLOB_REFERENCES.ProjectSession::atlas(&[LockSnapshotId], AtlasSize). This is the entry point for the later job builder and for per-Setup overrides.look_atlas_preview(&[LookId]), which uses each Look's current snapshot and the Project's size.set_atlas_size.Decisions to check
max(1, 3·unit/20)px, where a cell is4·unit × 9·unit. For a 480×1080 cell this is 18 px, and the row gap is 54 px.Tests
crates/studio-core/tests/atlases.rs: 13 tests throughProjectSession. They cover:src-tauri/tests/lock_snapshots.rs.src/lib/references/atlas.test.ts, for the size labels and the Look choices.cargo test --workspace --all-features,bun testandsvelte-checkall pass.The UI was checked only by typecheck. It was not checked by hand in the running app.