feat(map): open bounded telemetry card from entities

This commit is contained in:
Codex
2026-07-22 11:47:41 +03:00
parent b8fc4c5ba1
commit dd2febe7cf
8 changed files with 452 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
import type { MapRuntimeFact } from "./useMapDataProductRuntime.js";
export type MapSubjectCardRow = { key: string; label: string; value: string };
export type MapSubjectCardSection = { id: string; label: string; rows: MapSubjectCardRow[] };
export type MapTelemetryReading = { id: string; label: string; value: string; observedAt?: string };
export type MapSubjectCardModel = {
title: string;
sourceId: string;
sections: MapSubjectCardSection[];
readings: MapTelemetryReading[];
};
export function buildMapSubjectCardModel(
fact: MapRuntimeFact,
context?: { title?: string; bindingId?: string; dataProductId?: string },
): MapSubjectCardModel | null;
export function normalizeTelemetryReadings(value: unknown): MapTelemetryReading[];