53 Commits
Author SHA1 Message Date
adnaan f4930b7cb9 feat: add stress testing scripts for agent performance and rendering
- Introduced `stress-test-agent-full-turn.cjs` for benchmarking agent workflows, measuring CPU and GPU usage during various phases of operation.
- Added `stress-test-diff-syntax.cjs` to evaluate performance of inline diff rendering under varying line counts.
- Created `stress-test-embedding-cpu.ts` to assess CPU utilization during local transformer model embeddings.
- Implemented `stress-test-gpu-rendering.cjs` for testing GPU rendering performance with animations and UI interactions.
- Developed `stress-test-indexing-cpu.ts` to benchmark CPU performance during incremental indexing operations.
- Enhanced file change buffering configurations in `fileChangeBuffer.ts` to improve responsiveness.
- Updated `fileWatcher.ts` to refine ignored patterns for file watching, optimizing performance.
- Modified `EmotionAmbientGlow.tsx` to pause animations during agent streaming to reduce GPU load.
- Improved `InlineDiffPreview.tsx` to conditionally simplify highlighting based on streaming state.
- Enhanced `TerminalManager.ts` to buffer terminal writes and limit rendering frequency, improving performance during high-frequency updates.
2026-09-22 22:44:45 +08:00
adnaan 93730433c8 feat: implement plan presentation hook and enhance plan workbench components
- Add `usePlanPresentation` hook for managing plan presentation logic.
- Refactor `PlanHistoryDrawer` to support portal rendering and improve accessibility.
- Update `PlanWorkbench` to conditionally render based on plan state and integrate `PlanHistoryDrawer` with portal support.
- Enhance `PlanWorkbenchEmpty` and `PlanWorkbenchQuestion` for better user experience and styling.
- Introduce new translations for plan design features in English and Chinese.
- Add tests for plan presentation and task review functionalities.
- Create a browser test setup for plan layout regression testing.
2026-09-10 23:18:20 +08:00
adnaan 129e80fa7d feat: improve execution UI diagnostics and enhance button interaction handling 2026-09-07 20:37:38 +08:00
adnaan 5bb5a717bd feat: enhance workbench layout management and terminal panel functionality
- Added support for customizable terminal panel properties including docked state and visibility.
- Implemented workspace layout persistence, allowing for restoration of user-defined layouts and visibility states.
- Introduced new UI elements for managing terminal actions and visibility.
- Enhanced sidebar component to accept external panel states for improved flexibility.
- Updated localization files to include new workbench-related strings for better user experience.
- Added comprehensive tests for workbench layout persistence and docking behavior.
2026-09-06 15:02:16 +08:00
adnaan 8afc2f1c78 feat: introduce DecorativeAnimationScope for managing decorative animations
- Added DecorativeAnimationScope component to manage the state of decorative animations across the application.
- Updated AppContent to utilize DecorativeAnimationScope for better animation control.
- Refactored EmotionPanelSettings to clarify the purpose of decorative animations.
- Enhanced ChatMessage, ChatPanel, and other components to use chat-layered-surface for consistent styling.
- Improved performance by pausing animations when the modal is open or when decorative animations are disabled.
- Updated CSS to support new animation behaviors and ensure smooth transitions.
- Added tests for the useDecorativeAnimations hook to verify the lifecycle and shared listeners.
2026-09-06 14:09:11 +08:00
adnaan b8c6fffc60 feat: Implement message center for notifications and background task management
- Added a new Notification Center to manage and display messages from the editor and task events.
- Introduced InlineToastAnchor and GlobalToastContainer components for better toast management.
- Enhanced background task handling with MCP connection checks and improved performance diagnostics.
- Implemented notification history management with hooks and integrated system notifications.
- Updated internationalization files for new message center features.
- Added tests for background connection checks to ensure proper functionality.
2026-09-06 01:03:06 +08:00
adnaan 461602b94e feat(execution): Implement execution management features and settings
- Added ExecutionManager component to EditorSettings for managing execution settings.
- Enhanced TerminalManager to handle new terminal exit reasons and messages.
- Introduced execution API methods for overview and management requests.
- Added execution settings to user preferences with normalization and defaults.
- Created execution settings configuration and normalization logic.
- Developed execution presentation functions for status and reason labels.
- Expanded i18n support for execution-related terms in English and Chinese.
- Updated execution types to include new properties for better tracking.
- Implemented tests for execution lifecycle and log store functionalities.
2026-09-06 00:26:57 +08:00
adnaan a2b5b3b088 feat(i18n): update Chinese translations for notifications and settings
feat(terminal): add shell integration support with OSC 633 parsing

