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:
Nicolas Mowen
2026-03-31 18:09:32 -06:00
committed by GitHub
parent b821420dee
commit e1245cb93d
6 changed files with 398 additions and 42 deletions

View File

@@ -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"
}
}

View File

@@ -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) => {

View File

@@ -14,6 +14,7 @@ export type ProfileInfo = {
export type ProfilesApiResponse = {
profiles: ProfileInfo[];
active_profile: string | null;
last_activated: Record<string, number>;
};
export type ProfileState = {