1.6 KiB
1.6 KiB
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 theimgui.checkboxandimgui.combo(view mode) logic for each file row. - Replace them with a simple
imgui.textfor the path, and optionally a[+]button to quickly add the file to the active context composition if it isn't already present.
- In
- Task: Implement Add File Modal
- Add state
app.show_add_context_file_modal = FalsetoApp.__init__. - In
render_context_composition_panel, update the[+ Add File]button to setapp.show_add_context_file_modal = True. - Create
render_add_context_file_modal(app: App)and add it torender_context_modals. It should iterate overapp.files, filter out those already inapp.context_files, and provide clickable rows to append them toapp.context_files.
- Add state
Phase 2: Discussion Tinting
- Task: Tint Discussion Entries
- In
render_discussion_entry, applyimscope.style_color(imgui.Col_.child_bg, ...)based onentry["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).
- In
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)