feat(kit): render the pressed toggles with UiButton

UiButton gains pressedClass, Core's class on a pressed button. The pressed
classes toggle through classList, so classes other code adds survive a
press, a caller's class change keeps them, a renamed pressedClass leaves
the button, and server-rendered markup carries them.

The Display, SDR, Radio and Cockpit enable, Cockpit weather and briefing,
mission replay, Street Level, TR-3B, overlay, voice and CCTV toggles now
render through it with the same ids, classes and aria-pressed values.
This commit is contained in:
Sameh Khamis committed 2026-11-01 11:59:30 -08:00
1 parent 5019bd9e8a
commit d98a7c81be
23 files changed
+212 -62

No files matched your search

+4 -3
View File
@@ -64,9 +64,10 @@
`connect`/`act`; the card labels its gain options itself. `act` returns
what the answering action returned. The Display, Radio, RTL-SDR, Cockpit,
mission replay and style parameter sliders are the kit's `UiSlider`, a
native range input that emits numbers. `syncScopeControls` (`./ui/display`)
and `shouldHideCollapsedRightPanels` (`./ui/layout`) are deprecated: the
Display view and the rail now own what they did. `./ui/input` imports Vue
native range input that emits numbers, and the pressed toggles are the
kit's `UiButton`, which gains `pressedClass`. `syncScopeControls`
(`./ui/display`) and `shouldHideCollapsedRightPanels` (`./ui/layout`) are
deprecated: the Display view and the rail now own what they did. `./ui/input` imports Vue
(samehkhamis).
- `./ui/cctv` and `./ui/radio` import Vue and Pinia: their controllers