Miscellaneous Fixes (0.17 beta) (#21396)
CI / AMD64 Build (push) Has been cancelled
CI / ARM Build (push) Has been cancelled
CI / Jetson Jetpack 6 (push) Has been cancelled
CI / AMD64 Extra Build (push) Has been cancelled
CI / ARM Extra Build (push) Has been cancelled
CI / Synaptics Build (push) Has been cancelled
CI / Assemble and push default build (push) Has been cancelled

* use fallback timeout for opening media source

covers the case where there is no active connection to the go2rtc stream and the camera takes a long time to start

* Add review thumbnail URL to integration docs

* fix weekday starting point on explore when set to monday in UI settings

* only show allowed cameras and groups in camera filter button

* Reset the wizard state after closing with model

* remove footnote about 0.17

* 0.17

* add triggers to note

* add slovak

* Ensure genai client exists

* Correctly catch JSONDecodeError

* clarify docs for none class

* version bump on updating page

* fix ExportRecordingsBody to allow optional name field

fixes https://github.com/blakeblackshear/frigate/discussions/21413 because of https://github.com/blakeblackshear/frigate-hass-integration/pull/1021

* Catch remote protocol error from ollama

---------

Co-authored-by: Nicolas Mowen <nickmowen213@gmail.com>
This commit is contained in:
Josh Hawkins
2025-12-24 08:03:09 -06:00
committed by GitHub
co-authored by Nicolas Mowen
parent f862ef5d0c
commit a4ece9dae3
14 changed files with 87 additions and 36 deletions
+8 -3
View File
@@ -35,6 +35,8 @@ export interface DateRangePickerProps {
showCompare?: boolean;
/** timezone */
timezone?: string;
/** First day of the week: 0 = Sunday, 1 = Monday */
weekStartsOn?: number;
}
const getDateAdjustedForTimezone = (
@@ -91,6 +93,7 @@ export function DateRangePicker({
onUpdate,
onReset,
showCompare = true,
weekStartsOn = 0,
}: DateRangePickerProps) {
const [isOpen, setIsOpen] = useState(false);
@@ -150,7 +153,9 @@ export function DateRangePicker({
if (!preset) throw new Error(`Unknown date range preset: ${presetName}`);
const from = new TZDate(new Date(), timezone);
const to = new TZDate(new Date(), timezone);
const first = from.getDate() - from.getDay();
const dayOfWeek = from.getDay();
const daysFromWeekStart = (dayOfWeek - weekStartsOn + 7) % 7;
const first = from.getDate() - daysFromWeekStart;
switch (preset.name) {
case "today":
@@ -184,8 +189,8 @@ export function DateRangePicker({
to.setHours(23, 59, 59, 999);
break;
case "lastWeek":
from.setDate(from.getDate() - 7 - from.getDay());
to.setDate(to.getDate() - to.getDay() - 1);
from.setDate(first - 7);
to.setDate(first - 1);
from.setHours(0, 0, 0, 0);
to.setHours(23, 59, 59, 999);
break;