1.1 KiB
1.1 KiB
Implementation Plan: Approve Modal UX Fixes
Phase 1: Modal Layout Updates
- Task: Make Modal Resizable
- In
src/gui_2.py(render_approve_script_modal), setimgui.set_next_window_size(imgui.ImVec2(800, 600), imgui.Cond_.first_use_ever). - Change
imgui.WindowFlags_.always_auto_resizeto0inimgui.begin_popup_modal.
- In
- Task: Fix Full Preview and Input Height
- Add
ui_approve_modal_preview = FalsetoApp.__init__. - Replace
app.show_windows["Text Viewer"]checkbox logic inrender_approve_script_modalwithapp.ui_approve_modal_preview. - When
app.ui_approve_modal_previewis True, render the script in a read-only child or usingmarkdown_helper. - When False, set the
imgui.input_text_multilineheight to dynamically fill the remaining space (imgui.ImVec2(-1, -40)or similar).
- Add
Phase 2: Verification
- Task: Verification
- Trigger a script approval and resize the modal.
- Toggle "Show Full Preview" and ensure it renders within the modal safely.
- Task: Conductor - User Manual Verification 'Phase 2: Verification' (Protocol in workflow.md)