Add Last Seen column and color-coded status badges in Machines table

- New Last Seen column showing last_seen_at timestamp per machine
- Status badges: online=green (success), offline=red (error), waking/pending=amber
- Update Machine interface with last_seen_at and created_at fields
This commit is contained in:
2026-07-10 10:51:10 -04:00
parent 175fdf4dff
commit 7a2a7a4935
5 changed files with 15 additions and 10 deletions
+3 -1
View File
@@ -25,7 +25,7 @@ export type BadgeVariant = VariantProps<typeof badgeVariants>['variant']
const STATUS_TO_VARIANT: Record<string, BadgeVariant> = {
running: 'running',
pending: 'pending',
waking: 'waking',
waking: 'pending',
success: 'success',
error: 'error',
failed: 'error',
@@ -33,6 +33,8 @@ const STATUS_TO_VARIANT: Record<string, BadgeVariant> = {
cancelled: 'neutral',
info: 'info',
unknown: 'neutral',
online: 'success',
offline: 'error',
}
export function statusVariant(status: string): BadgeVariant {