andrés gonzález aa5e62a417
🐛 Fix SVG upload frame when the selection is inside a group (#13282)
* 🐛 Fix SVG upload frame when the selection is inside a group

With a shape selected inside a group, an uploaded or pasted SVG goes
into that group, but its frame-id came from the board under the drop
point. When the two boards differ, the save fails with invalid-frame.
Take the frame from the group instead.

AI-assisted-by: claude-opus-5-5

* 🐛 Keep SVG upload frame aligned with its parent

Keep the SVG upload frame and parent from the same source.

When a shape inside a group was selected, the frame for the new SVG
came from the board under the cursor while the parent came from the
group, so saving failed with invalid-frame. The parent and frame now
come from one shared predicate, which also prevents a repeat of the
original drift between two copies of the condition.

Add the board-parent test for the frame branch this change rewrote,
and make the group checker assert that the SVG exists and that its
frame is the expected one. Add mutation evidence for both.

AI-assisted-by: deepseek-v4.1-flash

---------

Co-authored-by: Luis de Dios <luis.dedios@kaleidos.net>
2026-11-24 15:15:46 +01:00
..