@mytec: iter1.5 ready for testing

This commit is contained in:
2026-01-31 01:34:51 +02:00
parent 5bd9302dd8
commit 3c92fdbb90
10 changed files with 564 additions and 109 deletions

View File

@@ -37,13 +37,14 @@ export default function CoverageBoundary({
const boundaryPaths = useMemo(() => {
if (!visible || points.length === 0) return [];
// Group points by siteId
// Group points by siteId (fallback to 'all' when siteId not available from API)
const bySite = new Map<string, CoveragePoint[]>();
for (const p of points) {
let arr = bySite.get(p.siteId);
const key = p.siteId || 'all';
let arr = bySite.get(key);
if (!arr) {
arr = [];
bySite.set(p.siteId, arr);
bySite.set(key, arr);
}
arr.push(p);
}