3 Commits
Author SHA1 Message Date
adnaan 0c97589f17 refactor(components): reorganize component structure and fix import paths
- Add refactoring scripts to automate import path fixes and component organization
- Reorganize components into logical subdirectories (common, dialogs, editor, layout, panels, tree)
- Move 30+ components to new modular structure with proper categorization
- Update all import paths across codebase to reflect new component locations
- Fix relative imports in moved components to maintain correct module resolution
- Update documentation with refactoring progress and unified type definitions count
- Improve code organization for better maintainability and scalability
2025-12-25 22:02:45 +08:00
adnaan e06e07d5e7 refactor(sidebar): split monolithic Sidebar component into modular structure
- Extract Sidebar.tsx (1938 lines) into 10 focused components
- Create sidebar/panels/ directory with ExplorerView, SearchView, GitView, ProblemsView, OutlineView, and HistoryView
- Create sidebar/components/ directory with FileTreeItem and InlineCreateInput subcomponents
- Add sidebar/utils.ts for shared utility functions
- Create sidebar/index.ts for clean exports
- Implement new minimal Sidebar.tsx (30 lines) as composition root
- Add refactor scripts (split-sidebar.js, split-sidebar-full.js) for future component extraction
- Update App.tsx imports to use new sidebar module structure
- Update Logger.ts with improved logging capabilities
- Update REFACTORING_PLAN.md to mark Phase 4 complete and plan Phase 5
- Improves code maintainability, testability, and reduces cognitive complexity per file
2025-12-25 20:13:28 +08:00
adnaan 59ba40a130 feat: refactor project architecture with modular structure and unified logging
- Add comprehensive refactoring plan documentation (REFACTORING_PLAN.md)
- Create automated refactoring scripts for imports, types, and logger migration
- Reorganize renderer components into functional groups (layout, sidebar, settings, editor)
- Split large monolithic files (Sidebar.tsx, SettingsModal.tsx, AgentService.ts) into smaller modules
- Migrate all console.log/warn/error calls to centralized Logger utility across 60+ files
- Standardize import paths from relative paths to @/ alias throughout codebase
- Create shared Logger utility in src/shared/utils for cross-process logging
- Update TypeScript and Vite configurations to support new module structure
- Restructure services directory with functional categorization (lsp, completion, storage, file)
- Reorganize agent features into core, tools, context, and store subdirectories
- Improve code maintainability and reduce circular dependencies through better separation of concerns
2025-12-25 19:58:05 +08:00