respira/src
Jan-Henrik Bruhn b7ea024df3 Improve polling indicator with service-level communication state
Previously, isPolling was manually set in individual refresh functions,
which didn't cover all BLE communication and could have race conditions.

Now the communication indicator is driven by the service layer:
- Added isCommunicating state to BrotherPP1Service
- setCommunicating() called at queue processing boundaries
- onCommunicationChange() callback subscription pattern
- Hook subscribes to service communication state automatically

Benefits:
- Indicator shows for ALL BLE commands (status, progress, service count, etc)
- Prevents race conditions from overlapping command queue processing
- More accurate representation of actual BLE communication
- Cleaner code - no manual setIsPolling in each function

The indicator now properly shows whenever the command queue is being
processed, regardless of which specific command triggered it.

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-07 00:02:22 +01:00
..
assets initial 2025-11-30 22:18:14 +01:00
components Fix build and lint errors, refactor embroidery constants 2025-12-06 23:55:10 +01:00
hooks Improve polling indicator with service-level communication state 2025-12-07 00:02:22 +01:00
services Improve polling indicator with service-level communication state 2025-12-07 00:02:22 +01:00
styles Implement comprehensive UI/UX improvements 2025-12-06 13:15:51 +01:00
types Add cumulative stitch statistics from SERVICE_COUNT command 2025-12-06 23:33:10 +01:00
utils Fix build and lint errors, refactor embroidery constants 2025-12-06 23:55:10 +01:00
App.css Enhance UI/UX with loading states, animations, and pattern lock functionality 2025-12-06 19:28:24 +01:00
App.tsx Fix build and lint errors, refactor embroidery constants 2025-12-06 23:55:10 +01:00
index.css Migrate to Tailwind CSS and fix canvas zoom issues 2025-12-05 23:25:55 +01:00
main.tsx initial 2025-11-30 22:18:14 +01:00
web-bluetooth.d.ts initial 2025-11-30 22:18:14 +01:00