mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-19 23:08:08 +02:00
Improve profile state management and add recap tool (#22715)
* Improve profile information * Add chat tools * Add quick links to new chats * Improve usefulness * Cleanup * fix
This commit is contained in:
@@ -15,10 +15,14 @@
|
||||
"suggested_requests": "Try asking:",
|
||||
"starting_requests": {
|
||||
"show_recent_events": "Show recent events",
|
||||
"show_camera_status": "Show camera status"
|
||||
"show_camera_status": "Show camera status",
|
||||
"recap": "What happened while I was away?",
|
||||
"watch_camera": "Watch a camera for activity"
|
||||
},
|
||||
"starting_requests_prompts": {
|
||||
"show_recent_events": "Show me the recent events from the last hour",
|
||||
"show_camera_status": "What is the current status of my cameras?"
|
||||
"show_camera_status": "What is the current status of my cameras?",
|
||||
"recap": "What happened while I was away?",
|
||||
"watch_camera": "Watch the front door and let me know if anyone shows up"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -22,6 +22,14 @@ export function ChatStartingState({ onSendMessage }: ChatStartingStateProps) {
|
||||
label: t("starting_requests.show_camera_status"),
|
||||
prompt: t("starting_requests_prompts.show_camera_status"),
|
||||
},
|
||||
{
|
||||
label: t("starting_requests.recap"),
|
||||
prompt: t("starting_requests_prompts.recap"),
|
||||
},
|
||||
{
|
||||
label: t("starting_requests.watch_camera"),
|
||||
prompt: t("starting_requests_prompts.watch_camera"),
|
||||
},
|
||||
];
|
||||
|
||||
const handleRequestClick = (prompt: string) => {
|
||||
|
||||
@@ -14,6 +14,7 @@ export type ProfileInfo = {
|
||||
export type ProfilesApiResponse = {
|
||||
profiles: ProfileInfo[];
|
||||
active_profile: string | null;
|
||||
last_activated: Record<string, number>;
|
||||
};
|
||||
|
||||
export type ProfileState = {
|
||||
|
||||
Reference in New Issue
Block a user