feat: reports page with formatted daily report cards

This commit is contained in:
2026-05-27 14:15:15 +10:00
parent 04301ab359
commit 61c9f9b673
10 changed files with 453 additions and 49 deletions
+9 -1
View File
@@ -28,7 +28,15 @@
<td>{{ h.ipv4 || "—" }}</td>
<td :class="'agent-' + h.agent_status">{{ agentLabel(h.agent_status) }}</td>
<td>{{ h.last_heartbeat_at ? formatDt(h.last_heartbeat_at) : "—" }}</td>
<td>{{ h.last_daily_report_at ? formatDt(h.last_daily_report_at) : "—" }}</td>
<td>
<RouterLink
v-if="h.last_daily_report_at"
:to="{ path: '/reports', query: { hostname: h.hostname } }"
>
{{ formatDt(h.last_daily_report_at) }}
</RouterLink>
<span v-else></span>
</td>
<td>{{ formatDt(h.last_seen_at) }}</td>
<td>{{ h.event_count ?? 0 }}</td>
</tr>