Semantic Search Frontend (#12112)

* Add basic search page

* Abstract filters to separate components

* Make searching functional

* Add loading and no results indicators

* Implement searching

* Combine account and settings menus on mobile

* Support using thumbnail for in progress detections

* Fetch previews

* Move recordings view and open recordings when search is selected

* Implement detail pane

* Implement saving of description

* Implement similarity search

* Fix clicking

* Add date range picker

* Fix

* Fix iOS zoom bug

* Mobile fixes

* Use text area

* Fix spacing for drawer

* Fix fetching previews incorrectly
This commit is contained in:
Nicolas Mowen
2024-06-23 14:58:00 -06:00
parent 0d7a148897
commit 9d7e499adb
24 changed files with 2682 additions and 755 deletions

View File

@@ -398,6 +398,10 @@ export interface FrigateConfig {
enabled: boolean;
};
semantic_search: {
enabled: boolean;
}
snapshots: {
bounding_box: boolean;
clean_copy: boolean;

20
web/src/types/search.ts Normal file
View File

@@ -0,0 +1,20 @@
export type SearchResult = {
id: string;
camera: string;
description?: string;
start_time: number;
end_time?: number;
score: number;
label: string;
sub_label?: string;
thumb_path?: string;
zones: string[];
};
export type SearchFilter = {
cameras?: string[];
labels?: string[];
zones?: string[];
before?: number;
after?: number;
};