feat(k1): complete canonical control lifecycle
This commit is contained in:
@@ -9,7 +9,7 @@ const phaseLabels: Record<string, string> = {
|
||||
device_selected: "Устройство выбрано",
|
||||
provisioning: "Передача настроек Wi‑Fi",
|
||||
connecting: "Подключение",
|
||||
connected: "Устройство подключено",
|
||||
connected: "Сетевой адрес устройства получен",
|
||||
starting_live: "Запуск потока",
|
||||
live: "Поток в реальном времени",
|
||||
replay: "Повтор записи",
|
||||
@@ -25,7 +25,8 @@ export function phaseLabel(phase: string | null | undefined): string {
|
||||
export function phaseTone(phase: string | null | undefined): StatusTone {
|
||||
if (!phase) return "neutral";
|
||||
if (phase === "error") return "danger";
|
||||
if (["connected", "live", "replay"].includes(phase)) return "success";
|
||||
if (["live", "replay"].includes(phase)) return "success";
|
||||
if (phase === "connected") return "warning";
|
||||
if (["scanning", "provisioning", "connecting", "starting_live", "stopping"].includes(phase)) return "accent";
|
||||
return "neutral";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user