From 2a66923524952e63d3fdc2c037599c96cf434db0 Mon Sep 17 00:00:00 2001 From: Josh Hawkins <32435876+hawkeye217@users.noreply.github.com> Date: Sat, 14 Sep 2024 08:42:56 -0500 Subject: [PATCH] Explore pane infinite loading (#13738) * swr for infinite loading * search detail language change * drawer padding * spacing * center calendar * padding * catch error * use limit const --- .../components/filter/CamerasFilterButton.tsx | 10 +-- .../components/filter/SearchFilterGroup.tsx | 18 ++--- .../overlay/detail/ObjectLifecycle.tsx | 2 +- .../overlay/detail/SearchDetailDialog.tsx | 4 +- web/src/components/ui/calendar-range.tsx | 2 +- web/src/pages/Explore.tsx | 76 +++++++++++++++++-- web/src/types/search.ts | 17 +++++ web/src/views/explore/ExploreView.tsx | 2 +- web/src/views/search/SearchView.tsx | 67 +++++++++++++--- 9 files changed, 162 insertions(+), 36 deletions(-) diff --git a/web/src/components/filter/CamerasFilterButton.tsx b/web/src/components/filter/CamerasFilterButton.tsx index da188b5d7..12c5431bf 100644 --- a/web/src/components/filter/CamerasFilterButton.tsx +++ b/web/src/components/filter/CamerasFilterButton.tsx @@ -90,7 +90,7 @@ export function CamerasFilterButton({ )} -
+
{groups.length > 0 && ( <> - + {groups.map(([name, conf]) => { return (
setCurrentCameras([...conf.cameras])} > {name} @@ -120,7 +120,7 @@ export function CamerasFilterButton({ })} )} - +
{allCameras.map((item) => (
- +
- + {isDesktop && }
- + {isDesktop && }