Files
archie/ui/src/settings/LifecycleCard.vue
T
sam 47cbe2b8d3 fix(webui): cut redundant tails and restating descriptions from copy
Empty states and card descriptions no longer explain the consequence the
main clause already implies, page descriptions match between the router and
the chat page-index tool, and the Appearance cards lose descriptions that
restated their controls.
2026-09-20 23:38:57 +10:00

41 lines
1.3 KiB
Vue

<script setup lang="ts">
import { computed } from "vue";
import { Empty, EmptyDescription, EmptyHeader, EmptyTitle } from "@/components/ui/empty";
import ConfigCard from "./ConfigCard.vue";
import LifecycleActionList from "./LifecycleActionList.vue";
import LifecycleStatusList from "./LifecycleStatusList.vue";
import { lifecycle, lifecycleError } from "./state";
/**
* The work lifecycle archied ships: its task statuses and the operator actions
* that act on them. Both lists come from the server (GET /api/task-meta), so a
* status or action added on the backend appears here without a frontend change.
*/
const statuses = computed(() => lifecycle.value?.statuses ?? []);
const actions = computed(() => lifecycle.value?.actions ?? []);
</script>
<template>
<ConfigCard
v-if="lifecycleError"
title="Work lifecycle"
description="The task statuses and operator actions archied ships."
>
<Empty>
<EmptyHeader>
<EmptyTitle>Lifecycle unavailable</EmptyTitle>
<EmptyDescription>{{ lifecycleError }}</EmptyDescription>
</EmptyHeader>
</Empty>
</ConfigCard>
<ConfigCard
v-else
title="Work lifecycle"
description="The task statuses and operator actions archied ships."
>
<LifecycleStatusList :statuses="statuses" />
<LifecycleActionList :actions="actions" />
</ConfigCard>
</template>