tui: Entity screen — CRUD + per-style prompts #36

Closed
opened 2026-04-11 13:05:30 +00:00 by charles · 0 comments
Owner

User story

As a user curating characters, poses, and places, I want a dedicated screen to create, edit, and inject entities into my prompts, so that I can reuse reference data across generations.

Acceptance criteria

Layout

  • Three-column layout: entity type selector (Characters / Poses / Places), entity list, entity detail editor

CRUD

  • a create, e edit, d delete, r rename entity
  • Fields: name, thumbnail image (local path), description, tags, per-style prompt variants

Per-style prompts

  • Each entity has a list of styles; each style has name and prompt_modifier
  • a adds a style, d removes; editing inline with movement keys
  • Style names align with spec §4.4 (model checkpoints or custom names)

Inject into Generate

  • Enter or i on an entity appends its prompt (honouring the current active style) to the Generate screen prompt
  • A notification confirms the injection

Persistence

  • All state persisted through loom-core entity services

Tests

  • Unit test: creating then deleting an entity leaves state unchanged
  • Unit test: inject appends the expected text including the active style modifier

Out of scope

  • Face detection / AI description (separate ticket)

References

  • Spec §4.4 "Entity Screen"
## User story As a user curating characters, poses, and places, I want a dedicated screen to create, edit, and inject entities into my prompts, so that I can reuse reference data across generations. ## Acceptance criteria ### Layout - [ ] Three-column layout: entity type selector (Characters / Poses / Places), entity list, entity detail editor ### CRUD - [ ] `a` create, `e` edit, `d` delete, `r` rename entity - [ ] Fields: name, thumbnail image (local path), description, tags, per-style prompt variants ### Per-style prompts - [ ] Each entity has a list of styles; each style has `name` and `prompt_modifier` - [ ] `a` adds a style, `d` removes; editing inline with movement keys - [ ] Style names align with spec §4.4 (model checkpoints or custom names) ### Inject into Generate - [ ] `Enter` or `i` on an entity appends its prompt (honouring the current active style) to the Generate screen prompt - [ ] A notification confirms the injection ### Persistence - [ ] All state persisted through `loom-core` entity services ### Tests - [ ] Unit test: creating then deleting an entity leaves state unchanged - [ ] Unit test: inject appends the expected text including the active style modifier ## Out of scope - Face detection / AI description (separate ticket) ## References - Spec §4.4 "Entity Screen"
charles added this to the loom-tui v0.1.0 milestone 2026-04-11 13:05:30 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/loom#36
No description provided.