tui: entities — face crop dialog (manual rect adjustment) #140
Labels
No labels
area:agents
area:ai
area:config
area:dashboard
area:design
area:design-review
area:devtools
area:entities
area:gallery
area:generate
area:image
area:infra
area:meta
area:model-browser
area:navigation
area:presets
area:security
area:sessions
area:settings
area:sharing
area:test
area:ux
area:webhook
area:workdir
type:bug
type:chore
type:meta
type:user-story
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
charles/loom#140
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
User story
As a user setting up a character entity, I want to fine-tune the detected face rect by adjusting its bounds in a dedicated overlay, so that the face mask used downstream (e.g. for face-swap workflows) matches what I actually want.
Background
GTK has a face crop dialog at
crates/loom-gtk/src/pages/entity/face_crop_dialog.rs:24. The TUI has theface_rectfield but no editor. After AI face detection (#133) the user should be able to nudge the rect.Acceptance criteria
Overlay
OverlayKind::FaceCrop { entity_id }opens viac(from entity Detail when aface_rectexists, or after AI detection)face_rectpos: (x, y) · size: WxH · normalised: (0.41, 0.32) (0.18, 0.24)Adjustment
Shift×10)+/-grows / shrinks the rect (keeps centered)[/]adjusts width only,;/'adjusts height onlyPreset shapes
1reset to AI-detected rect2reset to centered square (image min dimension)Confirm / cancel
Entersaves the new rect toentity.face_rectand persists viastorage.save_entityEscdiscardsTests
Out of scope
References
crates/loom-gtk/src/pages/entity/face_crop_dialog.rs:24(GTK reference)crates/loom-tui/src/screens/entities.rs(face_rect: Option<FaceRect>)