-
-
Notifications
You must be signed in to change notification settings - Fork 301
Open
Labels
Description
This epic tracks incremental refactoring to reduce index.js complexity and improve code organization.
π Detailed Plan: docs-site/docs/development/research/incremental-refactoring-plan.md
Goals
- Reduce
index.jsfrom 755 β 381 lines (49% reduction) - Extract IPC handlers from centralized file (74% reduction)
- Improve testability and add automated tests
- Each change is small, independent, and production-ready
Approach
Small, reversible extractions that deliver value immediately. No big-bang rewrite. Each step can be merged and deployed independently.
Phases
-
Phase 1: Extract Pure Functions ([Feat]: [Refactoring Phase 1] Extract Pure Functions from index.jsΒ #1960)
- Command line logic β Complete (96 lines removed)
- Notification system
- Screen sharing handlers
- Partitions & idle state
-
Phase 2: Testability & Quality ([Feat]: [Refactoring Phase 2] Testability & Quality ImprovementsΒ #1961)
- Singleton refactoring
- IPC registration pattern fixes
- Automated testing (20+ tests)
- Documentation automation
Progress
Current: 96 / 374 lines extracted (26% of Phase 1)
See plan document for detailed progress tracking.
Metadata
Metadata
Assignees
Labels
Projects
Status
In Progress