feat(kit): render the status badges and empty states with UiBadge and UiEmpty

UiBadge takes a tone and carries Core's gev-status-badge class, with
the density variants and colours left to its callers; the CCTV source and
calibration badges and the rail card badges render through it. UiEmpty takes
a title and hint, with the title as the line itself, since Core's
empty states are one line; the Scene shot list, mission roster and imagery
strip use it.
This commit is contained in:
Sameh Khamis committed 2026-11-01 12:31:09 -08:00
1 parent ecaf723035
commit b9ecb9b9f5
12 files changed
+126 -19

No files matched your search

+6 -3
View File
@@ -5,6 +5,7 @@ import { t } from '../../i18n/index.js';
import { describeShot } from '../scenePresentation.js';
import UiButton from '../kit/UiButton.vue';
import { useSceneStore } from '../stores/scenes.js';
import UiEmpty from '../kit/UiEmpty.vue';
// The selected scene's shots. Rows keep their identity across selection so a
// click followed by a double-click lands on the same label.
@@ -73,9 +74,11 @@ function onRenameKey(shot, event) {
<template>
<div id="scene-shot-list" class="scene-shot-list ui-scroll">
<template v-if="attached">
<div v-if="!scene?.shots.length" class="scene-shot-empty">{{
t('No shots yet. Use CAPTURE SHOT to save current look.')
}}</div>
<UiEmpty
v-if="!scene?.shots.length"
class="scene-shot-empty"
:title="t('No shots yet. Use CAPTURE SHOT to save current look.')"
/>
<template v-else>
<div
v-for="shot in scene.shots"