section tweaks

This commit is contained in:
Josh Hawkins 2026-02-07 08:06:22 -06:00
parent 2c2ae970cd
commit 6836a9a291
2 changed files with 25 additions and 15 deletions

View File

@ -3,18 +3,14 @@ import type { SectionConfigOverrides } from "./types";
const detect: SectionConfigOverrides = { const detect: SectionConfigOverrides = {
base: { base: {
sectionDocs: "/configuration/camera_specific", sectionDocs: "/configuration/camera_specific",
restartRequired: [], restartRequired: [
// use the grid for field order "width",
// fieldOrder: [ "height",
// "enabled", "fps",
// "width", "min_initialized",
// "height", "max_disappeared",
// "fps", "stationary",
// "min_initialized", ],
// "max_disappeared",
// "annotation_offset",
// "stationary",
// ],
fieldGroups: { fieldGroups: {
resolution: ["width", "height", "fps"], resolution: ["width", "height", "fps"],
tracking: ["min_initialized", "max_disappeared"], tracking: ["min_initialized", "max_disappeared"],
@ -41,8 +37,8 @@ const detect: SectionConfigOverrides = {
}, },
{ {
"ui:row": [ "ui:row": [
{ min_initialized: { "ui:col": "col-span-12 md:col-span-6" } }, { min_initialized: { "ui:col": "col-span-12 md:col-span-3" } },
{ max_disappeared: { "ui:col": "col-span-12 md:col-span-6" } }, { max_disappeared: { "ui:col": "col-span-12 md:col-span-3" } },
], ],
}, },
{ {
@ -51,9 +47,20 @@ const detect: SectionConfigOverrides = {
], ],
}, },
{ {
"ui:row": [{ stationary: { "ui:col": "col-span-12 md:col-span-6" } }], "ui:row": [{ stationary: { "ui:col": "col-span-12" } }],
}, },
], ],
stationary: {
"ui:field": "LayoutGridField",
"ui:layoutGrid": [
{
"ui:row": [
{ interval: { "ui:col": "col-span-12 md:col-span-3" } },
{ threshold: { "ui:col": "col-span-12 md:col-span-3" } },
],
},
],
},
}, },
}, },
}; };

View File

@ -9,6 +9,9 @@ const notifications: SectionConfigOverrides = {
hiddenFields: ["enabled_in_config"], hiddenFields: ["enabled_in_config"],
advancedFields: [], advancedFields: [],
}, },
camera: {
hiddenFields: ["enabled_in_config", "email"],
},
}; };
export default notifications; export default notifications;