Private
Public Access
0
0
Commit Graph

378 Commits

Author SHA1 Message Date
ed 765cbad3af refactor(gui): Use imscope context managers in _render_discussion_entry_read_mode 2026-05-12 19:55:27 -04:00
ed 325970eb38 refactor(gui): Fix scoping issues and restore missing _render_discussion_tab 2026-05-12 19:52:50 -04:00
ed ff1a9d77f7 gemini 3.1 fails 2026-05-12 19:50:46 -04:00
ed ea001e66f7 modularize gui_2.py and fix imgui scope leaks 2026-05-12 18:48:30 -04:00
ed 345be18d55 pain 2026-05-12 18:45:06 -04:00
ed 5be6ef88f8 broken: discussion compression 2026-05-12 18:26:39 -04:00
ed 4b78d1df02 wip: more cleanup 2026-05-12 18:19:32 -04:00
ed e87b7a695e script modal method 2026-05-12 18:16:23 -04:00
ed 128956c0d3 delete redundant operations hub method 2026-05-12 18:13:39 -04:00
ed fd00004afa fix bs 2026-05-12 18:06:43 -04:00
ed dc15d42ec7 Broken: Fixing this crap 2026-05-12 17:47:46 -04:00
ed 7d8680232a fix imgui label error 2026-05-12 15:34:48 -04:00
ed c4e1cca66b progress on fixing up gui code 2026-05-12 15:20:34 -04:00
ed fb45b44824 making a dent (disasterous one) 2026-05-12 02:41:59 -04:00
ed 643f36e7d1 beginning to chunk up _gui_func 2026-05-12 01:03:16 -04:00
ed 1ed2d3e139 starting to get decent compression 2026-05-12 00:45:21 -04:00
ed a0a537ff01 beginning curation of gui_2.py using imscopes 2026-05-12 00:40:19 -04:00
ed aed3ebe063 feat(gui): Add imgui_scopes with per-type context managers for begin/end pairs 2026-05-12 00:13:22 -04:00
ed 8fbe6543dc feat(gui): Migrate AI Settings window to imgui_window scope 2026-05-11 23:22:53 -04:00
ed 1f82f996c4 feat(gui): Migrate Project Settings window to imgui_window scope 2026-05-11 23:19:46 -04:00
ed 1e47ed9013 feat(gui): Migrate _render_history_window to imgui_window scope 2026-05-11 23:17:59 -04:00
ed f1ca3751c8 feat(gui): Migrate _render_shader_live_editor to imgui_window scope 2026-05-11 23:11:56 -04:00
ed 4c64942426 preparing to use imgui scopes... 2026-05-11 23:03:21 -04:00
ed 5e947d50fe fixing bugs in gui_2.py 2026-05-11 22:19:04 -04:00
ed 26ef81a30e chore(fix): Resolve regressions in history logic, track startup, and GUI performance 2026-05-11 20:03:01 -04:00
ed a669f92cab feat(ui): Automatically populate AST slices when adding files to context 2026-05-11 18:49:18 -04:00
ed cb0fa89730 feat(presets): Implement NamedViewPresets for per-file view settings 2026-05-11 18:31:56 -04:00
ed 3614e117c3 feat(ui): Implement visual Slice Editor with colored overlays and click-drag 2026-05-11 18:19:50 -04:00
ed 976b241dcc feat(ui): Implement dual-pane AST Inspector with line-based highlights 2026-05-11 18:00:56 -04:00
ed 78c009fc26 feat(context): Implement ContextPreset and FileViewPreset infrastructure 2026-05-11 13:13:37 -04:00
ed fb1b72c5ac feat(context): Implement view mode UI in context composition panel 2026-05-11 11:44:07 -04:00
ed 5112debe14 feat(context): Implement directory grouping and file stats in context composition panel 2026-05-11 11:37:15 -04:00
ed 9b3a4d6ec6 feat(context): Decouple context composition from files and media 2026-05-11 11:00:15 -04:00
ed b328cd4e68 fix(gui): prevent dictionary size change during iteration
- Wrap discussions.items() with list() in takes_panel to prevent
  RuntimeError when dictionary changes during iteration
- This was causing crashes when switching discussions
2026-05-10 23:20:02 -04:00
ed 6738e44e7a fix(gui): properly handle AST Inspector popup state
- Add _show_ast_inspector flag to track when popup should open
- Use same pattern as other modals (_show_* flag + open_popup)
- Restructure if/else to properly handle end_popup paths
- This fixes the Inspect button not opening the modal
2026-05-10 22:33:07 -04:00
ed fc2456506a fix(gui): remove redundant open_popup call for AST Inspector
begin_popup_modal handles its own open state, open_popup was causing the modal to not appear
2026-05-10 22:21:06 -04:00
ed 6861ce0dca fix(mcp): configure mcp_client allowlist on project switch
Previously mcp_client.configure() was only called during ai_client.send()
which meant GUI buttons (Slices/Inspect) couldn't access files when
project was switched to an external project like gencpp. Now _switch_project
reconfigures mcp_client with the new project's root and file_items.
2026-05-10 20:57:11 -04:00
ed 2fa44c02c8 _gui_func annotations to gui_func 2026-05-10 20:26:30 -04:00
ed f83629dc85 starting to cleanup gui_2.py 2026-05-10 20:12:34 -04:00
ed 3eacfc39e6 did ai's job 2026-05-10 19:57:37 -04:00
ed 9f9d1d42ee WIP: PAIN 2026-05-10 19:51:31 -04:00
ed 41a70258af less pain 2026-05-10 18:55:43 -04:00
ed 8715776ee4 less pain 2026-05-10 18:53:35 -04:00
ed e42db60299 pain 2026-05-10 18:49:10 -04:00
ed 6f4f281b4c pain 2026-05-10 18:41:48 -04:00
ed fca9392f65 trying ot make files & media less shit 2026-05-10 18:36:01 -04:00
ed f9f8bde8ef fix(gui): ensure minimum section height of 100px for Files & Media sections 2026-05-10 17:54:22 -04:00
ed 4940913e36 fix(gui): shared height for Files & Media sections
- Calculate avail at window level, divide by num_open sections
- Pass height_override to _render_files_panel and _render_screenshots_panel
- When both open: each gets equal share of available space
- When one open: it gets full available space
2026-05-10 17:45:32 -04:00
ed cf2f7c863f fix(gui): Files & Media - content-based heights + scope annotations
- Files: child_h = min(max(len(files),1) * 28 + 40, 300)
- Screenshots: shot_h = min(max(len(shots),1) * 28 + 40, 200)
- Added # BEGIN/END comments for all window/section scopes
- Keeps original working structure (no restructuring)
2026-05-10 17:39:56 -04:00
ed feeb318209 fix(gui): equal space allocation for Files & Media sections
- Calculate available space from get_content_region_avail().y
- Divide by number of open sections (1 or 2)
- Each section gets equal height (section_h)
- Content scrolls internally if it exceeds allocated space
- When both collapsed, shows minimal placeholder
2026-05-10 17:35:12 -04:00