From dd08ebe2a9c9feddeb7b44fec8a803b4bdce9b65 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sun, 18 Oct 2026 13:14:54 -0500 Subject: [PATCH] remove motion search range check from the UI --- web/public/locales/en/views/motionSearch.json | 1 - web/src/views/motion-search/MotionSearchView.tsx | 11 ----------- 2 files changed, 12 deletions(-) diff --git a/web/public/locales/en/views/motionSearch.json b/web/public/locales/en/views/motionSearch.json index 7243a89a60..e2eccf2df8 100644 --- a/web/public/locales/en/views/motionSearch.json +++ b/web/public/locales/en/views/motionSearch.json @@ -56,7 +56,6 @@ "noROI": "Please draw a region of interest", "noTimeRange": "Please select a time range", "invalidTimeRange": "End time must be after start time", - "timeRangeTooLong": "Time range must be {{hours}} hours or less", "alreadyRunning": "You already have a motion search running. Wait for it to finish or cancel it.", "tooManySearches": "Too many motion searches are running. Try again when one finishes.", "searchFailed": "Search failed: {{message}}", diff --git a/web/src/views/motion-search/MotionSearchView.tsx b/web/src/views/motion-search/MotionSearchView.tsx index 8f1751018c..c9e4fba92b 100644 --- a/web/src/views/motion-search/MotionSearchView.tsx +++ b/web/src/views/motion-search/MotionSearchView.tsx @@ -90,7 +90,6 @@ type MotionSearchViewProps = { }; const DEFAULT_EXPORT_WINDOW_SECONDS = 60; -const MAX_SEARCH_RANGE_HOURS = 48; const NO_REVIEW_EVENTS: ReviewSegment[] = []; export default function MotionSearchView({ @@ -861,16 +860,6 @@ export default function MotionSearchView({ return; } - if ( - searchRange.before - searchRange.after > - MAX_SEARCH_RANGE_HOURS * 3600 - ) { - toast.error( - t("errors.timeRangeTooLong", { hours: MAX_SEARCH_RANGE_HOURS }), - ); - return; - } - setIsSearching(true); setSearchResults([]); setHasSearched(true);