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
2024-03-05 17:39:37 -07:00
committed by GitHub
parent b5edcd2fae
commit 68ed18d3f4
8 changed files with 219 additions and 75 deletions

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;