fix: labels stored as label.text now persist across page refresh

convertToExcalidrawElements silently dropped label.text on reload.
Added expandLabelsToNative() that pre-expands server-format labels
into native Excalidraw bound text elements before the scene is set,
ensuring labels survive DB round-trips.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
newblacc
2026-03-30 00:43:50 +02:00
co-authored by Claude Opus 4.6
parent d8ef0379f5
commit 1e535a5e31
2 changed files with 48 additions and 3 deletions
+3
View File
@@ -64,3 +64,6 @@ Format: [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
### Changed
- Default theme set to dark
### Fixed
- Labels stored as label.text (e.g. from MCP updates) now survive page refresh — expandLabelsToNative pre-converts them to bound text before Excalidraw renders