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
69f7f61c12
commit
f65d24d60f
7 files changed
+143
-126
No files matched your search
@@ -80,9 +80,9 @@ async function create(): Promise<void> {
|
||||
<Table>
|
||||
<TableHeader>
|
||||
<TableRow>
|
||||
<TableHead>ID</TableHead>
|
||||
<TableHead>Name</TableHead>
|
||||
<TableHead>Environment</TableHead>
|
||||
<TableHead class="w-56">ID</TableHead>
|
||||
<TableHead class="w-full">Name</TableHead>
|
||||
<TableHead class="w-44">Environment</TableHead>
|
||||
</TableRow>
|
||||
</TableHeader>
|
||||
<TableBody>
|
||||
@@ -103,13 +103,16 @@ async function create(): Promise<void> {
|
||||
</TableBody>
|
||||
</Table>
|
||||
|
||||
<form class="mt-4 flex flex-wrap items-end gap-2" @submit.prevent="create">
|
||||
<Input v-model="id" class="w-40 font-mono" placeholder="id" aria-label="Workspace id" required />
|
||||
<Input v-model="name" class="w-56" placeholder="Name" aria-label="Workspace name" required />
|
||||
<Input v-model="environment" class="w-40" placeholder="Environment" aria-label="Environment" />
|
||||
<Button type="submit" size="sm" :disabled="!id.trim() || !name.trim() || busy">
|
||||
<Plus data-icon="inline-start" /> Create
|
||||
</Button>
|
||||
</form>
|
||||
<section class="mt-8" aria-labelledby="new-workspace">
|
||||
<h2 id="new-workspace" class="mb-3 text-sm font-medium">New workspace</h2>
|
||||
<form class="flex flex-wrap items-center gap-2" @submit.prevent="create">
|
||||
<Input v-model="id" class="w-40 font-mono" placeholder="id" aria-label="Workspace id" required />
|
||||
<Input v-model="name" class="w-56" placeholder="Name" aria-label="Workspace name" required />
|
||||
<Input v-model="environment" class="w-40" placeholder="Environment" aria-label="Environment" />
|
||||
<Button type="submit" size="sm" :disabled="!id.trim() || !name.trim() || busy">
|
||||
<Plus data-icon="inline-start" /> Create
|
||||
</Button>
|
||||
</form>
|
||||
</section>
|
||||
</div>
|
||||
</template>
|
||||
Reference in new issue
Block a user