fix(ui): align telemetry and laboratory navigation

This commit is contained in:
DCCONSTRUCTIONS
2026-07-28 03:18:27 +03:00
parent 6db5ac05ef
commit e35f81ac34
13 changed files with 195 additions and 55 deletions
@@ -202,6 +202,23 @@ test("data recordings keep the compact session dropdown and laboratory results s
assert.match(laboratorySource, /ЛАБОРАТОРНАЯ РАБОТА/);
assert.match(laboratorySource, /e28-local-surface/);
assert.match(laboratorySource, /e29-camera-geometry/);
assert.match(laboratorySource, /laboratoryWorkOrdinal\(right\.label\)/);
assert.match(laboratorySource, /initialWorkSelectedRef/);
});
test("recording preparation statuses share the viewer's left alignment", async () => {
const spatialStyles = await readFile(
new URL("../src/styles/spatial.css", import.meta.url),
"utf8",
);
const statusStack = spatialStyles.slice(
spatialStyles.indexOf(".scene-operation-status-stack"),
spatialStyles.indexOf(".scene-operation-status {"),
);
assert.match(statusStack, /left:\s*0\.85rem/);
assert.match(statusStack, /justify-items:\s*start/);
assert.doesNotMatch(statusStack, /right:/);
});
test("source and laboratory catalogs are requested as disjoint backend projections", async () => {
@@ -18,6 +18,9 @@ test("Worker 006 telemetry remains a bounded system feature slice", async () =>
pipelineStages,
networkWorkspace,
telemetryPolling,
telemetryContext,
panelActions,
contourSettingsHook,
contourSettings,
contourContract,
pollIntervalContract,
@@ -31,6 +34,9 @@ test("Worker 006 telemetry remains a bounded system feature slice", async () =>
read("components/system/WorkerPipelineStages.tsx"),
read("workspaces/system/NetworkWorkspace.tsx"),
read("core/system/useWorkerTelemetry.ts"),
read("core/system/ComputeContourContext.tsx"),
read("components/useApplicationPanelActions.ts"),
read("components/system/useComputeContourSettings.tsx"),
read("components/system/ComputeContourSettingsWindow.tsx"),
read("core/system/computeContours.ts"),
read("core/system/telemetryPollInterval.ts"),
@@ -49,7 +55,9 @@ test("Worker 006 telemetry remains a bounded system feature slice", async () =>
assert.doesNotMatch(core, /@nodedc\/ui-react/);
assert.match(computeWorkspace, /useWorkerTelemetry/);
assert.match(computeWorkspace, /telemetry_poll_interval_seconds/);
assert.match(computeWorkspace, />\s*Обновить\s*</);
assert.doesNotMatch(computeWorkspace, />\s*Обновить\s*</);
assert.match(computeWorkspace, /resource=\{formatCpuCapacity/);
assert.match(computeWorkspace, /resource=\{formatResourcePair/);
assert.doesNotMatch(computeWorkspace, /loading\s*\?\s*"Читаем"/);
assert.match(computeWorkspace, /WorkerPipelineStages/);
assert.match(pipelineStages, /измеренного времени/);
@@ -69,9 +77,15 @@ test("Worker 006 telemetry remains a bounded system feature slice", async () =>
);
assert.match(networkWorkspace, /127\.0\.0\.1:8000/);
assert.match(networkWorkspace, /telemetry_poll_interval_seconds/);
assert.match(networkWorkspace, />\s*Обновить\s*</);
assert.doesNotMatch(networkWorkspace, />\s*Обновить\s*</);
assert.doesNotMatch(networkWorkspace, /loading\s*\?\s*"Читаем"/);
assert.doesNotMatch(networkWorkspace, /8765/);
assert.match(telemetryContext, /telemetryRefreshGeneration/);
assert.match(telemetryContext, /refreshTelemetry/);
assert.match(telemetryPolling, /externalRefreshGeneration/);
assert.match(panelActions, /actions\.push\(\.\.\.systemUtilityActions\)/);
assert.match(contourSettingsHook, /icon: "refresh"/);
assert.match(contourSettingsHook, /icon: "settings"/);
assert.match(contourSettings, /FieldFrame label="Операционная система"/);
assert.match(contourSettings, /label="Интервал MQTT"/);
assert.match(contourSettings, /value=\{telemetryPollIntervalDraft\}/);