mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-23 11:42:21 +00:00
Vue kit: missions', Contacts', Radio's and key setup's buttons and glyphs are kit controls
The Space Missions panel's buttons (a mission's roster row, FOCUS, the replay's pause, PREV, NEXT and SHOW ALL / DESELECT, beside REPLAY ASCENT and the two closes that already were), the Contacts panel's PREV, FOCUS, NEXT and contact rows, the Radio panel's PREV, PLAY, NEXT and STOP, the RTL-SDR card's Locate, Change device, Tune and the two seeks, and the key setup's POWER UP chip, REMOVE, voice auth toggle and SAVE KEYS are ghost UiButtons keeping their ids, classes, data-*, aria-*, titles and listeners. PLAY and Locate keep their own active class (their words change with their state), so they gain no aria-pressed. The chip's bolt is a UiIcon with :size="null", so provider-settings.css still sizes it. The card's FM frequency stays a native number field (the kit has none) and the radio tuner's range stays native, as documented. None of these owners renders synchronously, so no slot needs redrawWithView. src/ui/kit/missionsRadioControls.test.mjs pins it; docs/VUE-MIGRATION.md describes the surface and no longer calls the key setup chip a plain button. radioPanel.test.mjs reads PLAY's Core classes without the kit's. Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
1 parent
2796c2547b
commit
14b6d1cc13
10 files changed
+193
-31
No files matched your search
@@ -3,6 +3,7 @@ import { storeToRefs } from 'pinia';
|
||||
import { onBeforeUpdate, onUpdated, ref } from 'vue';
|
||||
import { t } from '../../../i18n/index.js';
|
||||
import { useSpaceMissionsStore } from '../../stores/spaceMissions.js';
|
||||
import UiButton from '../../kit/UiButton.vue';
|
||||
import UiEmpty from '../../kit/UiEmpty.vue';
|
||||
|
||||
// The Space Missions roster. The launches layer presents it; until it does,
|
||||
@@ -72,7 +73,7 @@ onUpdated(() => {
|
||||
<div class="space-mission-roster-list ui-scroll" data-mission-roster-list>
|
||||
<UiEmpty v-if="!roster" class="space-mission-roster-empty" :title="t('LOADING 30-DAY MISSION INDEX')" />
|
||||
<UiEmpty v-else-if="!roster.entries.length" class="space-mission-roster-empty" :title="roster.empty" />
|
||||
<button v-for="entry in roster?.entries" v-else :key="entry.id" type="button" class="space-mission-roster-item" :data-mission-roster-index="entry.index" :data-mission-roster-id="entry.id" :aria-label="entry.ariaLabel" @click="layer?.selectMissionAt(entry.index)" @mouseenter="enter(entry.index)" @mousemove="move(entry.index)" @mouseleave="layer?.rosterPointerLeave()" @focus="layer?.rosterFocus(entry.index)" @blur="blur"><span class="space-mission-roster-marker" :style="{ '--mission-roster-color': entry.color }" aria-hidden="true"></span><span class="space-mission-roster-copy"><strong>{{ entry.label }}</strong><small>{{ entry.provider }} · {{ entry.date }}</small></span><span class="space-mission-roster-chevron" aria-hidden="true">›</span></button>
|
||||
<UiButton v-for="entry in roster?.entries" v-else :key="entry.id" class="space-mission-roster-item" :data-mission-roster-index="entry.index" :data-mission-roster-id="entry.id" :aria-label="entry.ariaLabel" @click="layer?.selectMissionAt(entry.index)" @mouseenter="enter(entry.index)" @mousemove="move(entry.index)" @mouseleave="layer?.rosterPointerLeave()" @focus="layer?.rosterFocus(entry.index)" @blur="blur"><span class="space-mission-roster-marker" :style="{ '--mission-roster-color': entry.color }" aria-hidden="true"></span><span class="space-mission-roster-copy"><strong>{{ entry.label }}</strong><small>{{ entry.provider }} · {{ entry.date }}</small></span><span class="space-mission-roster-chevron" aria-hidden="true">›</span></UiButton>
|
||||
</div>
|
||||
<p class="space-mission-roster-focus-continuation" tabindex="-1" data-mission-roster-focus-continuation>{{ t('TAB PREVIEWS · ENTER / SPACE SELECTS') }}</p>
|
||||
</div>
|
||||
|
||||
Reference in new issue
Block a user