2.2 KiB
2.2 KiB
Specification: Context Composition & UX Refinements
1. Overview
The user requested several immediate refinements to the Context Composition and Files & Media panels to improve clarity and workflow:
- Files & Media Cleanup: The master "Files & Media" panel currently displays aggregation checkboxes and view mode dropdowns. These are legacy artifacts; this panel should only represent the totality of files in the project. State-specific controls belong exclusively in the "Context Composition" panel.
- Add File UX: The "Add File" button in the Context Composition panel is non-functional. It needs to open a filtered selection menu allowing users to add files from the master list into the active context.
- Visual Entry Tinting: To improve readability, User and AI messages in the Discussion entries list should be visually tinted, while cruft/system categories should be neutral or dimmed.
2. Functional Requirements
- Remove Master Flags: Modify
_render_files_panelinsrc/gui_2.pyto remove theimgui.checkboxandview_modecombo box. It should only display the file path and perhaps a button to "Send to Context" if not already there. - Implement "Add File" Modal:
- Create a popup modal
Add Context Filetriggered by the[+ Add File]button inrender_context_composition_panel. - The modal should list all files in
app.filesthat are NOT currently inapp.context_files. - Selecting a file adds it to
app.context_files(defaulting toauto_aggregate=True,view_mode='summary').
- Create a popup modal
- Discussion Entry Tinting: Update
render_discussion_entryto apply a subtle background tint or text color shift based on the entry'srole(e.g., User = faint blue, AI = faint green/purple, System = dimmed gray).
3. Non-Functional Requirements
- Clarity: The separation of concerns between "Project Files" and "Active Context" must be visually obvious.
4. Acceptance Criteria
- The "Files & Media" panel shows a clean list of files without individual view/aggregation controls.
- Clicking
[+ Add File]in Context Composition opens a functional picker to add missing files. - The Discussion Hub entries list visually distinguishes User and AI messages via color.