From 07e89a70246aa39cdfdb63dff213e90b1e51c2d5 Mon Sep 17 00:00:00 2001 From: Denis Groshev Date: Fri, 20 Nov 2026 10:51:57 +0100 Subject: [PATCH] STATION, LIVE and the station views use the kit's buttons and glyphs Main now holds every view to the Vue kit: no hand-written button, Material glyph or aria-pressed. STATION's, LIVE's and the Cockpit LIVE page's buttons and the orbital view's station steps are ghost UiButtons that keep their ids, classes and handlers; their glyphs are UiIcons sized by the stylesheets. A station choice is a pressed toggle through UiButton's pressed state and its is-active class. The Cockpit control list counts the LIVE page, the LIVE tab and the two station steps. --- src/ui/kit/cockpitControls.test.mjs | 8 ++++++-- src/ui/views/panels/CockpitLivePage.vue | 10 ++++++---- src/ui/views/panels/CockpitOrbital.vue | 5 +++-- src/ui/views/panels/LivePanel.vue | 10 ++++++---- src/ui/views/panels/StationPanel.vue | 11 ++++++----- 5 files changed, 27 insertions(+), 17 deletions(-) diff --git a/src/ui/kit/cockpitControls.test.mjs b/src/ui/kit/cockpitControls.test.mjs index dd6c7609ed..44057c01a3 100644 --- a/src/ui/kit/cockpitControls.test.mjs +++ b/src/ui/kit/cockpitControls.test.mjs @@ -36,8 +36,12 @@ const views = { 'panels/CockpitContext.vue': { buttons: 4, icons: 4 }, // A signal row's target and its chevron. 'panels/CockpitSignalList.vue': { buttons: 1, icons: 1 }, - // TLE, Nadir, Zoom out, Zoom in and Sensor. - 'panels/CockpitOrbital.vue': { buttons: 5, icons: 0 }, + // TLE, Nadir, Zoom out, Zoom in and Sensor, and a station's Previous and + // Next view, which draw the two glyphs. + 'panels/CockpitOrbital.vue': { buttons: 7, icons: 2 }, + // The LIVE page's Previous, Next, Play and Try again; the first three draw + // a glyph. + 'panels/CockpitLivePage.vue': { buttons: 4, icons: 3 }, // The range step. 'panels/CockpitRadar.vue': { buttons: 1, icons: 0 }, // The flight plan's arrow. diff --git a/src/ui/views/panels/CockpitLivePage.vue b/src/ui/views/panels/CockpitLivePage.vue index 425c76ef1a..c4bbe20149 100644 --- a/src/ui/views/panels/CockpitLivePage.vue +++ b/src/ui/views/panels/CockpitLivePage.vue @@ -1,6 +1,8 @@