History replaces the Audit card on every settings page: one change log for all settings, filterable by section, actor and time window, with the filters in the query so each page's History link opens it filtered to that page. Rows show the old and new value as a diff and expand to the full value; Restore still puts a resource back to the version before a change. The sidebar's edge drags (or takes arrow keys) between 180 and 420px, resets on double-click and remembers its width per browser.
33 lines
1021 B
Vue
33 lines
1021 B
Vue
<script setup lang="ts">
|
|
import HistoryLink from "@/settings/HistoryLink.vue";
|
|
import { computed, onMounted } from "vue";
|
|
import { storeToRefs } from "pinia";
|
|
|
|
import PageHeader from "@/base/PageHeader.vue";
|
|
import { useControlPlaneStore } from "@/stores/control-plane";
|
|
import { resourcesForPage } from "@/stores/control-plane";
|
|
import StructuredResourceCard from "./StructuredResourceCard.vue";
|
|
|
|
const controlPlane = useControlPlaneStore();
|
|
const { catalog, catalogError } = storeToRefs(controlPlane);
|
|
const resources = computed(() => resourcesForPage(catalog.value, "tasks"));
|
|
onMounted(controlPlane.load);
|
|
</script>
|
|
|
|
<template>
|
|
<div>
|
|
<PageHeader title="Task execution">
|
|
<HistoryLink :kinds="resources.map((r) => r.kind)" />
|
|
</PageHeader>
|
|
|
|
<p v-if="catalogError" class="text-sm text-destructive" role="alert">
|
|
{{ catalogError }}
|
|
</p>
|
|
<StructuredResourceCard
|
|
v-for="descriptor in resources"
|
|
:key="descriptor.kind"
|
|
:descriptor="descriptor"
|
|
/>
|
|
</div>
|
|
</template>
|