Miscellaneous Fixes (#21166)

* Improve model titles

* remove deprecated strftime_fmt

* remove

* remove restart wording

* add copilot instructions

* fix docs

* Move files into try for classification rollover

* Use friendly names for zones in notifications

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Josh Hawkins
2025-12-07 08:57:46 -06:00
committed by GitHub
parent c136e5e8bd
commit 88a8de0b1c
13 changed files with 37 additions and 28 deletions

View File

@@ -13,11 +13,8 @@
"time_style": {
"label": "Override UI timeStyle."
},
"strftime_fmt": {
"label": "Override date and time format using strftime syntax."
},
"unit_system": {
"label": "The unit system to use for measurements."
}
}
}
}

View File

@@ -1,5 +1,5 @@
{
"documentTitle": "Classification Models",
"documentTitle": "Classification Models - Frigate",
"details": {
"scoreInfo": "Score represents the average classification confidence across all detections of this object."
},

View File

@@ -77,7 +77,7 @@
"millisecondsToOffset": "Milliseconds to offset detect annotations by. <em>Default: 0</em>",
"tips": "Lower the value if the video playback is ahead of the boxes and path points, and increase the value if the video playback is behind them. This value can be negative.",
"toast": {
"success": "Annotation offset for {{camera}} has been saved to the config file. Restart Frigate to apply your changes."
"success": "Annotation offset for {{camera}} has been saved to the config file."
}
}
},

View File

@@ -534,7 +534,7 @@
}
},
"toast": {
"success": "Zone ({{zoneName}}) has been saved. Restart Frigate to apply changes."
"success": "Zone ({{zoneName}}) has been saved."
}
},
"motionMasks": {
@@ -558,8 +558,8 @@
},
"toast": {
"success": {
"title": "{{polygonName}} has been saved. Restart Frigate to apply changes.",
"noName": "Motion Mask has been saved. Restart Frigate to apply changes."
"title": "{{polygonName}} has been saved.",
"noName": "Motion Mask has been saved."
}
}
},
@@ -583,8 +583,8 @@
},
"toast": {
"success": {
"title": "{{polygonName}} has been saved. Restart Frigate to apply changes.",
"noName": "Object Mask has been saved. Restart Frigate to apply changes."
"title": "{{polygonName}} has been saved.",
"noName": "Object Mask has been saved."
}
}
}

View File

@@ -6,7 +6,6 @@ export interface UiConfig {
time_format?: "browser" | "12hour" | "24hour";
date_style?: "full" | "long" | "medium" | "short";
time_style?: "full" | "long" | "medium" | "short";
strftime_fmt?: string;
dashboard: boolean;
order: number;
unit_system?: "metric" | "imperial";

View File

@@ -84,6 +84,12 @@ export default function ModelTrainingView({ model }: ModelTrainingViewProps) {
const [page, setPage] = useState<string>("train");
const [pageToggle, setPageToggle] = useOptimisticState(page, setPage, 100);
// title
useEffect(() => {
document.title = `${model.name} - ${t("documentTitle")}`;
}, [model.name, t]);
// model state
const [wasTraining, setWasTraining] = useState(false);