respira/src
Jan-Henrik Bruhn 2b5e925e72 feature: Refactor useMachineStore into focused stores
Split the 570-line useMachineStore into three focused stores for better
separation of concerns and improved re-render optimization:

**New Stores:**
- useMachineUploadStore (128 lines): Pattern upload state and logic
- useMachineCacheStore (194 lines): Pattern caching and resume functionality
- useMachineStore (reduced to ~245 lines): Connection, status, and polling

**Benefits:**
- Components only subscribe to relevant state (reduces unnecessary re-renders)
- Clear separation of concerns (upload, cache, connection)
- Easier to test and maintain individual stores
- 30% reduction in main store size

**Technical Details:**
- Uses dynamic imports to avoid circular dependencies
- Maintains all existing functionality
- Updated FileUpload, PatternCanvas, and App components
- All TypeScript compilation errors resolved
- Build tested successfully

Implements conservative 2-store extraction approach from issue #31.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-26 23:21:25 +01:00
..
components feature: Refactor useMachineStore into focused stores 2025-12-26 23:21:25 +01:00
data feature: Add Brother thread color mapping to PES importer 2025-12-21 20:37:32 +01:00
formats feature: Add RGB color matching for Brother thread identification 2025-12-21 20:52:32 +01:00
hooks Merge pull request #47 from jhbruhn/fix/30-eslint-hook-rules-useCanvasViewport 2025-12-26 21:55:07 +01:00
lib style: Apply linter auto-fixes 2025-12-22 12:03:49 +01:00
platform fix: formatting 2025-12-26 22:50:02 +01:00
services fix: formatting 2025-12-26 22:50:02 +01:00
stores feature: Refactor useMachineStore into focused stores 2025-12-26 23:21:25 +01:00
types fix: run linter 2025-12-18 11:39:22 +01:00
utils Merge pull request #28 from jhbruhn/feature/pattern-rotation 2025-12-25 21:55:07 +01:00
App.css fix: Restore correct destructive variant colors 2025-12-22 11:59:02 +01:00
App.tsx feature: Refactor useMachineStore into focused stores 2025-12-26 23:21:25 +01:00
index.css feature: Implement unified semantic color system with Tailwind v4 2025-12-17 21:43:36 +01:00
main.tsx fix: run linter 2025-12-18 11:39:22 +01:00
vite-env.d.ts feature: Add application version to page title 2025-12-13 23:48:05 +01:00