feat(ui,judgement,system): unify nav, surface built-in guards, readiness and decision reasoning

This commit is contained in:
sam committed 2026-11-27 02:13:28 +11:00
1 parent 5dc2d79fdb
commit 2ea0062bef
34 files changed
+548 -103

No files matched your search

+4 -4
View File
@@ -34,17 +34,17 @@ import type { OrgEvent } from "./org";
*/
const allAreas = [
{ title: "Execution identities", to: "/org/agents" },
{ title: "Connections", to: "/org/connections" },
{ title: "Extensions", to: "/settings/extensions" },
{ title: "Workspaces", to: "/org/workspaces" },
{ title: "Models", to: "/org/models" },
{ title: "Schedules and playbooks", to: "/org/schedules" },
{ title: "Models", to: "/settings/models" },
{ title: "Triggers", to: "/events?tab=triggers" },
{ title: "Members and access", to: "/org/members" },
];
const orgStore = useOrgStore();
const session = useSessionStore();
const areas = computed(() => {
const hidden = hiddenPaths(session.sections);
return allAreas.filter((area) => !hidden.includes(area.to));
return allAreas.filter((area) => !hidden.includes(area.to.split("?")[0]!));
});
const org = computed(() => orgStore.org);
// The single binary reports a revision with every org and serves the rename
+1 -1
View File
@@ -20,7 +20,7 @@ const error = ref("");
// Policies and models act on the caller's own org server-side, so an instance
// admin looking at another org is sent back rather than editing the wrong one.
const OWN_ORG_ONLY = ["/org/audit", "/org/policies", "/org/models", "/org/connections", "/org/repositories", "/org/usage"];
const OWN_ORG_ONLY = ["/org/audit", "/org/policies", "/org/repositories", "/org/usage"];
const away = computed(() => !!org.value && org.value.id !== homeOrg.value);
const route = useRoute();
const router = useRouter();