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 = {
base: {
sectionDocs: "/configuration/camera_specific",
restartRequired: [],
// use the grid for field order
// fieldOrder: [
// "enabled",
// "width",
// "height",
// "fps",
// "min_initialized",
// "max_disappeared",
// "annotation_offset",
// "stationary",
// ],
restartRequired: [
"width",
"height",
"fps",
"min_initialized",
"max_disappeared",
"stationary",
],
fieldGroups: {
resolution: ["width", "height", "fps"],
tracking: ["min_initialized", "max_disappeared"],
@ -41,8 +37,8 @@ const detect: SectionConfigOverrides = {
},
{
"ui:row": [
{ min_initialized: { "ui:col": "col-span-12 md:col-span-6" } },
{ max_disappeared: { "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-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"],
advancedFields: [],
},
camera: {
hiddenFields: ["enabled_in_config", "email"],
},
};
export default notifications;