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 -12
View File
@@ -1,5 +1,4 @@
<script setup lang="ts">
import { Separator } from "@/components/ui/separator";
import { computed } from "vue";
import { useRoute } from "vue-router";
@@ -26,21 +25,14 @@ const items = computed(() =>
</script>
<template>
<div class="flex gap-8 @max-3xl:flex-col @max-3xl:gap-4">
<div class="flex flex-col gap-4">
<nav
id="config-sidebar"
:aria-label="props.scope === 'org' ? 'Organisation' : 'Instance'"
class="shrink-0 @3xl:w-48 @max-3xl:-mx-4 @max-3xl:w-auto @max-3xl:scroll-fade-x @max-3xl:overflow-x-auto @max-3xl:[scrollbar-width:none] @max-3xl:border-b @max-3xl:px-4"
class="-mx-4 scroll-fade-x overflow-x-auto border-b px-4 pb-2 [scrollbar-width:none]"
>
<ul class="flex flex-col gap-0.5 @3xl:sticky @3xl:top-20 @max-3xl:flex-row @max-3xl:gap-1">
<li v-for="(item, index) in items" :key="item.path" class="contents">
<Separator v-if="item.dividerBefore === ''" class="my-4 @max-3xl:hidden" />
<p
v-else-if="item.dividerBefore"
:class="cn('mb-1 px-3 text-caption font-medium tracking-[0.06em] text-fg-subtle uppercase @max-3xl:hidden', index > 0 && 'mt-4')"
>
{{ item.dividerBefore }}
</p>
<ul class="flex flex-row flex-wrap gap-1">
<li v-for="item in items" :key="item.path" class="contents">
<RouterLink
:to="item.path"
:aria-current="route.path === item.path ? 'page' : undefined"