fix(telemetry): stop repeating panels stranding their neighbours

Panels were appearing on the right of a row with nothing to their left. A
repeating panel expands into one copy per network at view time and, with
maxPerRow=2, claims the whole row; the non-repeating panel paired beside it was
pushed to the next line but kept its stored x=12, so it rendered on the right
against an empty gap. Thirteen rows here were affected - more than every other
dashboard combined, which is why it showed up on this one first.

Two changes:
  - a repeating panel is given a row to itself when the layout is planned. It
    keeps w=12, so its copies still tile two across inside that row.
  - single-value panels are grouped to the top of each row section, so the
    charts that follow can pair with each other instead of being split up by an
    interleaved repeat. Without this the gaps become wasted half-rows.

Result: no mixed rows, no left-hand gaps, 13 paired rows and only 3 panels
sitting alone, from sections with an odd number of charts.

Verified: 54 panels before and after, no panel lost, every targets block and
description byte-identical, ids 1..N, no overlaps.
This commit is contained in:
Pratik Mankawde
2026-08-07 12:53:47 +01:00
parent 3742db9eee
commit 7541f86763

File diff suppressed because it is too large Load Diff