diff --git a/deployments/archie/deploy.sh b/deployments/archie/deploy.sh index 4a86ee08d..150abe019 100755 --- a/deployments/archie/deploy.sh +++ b/deployments/archie/deploy.sh @@ -10,6 +10,8 @@ repo=$(cd "$here/../.." && pwd) dir=/root/archie version=$(git -C "$repo" describe --tags --always --dirty) +# The dashboard is embedded in the binary; never build from a stale ui/dist. +(cd "$repo" && task ui) CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -C "$repo" -trimpath \ -ldflags "-X github.com/samcharles93/archie-core/internal/buildinfo.Version=$version" \ -o "$here/.build/archie" ./cmd/archie diff --git a/ui/src/org/OrgAccessPage.vue b/ui/src/org/OrgAccessPage.vue index 46a498683..b54e03bb9 100644 --- a/ui/src/org/OrgAccessPage.vue +++ b/ui/src/org/OrgAccessPage.vue @@ -8,6 +8,7 @@ import { computed, onMounted, ref } from "vue"; import { Badge } from "@/components/ui/badge"; import { Button } from "@/components/ui/button"; +import { Dialog, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { Section } from "@/components/ui/section"; import { Input } from "@/components/ui/input"; import { @@ -68,6 +69,7 @@ function newPolicy(): void { draft.value = blank(); original.value = blank(); editingExisting.value = false; + saveError.value = ""; editing.value = true; }); } @@ -75,6 +77,9 @@ function newPolicy(): void { function cancel(): void { openForm(() => { draft.value = blank(); + original.value = blank(); + editingExisting.value = false; + saveError.value = ""; editing.value = false; }); } @@ -125,6 +130,7 @@ function edit(p: Policy): void { draft.value = { ...p }; original.value = { ...p }; editingExisting.value = true; + saveError.value = ""; editing.value = true; }); } @@ -197,44 +203,50 @@ onMounted(load); - - - - - - - - instance - org - workspace - object - - - { if (!value) cancel(); }"> + + + {{ draft.id || "New policy" }} + Set the policy scope and Cedar expression. + + + + + + + + instance + org + workspace + object + + + + + + + + + - - - - - - - - - Save - Cancel - - - + + + + Save + Cancel + + + { if (!v) closeDiscard(); }"> diff --git a/ui/src/settings/CataloguePreviewDialog.vue b/ui/src/settings/CataloguePreviewDialog.vue new file mode 100644 index 000000000..2f35991cc --- /dev/null +++ b/ui/src/settings/CataloguePreviewDialog.vue @@ -0,0 +1,107 @@ + + + + + + + {{ entry?.display_name || entry?.name }} + {{ entry?.description || "Manifest metadata and authority." }} + + + + + + + + + + {{ item.version }} + + + + + + + + Authority + + {{ line }} + None declared + + + + + Settings + + + + {{ field.label || field.key }} + {{ field.key }} + Required + Secret + {{ field.type }} + + {{ field.description }} + Options: {{ field.options.join(", ") }} + + + + + + + diff --git a/ui/src/settings/ExtensionsMarketplace.vue b/ui/src/settings/ExtensionsMarketplace.vue index 5e9d0f5a7..5f99b1e7c 100644 --- a/ui/src/settings/ExtensionsMarketplace.vue +++ b/ui/src/settings/ExtensionsMarketplace.vue @@ -1,6 +1,6 @@
{{ field.description }}
Options: {{ field.options.join(", ") }}