mirror of
https://github.com/jhbruhn/respira.git
synced 2026-01-27 10:23:41 +00:00
Improve the previous fix by actually preserving the original filename from the cache instead of using a generic fallback. This is a cleaner solution that maintains the actual pattern name. Changes: - Add currentFileName state to App.tsx to track pattern filename - When loading cached pattern, preserve resumeFileName in currentFileName - When loading new pattern, pass fileName to handlePatternLoaded callback - Pass currentFileName to FileUpload component as prop - Use currentFileName in displayFileName logic (prioritized first) - Remove generic 'pattern.pes' fallback Now when you delete a cached pattern and re-upload it, the original filename (e.g., "mypattern.pes") is preserved instead of using a generic fallback name. This maintains better traceability. 🤖 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 | ||