refactor(ui): hard rules and change-request rules are Controls, not Policies, which stays the access model (archie #1977)

This commit is contained in:
sam committed 2026-11-16 13:23:09 +11:00
1 parent 2f802e04a4
commit 546e5cd6ef
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -37,7 +37,7 @@ function signOut() {
<RouterLink to="/unmatched" active-class="text-foreground" class="text-muted-foreground">Unmatched</RouterLink>
<RouterLink to="/classes" active-class="text-foreground" class="text-muted-foreground">Classes</RouterLink>
<RouterLink to="/people" active-class="text-foreground" class="text-muted-foreground">People</RouterLink>
<RouterLink to="/policies" active-class="text-foreground" class="text-muted-foreground">Policies</RouterLink>
<RouterLink to="/controls" active-class="text-foreground" class="text-muted-foreground">Controls</RouterLink>
<RouterLink to="/settings" active-class="text-foreground" class="text-muted-foreground">Settings</RouterLink>
<Button variant="ghost" size="xs" class="ml-auto" @click="signOut">Sign out</Button>
</nav>
@@ -10,7 +10,7 @@ import { Textarea } from "@/components/ui/textarea";
import { Timestamp } from "@/components/ui/timestamp";
import { getPolicies, savePolicies, Unauthorized, type PolicyKind, type PolicySet } from "./api";
/** Cedar policy sets: hard rules run before the guards, change-request rules after. */
/** Controls: Cedar hard rules run before the guards, change-request rules after. */
const emit = defineEmits<{ unauthorized: [] }>();
interface Editor {
@@ -71,7 +71,7 @@ onBeforeUnmount(() => controller.abort());
<template>
<div>
<PageHeader title="Policies" />
<PageHeader title="Controls" />
<Spinner v-if="loading" />
<ReadError v-else-if="loadError" :message="loadError" retry-label="Retry" @retry="load" />
<template v-else>
+1 -1
View File
@@ -10,7 +10,7 @@ export default createRouter({
{ path: "/classes", name: "classes", component: () => import("./ClassesView.vue") },
{ path: "/classes/:id", name: "class", component: () => import("./ClassView.vue"), props: true },
{ path: "/people", name: "people", component: () => import("./PeopleView.vue") },
{ path: "/policies", name: "policies", component: () => import("./PoliciesView.vue") },
{ path: "/controls", name: "controls", component: () => import("./ControlsView.vue") },
{ path: "/settings", name: "settings", component: () => import("./SettingsView.vue") },
{ path: "/runs/:id", name: "run", component: () => import("./RunView.vue"), props: true },
],