mirror of
https://github.com/DRYTRIX/TimeTracker.git
synced 2026-05-20 05:10:26 -05:00
ac062182f2
- Add comprehensive logging with [INVOICE] prefixes for better traceability - Fix decorative image detection to handle modified names (e.g., 'decorative-image element-overlap') - Implement position-based matching for imageUrl restoration from saved JSON - Improve robustness when searching for decorative-image groups in Konva layer - Add fallback mechanisms for finding imageUrl when position matching fails - Enhance error messages and warnings with detailed context - Ensure primary name 'decorative-image' is preserved before serialization - Add verification logging to track imageUrl assignment and retrieval These changes address issues where decorative images could lose their imageUrl when saved/loaded, especially when elements have additional names or classes applied (like 'element-overlap'). The position-based matching ensures correct imageUrl restoration even when multiple decorative images exist.