Reviewed buttons (#10271)

* mark items as reviewed when they are opened

* Update api to use json and add button to mark all as reviewed

* fix api so last24 hours has its own review summary

* fix sidebar spacing

* formatting

* Bug fixes

* Make motion activity respect filters
This commit is contained in:
Nicolas Mowen authored and GitHub committed 2024-03-05 18:39:37 -06:00
1 parent b5edcd2fae
commit 68ed18d3f4
8 files changed
+219 -75

No files matched your search

+5 -1
View File
@@ -28,7 +28,7 @@ export type ReviewFilter = {
showReviewed?: 0 | 1;
};
export type ReviewSummary = {
type ReviewSummaryDay = {
day: string;
reviewed_alert: number;
reviewed_detection: number;
@@ -38,6 +38,10 @@ export type ReviewSummary = {
total_motion: number;
};
export type ReviewSummary = {
[day: string]: ReviewSummaryDay;
};
export type MotionData = {
start_time: number;
motion: number;