chore(conductor): Add new track 'context_composition_ux_20260601'

This commit is contained in:
ed
2026-06-02 00:19:59 -04:00
parent 0f859d81d6
commit 4baaadd88d
5 changed files with 63 additions and 0 deletions
@@ -0,0 +1,22 @@
# Implementation Plan: Context Composition & UX Refinements
## Phase 1: Panel Cleanup and Addition
- [ ] Task: Clean up Files & Media Panel
- [ ] In `src/gui_2.py`, locate `_render_files_panel`. Remove the `imgui.checkbox` and `imgui.combo` (view mode) logic for each file row.
- [ ] Replace them with a simple `imgui.text` for the path, and optionally a `[+]` button to quickly add the file to the active context composition if it isn't already present.
- [ ] Task: Implement Add File Modal
- [ ] Add state `app.show_add_context_file_modal = False` to `App.__init__`.
- [ ] In `render_context_composition_panel`, update the `[+ Add File]` button to set `app.show_add_context_file_modal = True`.
- [ ] Create `render_add_context_file_modal(app: App)` and add it to `render_context_modals`. It should iterate over `app.files`, filter out those already in `app.context_files`, and provide clickable rows to append them to `app.context_files`.
## Phase 2: Discussion Tinting
- [ ] Task: Tint Discussion Entries
- [ ] In `render_discussion_entry`, apply `imscope.style_color(imgui.Col_.child_bg, ...)` based on `entry["role"]`.
- [ ] Define standard tints (e.g., `vec4(30, 40, 50, 255)` for User, `vec4(40, 30, 50, 255)` for AI, `vec4(20, 20, 20, 255)` for System/Context).
## Phase 3: Verification
- [ ] Task: Verification
- [ ] Verify Files & Media is clean.
- [ ] Verify Add File modal works and successfully moves a file into the composition.
- [ ] Verify discussion entries are correctly tinted based on role.
- [ ] Task: Conductor - User Manual Verification 'Phase 3: Verification' (Protocol in workflow.md)