refactor(control-station): separate lidar diagnostics from datasets

This commit is contained in:
DCCONSTRUCTIONS
2026-07-25 13:06:49 +03:00
parent f57d64bf52
commit c01712c30d
14 changed files with 939 additions and 341 deletions
+6 -2
View File
@@ -421,6 +421,7 @@ export default function App() {
setActiveRoot(rootId);
if (rootId === "polygon") {
workspace.openView("polygon-run");
workspace.openNavigation();
return;
}
workspace.closeView();
@@ -652,7 +653,7 @@ export default function App() {
className="control-station"
data-observation-fullscreen={observationFullscreenActive ? "true" : undefined}
navigationOpen={
workspace.navigationOpen && activeRoot !== null && activeRoot !== "polygon"
workspace.navigationOpen && activeRoot !== null
}
contentOpen={workspace.contentOpen && activeDefinition !== null}
contentExpanded={workspace.contentExpanded}
@@ -667,7 +668,7 @@ export default function App() {
onOpenDevice={() => openView("local-device")}
/>
}
navigation={currentRoot && activeRoot !== "polygon" ? (
navigation={currentRoot ? (
<AdminNavigationPanel
eyebrow="MISSION CORE"
title={currentRoot.title}
@@ -746,6 +747,8 @@ export default function App() {
</div>
) : activeDefinition.kind === "polygon-run" ? (
<StatusBadge tone="accent">Virtual only</StatusBadge>
) : activeDefinition.kind === "polygon-datasets" ? (
<StatusBadge tone="neutral">Offline evaluation</StatusBadge>
) : (
<StatusBadge tone="warning">Интерфейс готов</StatusBadge>
)
@@ -775,6 +778,7 @@ export default function App() {
onLivePerceptionLayersChange={changeLivePerceptionLayers}
observationLayout={observationLayout}
polygonRunRoute={polygonRunRoute}
deviceLabel={selection?.model.displayName ?? null}
spatialControls={selection?.SpatialControlsView
? {
View: selection.SpatialControlsView,