Skip to content

Commit 8fb5df9

Browse files
committed
fix(cockpit): poll after activate, nullable position, clean compose
- Call healthStore.poll() after config activation so OperatorPage's activeConfig updates immediately instead of waiting for next tick - Use z.nullable() instead of z.nullish() for camera position field (API always sends the key, value is null not absent) - Remove redundant build override for edge_model_serving in docker-compose.yml (context: . now resolves correctly after flatten)
1 parent 353d34f commit 8fb5df9

3 files changed

Lines changed: 2 additions & 7 deletions

File tree

docker-compose.yml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,6 @@ services:
33
extends:
44
file: edge/tflite_serving/edge_model_serving.yml
55
service: edge_model_serving
6-
build:
7-
context: edge/tflite_serving
8-
dockerfile: Dockerfile
9-
args:
10-
BUILDOS: ${BUILDOS:-linux}
116

127
edge_orchestrator:
138
extends:

edge/cockpit/src/entities/station-config/dtos/DiscoveryDto.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { z } from 'zod'
22

33
const CameraInfoSchema = z.object({
44
backend: z.string().optional(),
5-
position: z.string().nullish(),
5+
position: z.string().nullable(),
66
})
77

88
export const CamerasAvailableSchema = z.object({

edge/cockpit/src/features/station-config/composables/useConfigEditor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ export function useConfigEditor({
196196
activating.value = name
197197
try {
198198
await configRepository.activateConfig(name)
199-
healthStore.setActiveConfigName(name)
199+
await healthStore.poll()
200200
notify(`Config "${name}" activated`)
201201
} catch (e: any) {
202202
const detail = e?.response?.data?.detail

0 commit comments

Comments
 (0)