From 8fe5412bc5a170d54d1a441ca8fd2f9216956d46 Mon Sep 17 00:00:00 2001 From: Jonas Bengtsson Date: Sat, 5 Sep 2026 14:38:39 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=A7=20Fix=20dashboard=20view?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/Dashboard.vue | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/Dashboard.vue b/frontend/src/views/Dashboard.vue index 59c9c1c..7fabeee 100644 --- a/frontend/src/views/Dashboard.vue +++ b/frontend/src/views/Dashboard.vue @@ -3,6 +3,7 @@ import { onMounted, ref } from 'vue' import { Cpu, Inbox, MessageSquareText } from 'lucide-vue-next' import { api } from '../api' import type { Device, MessagePage } from '../api' +import { formatTime } from '../format' import { showError } from '../store' const messageCount = ref(null) @@ -60,17 +61,32 @@ onMounted(async () => { Received Device - Payload + Payload + attributes - {{ new Date(m.received_at).toLocaleString() }} + {{ formatTime(m.received_at) }} {{ m.device }} -
{{ JSON.stringify(m.payload) }}
+
+ payload +
{{ JSON.stringify(m.payload, null, 2) }}
+

+ attributes resolved as of the message's device time (apply offsets to + payload values yourself): +

+
{{ JSON.stringify(m.attributes, null, 2) }}
+