compact converted 0.18 grid layouts in render order

0.18 stored every new grid tile at y 0 and left gaps behind removed cameras, relying on the grid's vertical compaction at render to stack tiles in render order (Birdseye, then camera order). The current grid renders without compaction and conversion only rescaled the coordinates, so upgraded groups with more than three tiles showed tiles on top of each other, often covering Birdseye, and gaps that 0.18 never displayed. Conversion now sorts tiles by render order and compacts them once, so each layout opens as 0.18 showed it.
This commit is contained in:
Josh Hawkins
2026-12-03 09:15:05 -06:00
parent 582ec9b92f
commit 18bbd2f0ae
5 changed files with 199 additions and 21 deletions
+5
View File
@@ -45,6 +45,11 @@ export class LivePage extends BasePage {
);
}
/** Birdseye tile on the draggable grid, the one without a camera card. */
get birdseyeTile(): Locator {
return this.page.locator(".react-grid-item:not(:has([data-camera]))");
}
/** Edit-layout toggle on the draggable grid (desktop, custom groups). */
get editLayoutButton(): Locator {
return this.page.getByTestId("toggle-edit-layout");