mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Fix UI delay issue where buttons remained clickable during BLE communication setup. Now provides instant visual feedback when operations begin. Changes: - Add isUploading and isDeleting state tracking in useBrotherMachine hook - Set loading states immediately on button click, before BLE communication - Update FileUpload component to disable upload button and show spinner - Update ProgressMonitor to disable delete button with loading indicator - Add PatternCacheService.deletePattern() method for proper cache cleanup - Pass loading state props through App.tsx to child components The UI now responds immediately with disabled buttons and loading spinners, preventing double-clicks and providing clear feedback during the initial BLE setup period before progress reporting begins. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| assets | ||
| components | ||
| hooks | ||
| services | ||
| styles | ||
| types | ||
| utils | ||
| App.css | ||
| App.tsx | ||
| index.css | ||
| main.tsx | ||
| web-bluetooth.d.ts | ||