diff --git a/web/src/pages/SubmitPlus.tsx b/web/src/pages/SubmitPlus.tsx
index c1a89dc45..57c0fdf37 100644
--- a/web/src/pages/SubmitPlus.tsx
+++ b/web/src/pages/SubmitPlus.tsx
@@ -43,6 +43,7 @@ import {
FaSortAmountDown,
FaSortAmountUp,
} from "react-icons/fa";
+import { LuFolderX } from "react-icons/lu";
import { PiSlidersHorizontalFill } from "react-icons/pi";
import useSWR from "swr";
import useSWRInfinite from "swr/infinite";
@@ -240,96 +241,104 @@ export default function SubmitPlus() {
-
-
-
- {events?.map((event) => {
- if (event.data.type != "object" || event.plus_id) {
- return;
- }
-
- return (
-
setUpload(event)}
- >
-
-
-
-
-
-
- {[event.label].map((object) => {
- return getIconForLabel(
- object,
- "size-3 text-white",
- );
- })}
-
- {Math.round(event.data.score * 100)}%
-
-
-
-
-
-
- {[event.label]
- .map((text) => capitalizeFirstLetter(text))
- .sort()
- .join(", ")
- .replaceAll("-verified", "")}
-
-
-
+ {isValidating ? (
+
+ ) : events?.length === 0 ? (
+
+
+ No snapshots found
+
+ ) : (
+
+
- );
- })}
- {!isValidating && !isDone &&
}
- {isValidating &&
}
-
+
+
+
+
+
+
+
+
+ {events?.map((event) => {
+ if (event.data.type != "object" || event.plus_id) {
+ return;
+ }
+
+ return (
+
setUpload(event)}
+ >
+
+
+
+
+
+
+ {[event.label].map((object) => {
+ return getIconForLabel(
+ object,
+ "size-3 text-white",
+ );
+ })}
+
+ {Math.round(event.data.score * 100)}%
+
+
+
+
+
+
+ {[event.label]
+ .map((text) => capitalizeFirstLetter(text))
+ .sort()
+ .join(", ")
+ .replaceAll("-verified", "")}
+
+
+
+
+
+ );
+ })}
+ {!isValidating && !isDone &&
}
+
+ )}
);
diff --git a/web/src/views/events/RecordingView.tsx b/web/src/views/events/RecordingView.tsx
index 2613069de..ce416b873 100644
--- a/web/src/views/events/RecordingView.tsx
+++ b/web/src/views/events/RecordingView.tsx
@@ -708,25 +708,31 @@ function Timeline({
isMobile && "sm:grid-cols-2",
)}
>
- {mainCameraReviewItems.map((review) => {
- if (review.severity == "significant_motion") {
- return;
- }
+ {mainCameraReviewItems.length === 0 ? (
+
+ No events found for this time period.
+
+ ) : (
+ mainCameraReviewItems.map((review) => {
+ if (review.severity === "significant_motion") {
+ return;
+ }
- return (
- {
- manuallySetCurrentTime(
- review.start_time - REVIEW_PADDING,
- true,
- );
- }}
- />
- );
- })}
+ return (
+ {
+ manuallySetCurrentTime(
+ review.start_time - REVIEW_PADDING,
+ true,
+ );
+ }}
+ />
+ );
+ })
+ )}
)}