conductor(archive): move 39 completed tracks (2026-05 to 2026-06) to archive/

This commit is contained in:
ed
2026-06-03 00:09:52 -04:00
parent 0ffeccc7d3
commit 594f14f943
160 changed files with 94 additions and 21 deletions
@@ -0,0 +1,5 @@
# Track structural_file_editor_20260601 Context
- [Specification](./spec.md)
- [Implementation Plan](./plan.md)
- [Metadata](./metadata.json)
@@ -0,0 +1,8 @@
{
"track_id": "structural_file_editor_20260601",
"type": "feature",
"status": "new",
"created_at": "2026-06-01T00:00:00Z",
"updated_at": "2026-06-01T00:00:00Z",
"description": "Combine AST Inspector and Slices Editor into a unified Structural File Editor"
}
@@ -0,0 +1,17 @@
# Implementation Plan: Structural File Editor
## Phase 1: Unification
- [x] Task: Create Structural File Editor Modal
- [x] Add `app.show_structural_editor_modal = False` to `App.__init__`.
- [x] Create `render_structural_file_editor_modal(app: App)` in `src/gui_2.py` (implemented in `src/structural_editor_modal.py`).
- [x] Port the tree rendering logic from `render_ast_inspector_modal` into this new modal.
- [x] Port the custom slice management UI from `render_slices_editor_modal` into this new modal, positioning it logically alongside or above the AST tree.
- [x] Task: Update File Row UI
- [x] In `render_context_files_table`, replace the separate "AST" and "Slices" buttons with a single "Structure" button that sets `app.show_structural_editor_modal = True` and sets the target file.
## Phase 2: Verification
- [x] Task: Verification
- [x] Open the Structural File Editor for a complex Python file.
- [x] Verify both AST nodes and custom slices are visible and interactive.
- [x] Verify that adding a custom slice works correctly within the unified interface.
- [x] Task: Conductor - User Manual Verification 'Phase 2: Verification' (Protocol in workflow.md)
@@ -0,0 +1,18 @@
# Specification: Structural File Editor
## 1. Overview
The user wants to combine the current AST Inspector and Slices Editor into a single, unified "Structural File Editor". This modal will provide a comprehensive visualization of both auto-detected AST elements and user-defined custom slices, allowing users to precisely tailor the context sent to the AI, especially in combination with "skeleton" or other filtered view modes.
## 2. Functional Requirements
* **Unified Interface:** Merge the UI elements of `render_ast_inspector_modal` and `render_slices_editor_modal` into a new `render_structural_file_editor_modal`.
* **Visualization:** Display a unified graph or list showing the file's structure. This includes AST nodes (classes, functions, etc.) and custom slices seamlessly integrated.
* **Custom Slices:** Allow users to define arbitrary text ranges as "custom slices" that exist independently of the AST graph but are visualized alongside it.
* **Filtering:** The editor must clearly indicate which parts of the file will be included based on the current `view_mode` (e.g., if `view_mode='skeleton'`, only signatures and explicitly selected custom slices/AST nodes are included).
## 3. Non-Functional Requirements
* **Performance:** The unified editor must remain responsive even for large files with complex ASTs.
## 4. Acceptance Criteria
* Clicking a "Structure" or "Edit Slices" button on a file opens the new unified modal.
* The modal clearly displays both AST elements and custom slices.
* Users can add, modify, and delete custom slices within this single interface.