From 19b273a87b0909ffaca0dc3019be1e36f205262f Mon Sep 17 00:00:00 2001 From: Sam Catlow Date: Tue, 24 Nov 2026 07:50:57 +1100 Subject: [PATCH] fix(ui): label the add source form --- ui/src/events/SourceList.vue | 88 +++++++++++++++++++++++++----------- 1 file changed, 62 insertions(+), 26 deletions(-) diff --git a/ui/src/events/SourceList.vue b/ui/src/events/SourceList.vue index 737ff02f8..e31a3494f 100644 --- a/ui/src/events/SourceList.vue +++ b/ui/src/events/SourceList.vue @@ -8,11 +8,12 @@ import { DataTable, type DataTableColumn } from "@/components/ui/data-table"; import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"; import { DropdownMenuItem } from "@/components/ui/dropdown-menu"; import { Empty, EmptyHeader, EmptyTitle } from "@/components/ui/empty"; +import { Field, FieldGroup, FieldLabel } from "@/components/ui/field"; import { Input } from "@/components/ui/input"; import { MoreMenu } from "@/components/ui/more-menu"; import { ReadError } from "@/components/ui/read-error"; import { Section } from "@/components/ui/section"; -import { Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; +import { Select, SelectContent, SelectGroup, SelectItem, SelectTrigger, SelectValue } from "@/components/ui/select"; import { SettingRow } from "@/components/ui/setting-row"; import { Skeleton } from "@/components/ui/skeleton"; import { errors } from "@/copy/errors"; @@ -114,6 +115,12 @@ async function saveKeyFields(): Promise { } } const connectorNames = computed(() => (connectors.data.value ?? []).map((c) => c.name)); +const connectorPlaceholder = computed(() => { + if (connectorNames.value.length) return "Select a connector"; + if (connectors.loading.value) return "Loading connectors…"; + if (connectors.error.value) return "Connectors unavailable"; + return "No connectors installed"; +}); - + {{ editing ? `Edit ${editing.label}` : "Add source" }} -
- - - - -

{{ connectors.error.value }}

- + + + + Source name + + + + Connector + + + + Verification + + + + +
- + + + + +