feat(ui): live host row update via SSE without full reload

On new ingest, patch visible host from GET /hosts/{id}; SAC 0.8.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-06-05 10:47:21 +10:00
parent d9893497ce
commit 502971367e
7 changed files with 162 additions and 6 deletions
+4
View File
@@ -214,6 +214,10 @@ export function fetchHost(id: number): Promise<HostDetail> {
return apiFetch<HostDetail>(`/api/v1/hosts/${id}`);
}
export function fetchRecentEvents(limit = 1): Promise<EventSummary[]> {
return apiFetch<EventSummary[]>(`/api/v1/dashboards/recent-events?limit=${limit}`);
}
export interface HostListResponse {
items: HostSummary[];
total: number;