feat(execution): introduce execution limits and types for command management

fix(notifications): refine notification settings and API for better handling

test(execution): add comprehensive tests for execution scheduler and service

test(notifications): enhance tests for notification routing and webhook handling

test(terminal): implement tests for terminal manager and shell process management
2026-09-05 23:28:09 +08:00
adnaan 126a43421f feat: enhance notification system with new settings and event handling
- Added new settings tabs for network, data, diagnostics, background, and notifications.
- Introduced a new module for summarizing agent events and publishing notifications.
- Implemented an event bus for editor notifications to decouple event handling from the main application logic.
- Created a Zustand store for managing notification state and snapshots.
- Developed a notification bridge to handle incoming notifications and display them in the UI.
- Added support for webhooks in the notification settings, allowing users to configure external notification endpoints.
- Implemented comprehensive tests for the notification system, ensuring reliability and correctness.
- Updated localization files to include new notification-related strings in English and Chinese.
2026-09-05 21:45:12 +08:00
adnaan f2c0922235 feat(diagnostics): enhance smoke test interaction with button click handling 2026-09-05 20:20:51 +08:00
adnaan 1f1bd7262e refactor: migrate asset and session storage to utility process architecture
- Replaced Worker threads with UtilityProcessClient for AssetStorageWorkerClient and SessionStorageWorkerClient.
- Implemented utility server for handling requests in asset and session storage workers.
- Updated asset storage worker and session storage worker to use new request handling mechanism.
- Introduced ContentProcessClient for document reading operations with utility process support.
- Added tests for utility process lifecycle and asset service interactions.
- Enhanced error handling and request management in utility process client.
2026-09-05 20:07:10 +08:00
adnaan 0f2c6dcb21 feat: implement background task management system
- Added IPC handlers for background task updates and connection checks.
- Created BackgroundTaskService to manage task states and connections.
- Implemented connection checking logic for model endpoints.
- Developed activity projection logic to track background task states.
- Introduced persistent settings for background task preferences.
- Added UI components for managing background task settings.
- Implemented tests for background task functionality and IPC interactions.
2026-09-05 19:21:57 +08:00
adnaan d882df8606 feat(preview): enhance local preview capabilities with device configuration and session management
- Added `previewPrepareSession` and `previewConfigureDevice` methods to the Electron API for managing preview sessions and device configurations.
- Implemented `PreviewPartitionService` to handle project-specific partitions, ensuring isolation between different projects and sessions.
- Enhanced `PreviewBrowserService` to support device emulation, allowing for dynamic configuration of device metrics based on user selection.
- Introduced `PreviewDeviceToolbar` component for user interface to select device type and orientation in the preview tab.
- Updated `usePreviewEnvironment` hook to manage device settings and session preparation, improving the user experience in the preview feature.
- Added localization strings for new preview features in both English and Chinese.
- Implemented unit tests for IPC handlers, preview session management, and partition service to ensure reliability and correctness of the new features.
2026-09-05 18:20:45 +08:00
adnaan b3038eef26 feat(diagnostics): implement application diagnostics capture and process monitoring
- Add IPC handlers for diagnostics capture, allowing memory snapshots and performance tracing.
- Introduce ApplicationDiagnostics and ProcessDiagnostics services for managing diagnostics data.
- Implement UI components for diagnostics settings, enabling users to initiate diagnostics captures.
- Enhance memory and process monitoring with detailed reporting and history tracking.
- Add localization support for diagnostics-related messages in English and Chinese.
- Create tests for diagnostics IPC handling and service functionality to ensure reliability.
2026-09-05 17:51:20 +08:00
adnaan 0b774399fa feat: add browser automation tools for enhanced web interaction
- Introduced `browser_open`, `browser_inspect`, and `browser_action` tools for managing browser sessions and interactions.
- Implemented schemas for input validation using Zod in `browserAutomation.ts`.
- Enhanced `executors.ts` to integrate new browser tool executors.
- Created `browser.ts` to handle browser-specific actions and responses.
- Updated `BrowserPreviewTab.tsx` to support new browser URL validation.
- Added configuration for browser tools in `browserTools.ts`.
- Implemented tests for browser tool functionality and integration.
- Updated localization files for new tool descriptions and error messages.
- Ensured that browser tools respect execution context and prevent unauthorized actions in sub-agent mode.
2026-09-04 19:28:20 +08:00
adnaan 7baf572481 feat: upgrade Electron to 43.6.0, replace extract-zip with @electron-internal/extract-zip, and remove obsolete patches 2026-09-04 18:21:22 +08:00
adnaan 955ffa5319 feat: add markup text extraction service and tests
- Implemented `htmlToText` and `stripXmlTags` functions for extracting plain text from HTML and XML.
- Added unit tests for markup text extraction to ensure proper functionality and handling of edge cases.

refactor: change McpAuthStore to use IIFE pattern

- Refactored `McpAuthStore` from a namespace to an IIFE for better encapsulation and clarity.
- Updated all function exports to be private within the IIFE.

fix: improve type handling in McpClient and McpOAuthCallback

- Adjusted type casting for accessing private properties in `McpClient`.
- Refactored `McpOAuthCallback` to use IIFE pattern for better structure.

fix: enhance error handling in EmotionAdapter and TerminalManager

- Added comments to catch blocks to clarify error handling intentions.
- Improved error handling in terminal-related classes to ensure graceful degradation.

style: clean up variable declarations and improve readability

- Changed `let` to `const` where applicable for better immutability.
- Removed unnecessary semicolons and improved formatting for consistency.

test: add tests for security patches and post-install scripts

- Created tests for dependency security patches to ensure proper handling of symlinks.
- Added tests for Visual Studio environment activation to validate shell command execution.

chore: update various components for better performance and maintainability

- Refactored components and services to improve code quality and maintainability.
- Updated comments and documentation for clarity and better understanding.
2026-09-04 17:32:30 +08:00
adnaan d5214260eb Add comprehensive tests for asset services and configurations
- Introduced tests for asset configuration assistant, ensuring proper handling of JSON responses and redaction of sensitive information.
- Added tests for asset error handling, focusing on extracting actionable error messages while redacting sensitive data.
- Implemented tests for local media streaming, validating byte-range requests and error handling for invalid ranges.
- Created extensive tests for asset service, covering capability contracts, job submissions, and error handling in various scenarios.
- Developed tests for asset SQLite worker to ensure persistence across worker restarts and proper handling of database operations.
- Added tests for configuration asset repository, verifying migration of settings and protection of sensitive credentials.
- Updated Vite configuration to include asset storage worker for proper bundling and resolution of dependencies.
2026-09-04 16:49:20 +08:00
adnaan 231441865e refactor: improve BM25Index tests by removing unnecessary build calls
test: enhance indexServiceScheduling tests with structural watcher updates

test: extend structuralIndexStore tests for batch processing and metadata storage

test: add sessionSqliteStore tests for clean shutdowns and blob management
2026-08-26 14:32:00 +08:00
adnaan 3da0686df5 chore(release): release v1.7.63
Release / get-version (push) Canceled after 0s
Release / build-windows (arm64, windows-11-arm) (push) Canceled after 0s
Release / build-windows (x64, windows-latest) (push) Canceled after 0s
Release / build-macos (arm64, macos-latest) (push) Canceled after 0s
Release / build-macos (x64, macos-15-intel) (push) Canceled after 0s
Release / build-linux (arm64, ubuntu-24.04-arm) (push) Canceled after 0s
Release / build-linux (x64, ubuntu-latest) (push) Canceled after 0s
Release / release (push) Canceled after 0s
Release / sync-to-gitee (push) Canceled after 0s
2026-08-26 00:02:02 +08:00
adnaan 156280b81a feat: add multi-window diagnostics scripts and enhance worker service management 2026-08-25 11:59:41 +08:00
kerwin2046 fdaff0ada4 chore: update Node.js and pnpm version requirements, enforce pnpm usage, and enhance documentation
- Added .node-version and .nvmrc files to specify Node.js version 22.x.
- Updated .npmrc to enforce strict engine and package manager versions.
- Introduced mise.toml for consistent versioning across tools.
- Revised CONTRIBUTING.md, README.md, and other documentation to reflect new Node.js and pnpm requirements.
- Implemented ensure-pnpm.js script to ensure pnpm is used for installations.
- Updated CI workflows to reference .nvmrc for Node.js versioning.
2026-08-21 14:40:04 +08:00
adnaan 35919ee490 refactor: optimize metadata signature handling to improve performance and reduce unnecessary serialization 2026-08-20 22:30:18 +08:00
adnaan c5eadaf835 feat: add support for bundled Node-API prebuilds in node-pty during native module rebuild 2026-08-20 11:28:31 +08:00
adnaan 5e12bce4b3 feat: enhance AI attribution and session file management
- Introduced caching for commit reports in AiAttributionService to optimize read operations.
- Improved session file handling in SessionFileStore with concurrent read and write capabilities.
- Added utility functions for managing read concurrency and pending operations.
- Updated model routing to support multimodal configurations and fallback mechanisms.
- Enhanced image reading services with dedicated tests for visual analysis and routing.
- Implemented sanitization for tool outputs to ensure clean and safe content delivery.
- Added comprehensive tests for new features and existing functionalities across various services.
2026-08-16 23:50:41 +08:00
adnaan f86a7c0fd8 feat: add plan board path and related functionality
- Introduced PLAN_BOARD_PATH constant and isPlanBoardPath function in planBoard.ts.
- Implemented tests for task tool execution planning, ensuring proper handling of parallel execution and batching of independent sub-agents.
- Added tests for planWorkflowGuard to validate state transitions and reminders based on user interactions.
- Enhanced PromptBuilder tests to ensure correct template resolution for different modes.
- Created tests for fileSlice to verify behavior of pinned plan boards during open and close operations.
- Updated vite.config.ts to include 'web-tree-sitter' as an external dependency.
2026-08-14 23:48:21 +08:00
adnaan 38700db690 feat: add pnpm workspace configuration and postinstall script for Electron native module rebuilding 2026-07-20 21:26:18 +08:00
kerwin cc638695e0 chore: update postinstall script for improved WASM asset handling
- Replaced the existing postinstall command in package.json with a new script located in scripts/postinstall.js.
- Added functionality to handle WASM assets and native module rebuilds for Electron in the new postinstall script.
2026-07-20 17:34:02 +08:00
adnaan 84a9745bec perf: use native npm prune and only reinstall builder dependencies to completely bypass node_modules scanning OOM 2026-07-10 23:14:10 +08:00
adnaan 5376e317b8 perf: change prune-dev-deps to blacklist strategy to preserve packager utility dependencies like debug 2026-07-10 23:05:01 +08:00
adnaan d780a2c200 perf: configure prune false in electron-builder and use custom prune-dev-deps script to completely bypass scanning OOM 2026-07-10 23:01:37 +08:00
adnaan 4f6fee94e6 chore: remove legacy build and migration scripts
- Remove convert-uiux-data.js CSV conversion utility
- Remove generate-platform-icons.js icon generation script
- Remove test-api-parser.js and test-deps.js test utilities
- Remove scripts/refactor directory with all migration helpers
* fix-all-imports.js
* fix-main-imports.js
* fix-relative-imports.js
* fix-types-alias.js
* migrate-console-to-logger.js
* migrate-imports.js
* migrate-main-only.js
* organize-components.js
* run-all.js
* split-sidebar.js
* split-sidebar-full.js
* update-component-imports.js
* README.md documentation
- Clean up obsolete tooling no longer needed for project maintenance
2026-05-22 21:35:01 +08:00
adnaan 7190686635 chore: update GitHub username from adnaan-worker to ad-naan
- Update repository URLs across all documentation and configuration files
- Migrate GitHub profile references in CHANGELOG, README, and CONTRIBUTING
- Update GitHub Actions workflow release URL configuration
- Correct GitHub profile links in LICENSE and NOTICE files
- Update contributor profile URL in project documentation
- Ensure consistent branding across all project references
2026-05-08 20:46:44 +08:00
adnaan afa7c36b52 feat: optimize About dialog, implement branding assets, and consolidate project icons 2026-04-25 23:14:49 +08:00
adnaan ca89f50b66 chore: consolidate brand assets into public/brand directory
- Reorganize brand assets into centralized public/brand/ structure with icons/, logos/, ip/, and welcome/ subdirectories
- Move app icons (app.ico, app.icns, app.png) and light variants to public/brand/icons/
- Move in-app logos to public/brand/logos/ and IP avatar to public/brand/ip/
- Move loader logo to public/brand/welcome/
- Update favicon and loader image references in index.html to new asset paths
- Update electron-builder configuration in package.json to reference new icon locations
- Remove legacy icon generation script (scripts/generate-icons.js) and old resource directories
- Add ASSET_REPLACEMENT.md documentation with directory map and replacement checklist
- Update README.md and README_EN.md build instructions to reflect new asset organization
- Simplifies brand asset management by consolidating scattered assets into a single, well-organized directory structure
2026-04-25 15:10:51 +08:00
adnaan 58011eccfb feat: Optimize the core components of the proxy chat interface, message rendering logic, and related icon resources. 2026-02-26 22:32:04 +08:00
adnaan fb83f411b8 feat(uiux): expand UI/UX database with comprehensive design resources
- Add icons.json with 1100+ icon definitions from Lucide library including navigation, action, and status categories
- Add react-performance.json with React optimization patterns and best practices
- Add UI reasoning framework (ui-reasoning.json) for design decision documentation
- Add web interface guidelines (web-interface.json) for consistent web UI patterns
- Add technology stack configurations for Jetpack Compose, Nuxt UI, NuxtJS, and shadcn
- Update prompts.json with enhanced prompt templates for UI/UX agent
- Refactor UiuxDatabase.ts to support new data structure and improved type safety
- Update types.ts with comprehensive type definitions for new UI/UX resources
- Enhance convert-uiux-data.js script to handle new data formats and validation
- Update unified LLM provider to support UI/UX specific model configurations
- Improve ChatMessage component rendering for UI/UX agent responses
- Update tools configuration to expose new UI/UX capabilities
2026-01-16 20:07:53 +08:00
adnaan 5834718793 feat(settings): add API import wizard and provider configuration parser
- Add ApiImportWizard component for guided provider setup workflow
- Create test-api-parser script with interactive CLI for API configuration
- Update CustomProviderEditor with improved provider management
- Support multiple authentication methods (Bearer, API Key, custom headers)
- Include streaming response parsing and tool call validation
- Add comprehensive API testing suite (streaming, tools, multi-turn, JSON output)
- Streamline provider onboarding with field-by-field configuration guidance
2026-01-11 20:49:17 +08:00
adnaan ed8afbdc04 feat: add auto-update system with UI indicator 2026-01-10 16:30:39 +08:00
adnaan da88665df8 feat(tree-sitter): add extended language parser support with wasm binaries
- Add tree-sitter WASM binaries for 11 additional languages (Bash, CSS, Elixir, HTML, Kotlin, Lua, Scala, Swift, TOML, Vue, YAML)
- Expand language parser coverage to support web, configuration, and functional programming languages
- Update download-wasm.js script with organized language categories and comments for unavailable parsers
- Add adm-zip dependency for WASM binary extraction and management
- Update package.json and package-lock.json to version 1.3.7
- Refactor LSP IPC handlers to use centralized installer utility
- Improve smartReplace utility with enhanced pattern matching capabilities
- Extend language definitions to support newly added parsers
2026-01-06 21:29:56 +08:00
adnaan 87b2583ccf chore: replace github token with placeholder in sync script
- Replace hardcoded GitHub token with placeholder value "999"
- Prevent accidental exposure of sensitive credentials in version control
- Improve security by removing personal access token from repository
2026-01-02 00:20:22 +08:00
adnaan ff0bf7a4d7 refactor: optimize indexing, security, and agent architecture
- Add progress throttling to indexService to reduce IPC message frequency
- Implement safe file path sanitization in vectorStore to prevent SQL injection
- Add batch delete operation for improved performance when removing multiple files
- Enhance GitHub release sync script with token authentication support
- Consolidate renderer hooks into centralized index.ts for better organization
- Remove deprecated chatSlice in favor of agent-based state management
- Improve LSP manager crash recovery with enhanced restart logic
- Optimize TerminalManager and TerminalPanel for better performance
- Add PerformanceMonitor utility enhancements for better metrics tracking
- Refactor agent services to improve context building and tool execution
- Update ChatContextStats and CommandPalette components for consistency
- Migrate from chat-based to agent-based architecture for improved scalability
2026-01-02 00:19:34 +08:00
adnaan e2e43b17f8 feat(uiux): add UI/UX design system database and tool integration
- Add comprehensive UI/UX design data resources including charts, colors, typography, styles, and component stacks (Flutter, React, Vue, Svelte, Next.js, React Native, SwiftUI, HTML/Tailwind)
- Implement BM25 search engine for efficient UI/UX design pattern retrieval and querying
- Create UiuxDatabase class to manage and index design system data with full-text search capabilities
- Add uiux tool provider and integrate into agent tool registry for design-related queries
- Implement IPC resources endpoint to expose UI/UX data to renderer process
- Add conversion script to process and transform UI/UX data into optimized JSON format
- Update electron preload and IPC configuration to support new resources module
- Configure resource bundling in package.json to include uiux directory in distribution
- Add tool group configuration for organizing UI/UX tools alongside other agent capabilities
- Update agent settings UI to reflect new tool availability
- Enables AI agent to provide intelligent design recommendations and UI/UX guidance based on comprehensive design system knowledge
2026-01-01 23:11:26 +08:00
adnaan 062f8137c3 fix:1. Toast System Replacement
Replaced old Toast.tsx with new InlineToast.tsx - a compact, animated toast that appears above the status bar
Updated API to support both toast.success(message, duration) and toast.success(title, detail) patterns for backward compatibility
Removed old Toast export from ui/index.ts
2. Monaco Editor Worker Error

