feat: SSH card UX, agent version sync, persistent ssh_admin_ok (0.11.5)

Silent SSH probe on host card open; manual test feedback auto-hides. Persist ssh_admin_ok in DB (migration 019). After agent update read version from host and refresh UI.
This commit is contained in:
PTah
2026-06-20 01:01:56 +10:00
parent 6fea8262fb
commit 2eb06acb5b
17 changed files with 423 additions and 70 deletions
+5 -1
View File
@@ -1,4 +1,4 @@
const TOKEN_KEY = "sac_token";
const TOKEN_KEY = "sac_token";
const ROLE_KEY = "sac_role";
export function getToken(): string | null {
@@ -227,6 +227,8 @@ export interface HostSummary {
last_daily_report_at: string | null;
last_inventory_at?: string | null;
agent_status: "online" | "stale" | "unknown";
ssh_admin_ok?: boolean | null;
ssh_admin_checked_at?: string | null;
}
export interface HostDetail extends HostSummary {
@@ -474,6 +476,8 @@ export interface HostSshActionResult {
stdout: string | null;
stderr: string | null;
exit_code: number | null;
product_version?: string | null;
ssh_admin_ok?: boolean | null;
}
export function testHostSsh(hostId: number): Promise<HostSshActionResult> {