From 0ea9ed32975d3ee1bf336fee9bccd6deb31015ca Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 24 Nov 2026 10:00:52 +0000 Subject: [PATCH] :books: Correct grid cell cleanup guidance Distinguish removing shape assignments from removing cells and clarify the development overlap helper's actual empty-map check. AI-assisted-by: gpt-6.1-terra --- .serena/memories/common/layout.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.serena/memories/common/layout.md b/.serena/memories/common/layout.md index 3c7e79bbb2..51db0178b7 100644 --- a/.serena/memories/common/layout.md +++ b/.serena/memories/common/layout.md @@ -4,5 +4,5 @@ - `assign-cells` skips absolute-positioned children. Only when eligible children still need cells does it ensure at least one row and column, add tracks if needed and assert that the parent grid cells do not overlap. `position-absolute?` also treats hidden shapes as absolute, so hiding a grid child frees its cell. - `reorder-grid-children` stores cell children in reverse visual cell order while preserving the indices of children without cells, including hidden and absolute shapes. Moving cell-less children to an end can break component alignment. - The resulting `:reorder-children` is guarded inside component copies unless `allow-altering-copies`; the builder also skips copy grids. Copy child order belongs to component sync. See `mem:common/components`. -- Deassignment removes cells for shapes that are no longer direct children or become absolute. Auto-positioning can turn auto cells manual when empty, manual or spanning cells break the sequence; eligible single-span auto cells can then be compacted. -- `fix-overlaps` is marked for development in the source and removes an overlapping cell, preferring an empty one. Do not depend on it as normal production repair. +- `check-deassigned-cells` removes shape IDs from cell `:shapes` when they are no longer direct children or become absolute; it keeps the cells. Auto-positioning can turn auto cells manual when empty, manual or spanning cells break the sequence; eligible single-span auto cells can then be compacted. +- `fix-overlaps` is marked for development in the source and removes an overlapping cell. It tests whether the first cell map is empty, not whether its `:shapes` is empty; do not assume it prefers cells without shapes or depend on it as normal production repair.