Files
manual_slop/conductor/tracks/context_comp_slices_20260510/plan.md
T

2.2 KiB

Implementation Plan: Context Composition Slice Visualization

Phase 1: Slice Data Model Extension [checkpoint: 4a20489]

Focus: Extend custom_slices to support tags and comments

  • Task 1.1: Extend custom_slices schema to include tag and comment fields [976879d]
  • Task 1.2: Update FileItem.to_dict() and from_dict() for new fields [976879d]
  • Task 1.3: Write tests for custom_slices with annotations [976879d]

Phase 2: Slice Inspector Enhancement [checkpoint: 31ecbe5]

Focus: Visual AST highlighting with file content

  • Task 2.1: Modify _render_ast_inspector_modal() to show file content with highlighted slices [976b241]
  • Task 2.2: Add color coding for Sig vs Def elements in file content view [976b241]
  • Task 2.3: Implement toggle buttons for each AST element in the content view [976b241]
  • Task 2.4: Write tests for slice inspector rendering [976b241]

Phase 3: Slice Editor Visual Enhancement [checkpoint: 4f0f436]

Focus: Visual slice editor with colored overlays

  • Task 3.1: Enhance slice editor to show file content (not just line list) [3614e11]
  • Task 3.2: Add colored overlays for custom slices on the content [3614e11]
  • Task 3.3: Implement click-drag line range selection [3614e11]
  • Task 3.4: Add tag/comment input for custom slices [3614e11]
  • Task 3.5: Write tests for slice editor [3614e11]

Phase 4: View Presets [checkpoint: 8073938]

Focus: Named view configurations

  • Task 4.1: Create FileViewPreset model [cb0fa89]
  • Task 4.2: Add preset selection dropdown to context composition [cb0fa89]
  • Task 4.3: Implement preset save/load to project config [cb0fa89]
  • Task 4.4: Write tests for view presets [cb0fa89]

Phase 5: AST Slice Pre-population

Focus: Show auto-resolved slices before user customizes

  • Task 5.1: On file add to context, compute AST slices automatically
  • Task 5.2: Store pre-computed slices in FileItem for display
  • Task 5.3: User can modify/remove auto-slices
  • Task 5.4: Write tests for auto-slice computation

Phase 6: Integration

Focus: Connect all pieces together

  • Task 6.1: Verify slice data flows correctly through context composition
  • Task 6.2: Test with C++ files from gencpp
  • Task 6.3: Conductor - User Manual Verification