fix(cctv): serve King County model/manufacturer through /api/cctv/sources

The loader and normalizer carried the hardware model, but the /sources
response projection and the browser catalog both whitelist fields and
dropped it, so no client consumer ever saw it. Project model and
manufacturer (manufacturer disambiguates bare model strings like "3950")
at both boundaries, and add a test that drives the real middleware and
browser catalog end to end.
This commit is contained in:
bassem chagra committed 2026-09-27 12:09:27 +00:00
1 parent 5b00dd0980
commit c3f197823e
6 files changed
+121 -1

No files matched your search

+2
View File
@@ -162,6 +162,8 @@ export function cctvProxy({ sourceRoot = process.cwd() } = {}) {
sourceKind:
source.sourceKind || (source.url ? 'configured' : 'fallback'),
poseSource: source.poseSource,
model: source.model || '',
manufacturer: source.manufacturer || '',
license: source.license,
credit: source.credit || '',
code: source.code || '',