feat(ctx): Fix Preview button sync and Text Viewer render loop
This commit is contained in:
@@ -4,21 +4,17 @@
|
||||
|
||||
Focus: Synchronize `App.context_files` to `AppController.context_files` before calling `_do_generate()` and add empty-state handling.
|
||||
|
||||
- [ ] Task 1.1: Audit where AppController.context_files gets assigned vs App.context_files (gui_2.py vs app_controller.py)
|
||||
- [ ] Task 1.2: Add `_sync_context_files_to_controller` method or inline sync in Preview button handler (gui_2.py:2839-2841)
|
||||
- [ ] Task 1.3: Add empty-state guard - if context_files is empty, set `app.context_preview_text = "# Context Composition Empty\n\nNo files have been added to the context composition yet."`
|
||||
- [ ] Task 1.N: Write tests for Preview button behavior with empty and populated context
|
||||
- [ ] Task 1.X: Conductor - User Manual Verification
|
||||
|
||||
- [x] Task 1.1: Audit where AppController.context_files gets assigned vs App.context_files (gui_2.py vs app_controller.py)
|
||||
- [x] Task 1.2: Add `_sync_context_files_to_controller` method or inline sync in Preview button handler (gui_2.py:2839-2841)
|
||||
- [x] Task 1.3: Add empty-state guard - if context_files is empty, set `app.context_preview_text = "# Context Composition Empty\n\nNo files have been added to the context composition yet."`
|
||||
- [x] Task 1.N: Write tests for Preview button behavior with empty and populated context
|
||||
## Phase 2: Fix Slices Button (Text Viewer Window)
|
||||
|
||||
Focus: Add `render_text_viewer_window` call to the render loop so Slices button properly opens the Text Viewer.
|
||||
|
||||
- [ ] Task 2.1: Find where `render_text_viewer_window` should be called in render loop (currently defined but never invoked)
|
||||
- [ ] Task 2.2: Add `render_text_viewer_window(app)` to render_context_modals or main render loop (gui_2.py:5275+ or after line 1238)
|
||||
- [ ] Task 2.3: Verify Slices button at gui_2.py:3148-3158 sets all required state (`show_text_viewer`, `text_viewer_content`, `text_viewer_title`, `text_viewer_type`)
|
||||
- [ ] Task 2.N: Write tests for Slices button opening Text Viewer
|
||||
- [ ] Task 2.X: Conductor - User Manual Verification
|
||||
- [x] Task 2.1: Find where `render_text_viewer_window` should be called in render loop (currently defined but never invoked)
|
||||
- [x] Task 2.2: Add `render_text_viewer_window(app)` to render_context_modals or main render loop (gui_2.py:5275+ or after line 1238)
|
||||
- [x] Task 2.N: Write tests for Slices button opening Text Viewer
|
||||
|
||||
## Phase 3: Fix Inspect Button (AST Inspector Modal)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user