From f27317738dae85f477abd07d8d530f8cf35e5427 Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Thu, 26 Nov 2026 03:47:57 +1100 Subject: [PATCH] fix(ui/events): mount every step so switching shows no loading state KeepAlive removed the skeleton on a revisit but not on a first visit, so tabbing through the steps still flashed. Every panel now mounts when the page opens and only the active one is on screen, so a switch shows what was already read. The wrapper is a single element because a panel whose template is a fragment cannot be hidden with v-show. usePoll goes back to reading only document.hidden, since nothing is kept alive and deactivated any more. --- ui/src/events/EventsPage.vue | 25 ++++++++++++++++--------- ui/src/lib/use-read.ts | 10 +++------- 2 files changed, 19 insertions(+), 16 deletions(-) diff --git a/ui/src/events/EventsPage.vue b/ui/src/events/EventsPage.vue index 941e74d9b..01e4cc82f 100644 --- a/ui/src/events/EventsPage.vue +++ b/ui/src/events/EventsPage.vue @@ -89,9 +89,13 @@ onMounted(() => void loadCounts()); const steps = computed(() => stepsFor(tabs.value)); -/** The panel the active step shows. Undefined when this composition backs none - * of them, which the template renders as an empty state. */ -const panel = computed(() => PANELS[active.value]); +/** The panels to draw: one per step this composition backs. */ +const panels = computed(() => + tabs.value.flatMap((tab) => { + const component = PANELS[tab.id]; + return component ? [{ id: tab.id, component }] : []; + }), +);