Share badge states and type the job class (#107) #132
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!132
Loading…
Reference in a new issue
No description provided.
Delete branch "issue-107-badge-jobclass-cleanup"
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 #107
Behaviour doesn't change.
Shared badge states
src/lib/queue/badge.tshas oneBadgetype, which replacesTakeBadgeandJobBadge, andrenderBadge, which builds Queued, Held, Finishing, Rendering N% / Rendering… and Failed.takeBadgeandjobBadgeboth callrenderBadge. Badges that only one side has stay where they are: Not ready, Interrupted, Ready, and the post-step failure.progressPercentis the one place the Rendering percent is worked out, for bothtakeBadgeandjobPercent.Typed job class
JobDto.classis nowJobClassDto("image" | "draft" | "final"inbindings.ts).From<JobClass>maps enum to enum, so the strings exist only in serde'srename_all.WaitingGroup.keyinwaitingGroupsis now"run_next" | JobClassDto.Checks
cargo test --workspace --all-features: passbun test src scripts: pass (285)bun run check: 0 errors