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.
17 lines
488 B
Vue
17 lines
488 B
Vue
<script setup lang="ts">
|
|
import { History } from "@lucide/vue";
|
|
|
|
import { Button } from "@/components/ui/button";
|
|
|
|
/** Opens Settings > History filtered to these resource kinds. */
|
|
const props = defineProps<{ kinds: string[] }>();
|
|
</script>
|
|
|
|
<template>
|
|
<Button variant="ghost" size="sm" as-child>
|
|
<RouterLink :to="{ path: '/settings/history', query: { section: props.kinds.join(',') } }">
|
|
<History data-icon="inline-start" /> History
|
|
</RouterLink>
|
|
</Button>
|
|
</template>
|