alonso.torres b7ee5d30ec 🐛 Switch a variant set's layout between flex and grid in place
A variant set board or a variant main that already had a layout kept it
when the user picked the other type (Shift+A / Ctrl+Shift+A or the
context menu). `create-layout` sends a shape with a layout to
`create-layout-from-selection`, which refused any selection holding a
variant container or a variant, before reaching its in-place branch.

The refusal now applies only when the selection would be wrapped in a
new board; a single shape with a layout switches it in place.

Found by the components Qase run (PENPOT-2422).

Test: `create-layout-switches-a-variant-container-layout`,
`create-layout-switches-a-variant-main-layout` (groups-test).

AI-assisted-by: claude-opus-5-5
2026-11-19 09:46:31 +01:00
..