Controller Software for the Brother PP-1 SKiTCH embroidery machine.
Find a file
Jan-Henrik Bruhn c22216792a feature: Update components to use Zustand stores directly
Refactor all child components to consume stores directly instead of
receiving props from App.tsx. This eliminates prop drilling and
simplifies the component tree.

Components updated:
- FileUpload: Now uses useMachineStore, usePatternStore, and useUIStore
  directly instead of receiving 14 props
- ProgressMonitor: Now uses useMachineStore and usePatternStore instead
  of receiving 9 props
- PatternCanvas: Now uses useMachineStore and usePatternStore instead of
  receiving 7 props
- PatternSummaryCard: Now uses useMachineStore and usePatternStore
  instead of receiving 5 props

Changes to App.tsx:
- Removed all component props that are now accessed via stores
- Removed unused callbacks: handlePatternLoaded, handlePatternOffsetChange,
  handleUpload, handleDeletePattern
- Removed unused imports: PesPatternData, canDeletePattern, useCallback
- Simplified component tree with zero-prop component calls

Benefits:
- Eliminated prop drilling across 37 props total
- Components can access exactly what they need from stores
- Cleaner, more maintainable component interfaces
- Better separation of concerns

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-12 21:40:24 +01:00
.claude Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
.github feature: use proper node version for used electron version 2025-12-12 20:58:48 +01:00
build Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
docs Improve responsive design and simplify typography system 2025-12-10 16:56:43 +01:00
electron feature: Display version in Electron window title 2025-12-12 20:50:29 +01:00
public Icons 2025-12-08 00:21:31 +01:00
src feature: Update components to use Zustand stores directly 2025-12-12 21:40:24 +01:00
.gitignore Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
.node-version feature: use proper node version for used electron version 2025-12-12 20:58:48 +01:00
CLAUDE.md feature: Add autolabeler configuration and commit guidelines 2025-12-12 20:31:44 +01:00
eslint.config.mjs feature: Implement Zustand state management 2025-12-12 21:28:52 +01:00
forge.config.js Fix auto-update structure and macOS manifest URL 2025-12-11 13:22:38 +01:00
index.html Icons 2025-12-08 00:21:31 +01:00
LICENSE.md add license 2025-12-07 22:58:02 +01:00
package-lock.json feature: Implement Zustand state management 2025-12-12 21:28:52 +01:00
package.json feature: Implement Zustand state management 2025-12-12 21:28:52 +01:00
tailwind.config.js Implement comprehensive dark mode support and improve pattern visibility 2025-12-06 20:12:46 +01:00
tsconfig.app.json Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
tsconfig.electron.json Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
tsconfig.json initial 2025-11-30 22:18:14 +01:00
tsconfig.node.json Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
vite.config.electron.mts Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00
vite.config.mts Add Electron desktop application support with Electron Forge 2025-12-07 22:39:38 +01:00