App Settings: default Slot order (#99) #131
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!131
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-99-app-settings-slot-order"
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 #99
What
An App settings dialog, outside any Project, whose first page edits the app-wide default Slot order (
reference_category_orderin<config_dir>/defaults.json). New Projects copy it at creation; existing Projects keep their own.DragList+categoryLabel) moved into a sharedSlotOrderEditor.svelte, used by both Project settings → Slot order and the new dialog.AppDefaults::savewrites atomically (write + fsyncdefaults.json.partial, then rename);AppDefaults::save_reference_category_orderrefuses an order that doesn't name each category once (ReferenceCategory::check_order, now shared with the per-Project setter).default_reference_category_order/set_default_reference_category_order. Never touches the open session, so nothing lands in a Project's undo log.Tests
crates/studio-core/tests/app_defaults.rs:AppDefaultssave/load round-trip (no leftover temp file); a new Project copies the edited order while an existing one keeps its own; bad orders (missing, duplicate, extra) are refused and leave the file unchanged.src-tauri/tests/smoke.rs: the two RPCs through the adapter, thennew_projectpicks up the order.cargo test --workspace --all-features,bun test src,bun run checkall pass.Checked in the running app: ↑/↓ and drag both save to
defaults.json, a Project seeded afterwards had the new order, editing defaults afterwards left it alone, and the undo label stayed unchanged.Screenshots
Start screen with the new entry point:

App settings from the start screen (after moving Board up):

File menu inside a Project:

App settings over a Project whose own Slot order (copied at creation) stays as it was:
