* fix: Optimize performance to prevent UI freezing during git status loading This minimal fix addresses the issue where project collapse/expand functionality becomes unresponsive when multiple sessions are simultaneously loading git status. Changes include: - Backend: Throttle git status events to 100ms intervals - Backend: Limit concurrent git operations to 3 - Backend: Batch multiple git status updates - Backend: Add cancellation support for git operations - Frontend: Batch store updates with 50ms window - Frontend: Add React.memo to prevent unnecessary re-renders - Frontend: Skip non-essential updates during heavy loading - Frontend: Cancel git status when collapsing projects - Frontend: Implement performance safeguards The optimizations ensure the UI remains responsive even when many sessions are actively fetching git status information. Collapsing a project now cancels any pending git status operations for its sessions. * Fix duplicate right-click context menus - Implement centralized ContextMenuContext for global menu state management - Refactor SessionListItem and DraggableProjectTreeView to use context - Add global click and ESC handlers to close menus - Fix vite.config.js module resolution issue - Ensure only one context menu can be open at a time --------- Co-authored-by: Jordan Bentley <jordan@bentleyconsulting.ai> Co-authored-by: Claude <noreply@anthropic.com>
17 lines
391 B
JavaScript
17 lines
391 B
JavaScript
import { defineConfig } from 'vite';
|
|
import react from '@vitejs/plugin-react';
|
|
export default defineConfig({
|
|
plugins: [react()],
|
|
server: {
|
|
port: 4521,
|
|
strictPort: true
|
|
},
|
|
base: './',
|
|
build: {
|
|
// Ensure assets are copied and paths are relative
|
|
assetsDir: 'assets',
|
|
// Copy public files to dist
|
|
copyPublicDir: true
|
|
}
|
|
});
|