style(ui): tidy org page layouts and empty states
Members and Workspaces get fixed column widths and their add forms move into labelled sections. Agents lists agents first and moves credential grants below. Access puts New policy in the card header. Tokens states when none exist.
This commit is contained in:
1 parent
47f75f71a7
commit
feba855326
7 files changed
+143
-126
No files matched your search
@@ -4,7 +4,7 @@ import { computed, onMounted, ref } from "vue";
|
||||
import PageHeader from "@/base/PageHeader.vue";
|
||||
import { Badge } from "@/components/ui/badge";
|
||||
import { Button } from "@/components/ui/button";
|
||||
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Card, CardAction, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
|
||||
import { Input } from "@/components/ui/input";
|
||||
import {
|
||||
Select,
|
||||
@@ -99,13 +99,17 @@ onMounted(load);
|
||||
<div>
|
||||
<PageHeader title="Access policies" />
|
||||
|
||||
<p v-if="error" class="mb-4 text-sm text-destructive">{{ error }}</p>
|
||||
<p v-if="error" role="alert" class="mb-4 text-sm text-danger">{{ error }}</p>
|
||||
|
||||
<Card class="mb-4">
|
||||
<CardHeader>
|
||||
<CardTitle>Policies</CardTitle>
|
||||
<CardAction>
|
||||
<Button size="sm" @click="editing = true">New policy</Button>
|
||||
</CardAction>
|
||||
</CardHeader>
|
||||
<CardContent class="flex flex-col gap-3">
|
||||
<p v-if="!policies.length" class="text-sm text-fg-subtle">No policies yet.</p>
|
||||
<div
|
||||
v-for="p in policies"
|
||||
:key="`${p.level}/${scope(p)}/${p.id}`"
|
||||
@@ -125,7 +129,6 @@ onMounted(load);
|
||||
<Button size="sm" variant="outline" @click="remove(p)">Delete</Button>
|
||||
</div>
|
||||
</div>
|
||||
<Button v-if="!editing" class="self-start" @click="editing = true">New policy</Button>
|
||||
</CardContent>
|
||||
</Card>
|
||||
|
||||
|
||||
Reference in new issue
Block a user