Added setEagerModelSync(false) to monacoWorker.ts to reduce race conditions where TypeScript worker tries to access disposed in-memory models
3. Release Script Fix

Changed git push --tags to git push origin v${newVersion} to avoid conflicts with existing remote tags
4. File Watcher Dependency

Removed chokidar from dependencies - code already uses @parcel/watcher which has better performance (native C++ bindings vs Node.js polling)
5. Production Build MIME Type Error

Removed <link rel="modulepreload" href="/src/renderer/main.tsx" /> from index.html - Vite was incorrectly converting it to a base64 data URL with application/octet-stream MIME type, which browsers reject for ES modules
2025-12-31 00:33:49 +08:00
adnaan 730ac8b7fb fix: convert full paths to relative paths in tool results 2025-12-29 22:20:12 +08:00
adnaan b87fb1095d ci: add GitHub Actions release workflow 2025-12-29 21:07:23 +08:00
adnaan 1cd7276083 chore: clean up unused code and update project analysis documentation
- Delete unused type unification scripts (unify-types.js, update-type-imports.js)
- Remove agent core compatibility layer (src/renderer/agent/core/index.ts)
- Remove unused services (codeApplyService.ts, contextService.ts)
- Delete unused prompt configuration file (src/shared/config/promptConfig.ts)
- Remove duplicate CustomProviderConfig from renderer types
- Update PROJECT_ANALYSIS.md to mark type unification as completed
- Document remaining unused code for future reference
- Consolidate type definitions and improve codebase maintainability
2025-12-27 00:27:45 +08:00
adnaan add6a53845 refactor(types): unify type definitions and consolidate LLM configuration
- Create centralized LLM type definitions in src/shared/types/llm.ts
- Move all shared types (ToolCall, LLMConfig, ToolDefinition) to src/shared/types/
- Consolidate Provider configuration into unified structure
- Update all LLM provider implementations to use unified types
- Remove duplicate type definitions from renderer and main process
- Delete src/renderer/agent/tools/types.ts in favor of shared types
- Add utility scripts for type unification and import updates
- Add comprehensive PROJECT_ANALYSIS.md documenting architecture and refactoring priorities
- Update type imports across all modules to reference single source of truth
- Improve type consistency and maintainability across codebase
2025-12-27 00:12:19 +08:00
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