respira/src
Jan-Henrik Bruhn 4428b8472c Properly preserve pattern filename after deletion for re-upload
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>
2025-12-06 23:42:47 +01:00
..
assets initial 2025-11-30 22:18:14 +01:00
components Properly preserve pattern filename after deletion for re-upload 2025-12-06 23:42:47 +01:00
hooks Fix pattern re-upload after deletion by preserving filename 2025-12-06 23:39:31 +01:00
services Add cumulative stitch statistics from SERVICE_COUNT command 2025-12-06 23:33:10 +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 TRIM command encoding in PES to PEN conversion 2025-12-06 23:23:50 +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 Properly preserve pattern filename after deletion for re-upload 2025-12-06 23:42:47 +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