From b27dfac402a46453497b54906775e7c9699345b5 Mon Sep 17 00:00:00 2001 From: hugocasa Date: Thu, 15 Oct 2026 18:15:02 +0200 Subject: [PATCH] feat: show each native trigger service's OAuth app status and keep removal apart Remove now only appears with a workspace OAuth app, since a workspace using the instance app has nothing of its own to remove. Co-Authored-By: Claude Opus 5.5 --- .../native/NativeConnectionPicker.svelte | 5 +- .../WorkspaceIntegrations.svelte | 183 +++++++++++------- 2 files changed, 120 insertions(+), 68 deletions(-) diff --git a/frontend/src/lib/components/triggers/native/NativeConnectionPicker.svelte b/frontend/src/lib/components/triggers/native/NativeConnectionPicker.svelte index 3582214f60..19ea251241 100644 --- a/frontend/src/lib/components/triggers/native/NativeConnectionPicker.svelte +++ b/frontend/src/lib/components/triggers/native/NativeConnectionPicker.svelte @@ -21,6 +21,8 @@ /** Select the first connection when none is chosen yet. */ autoSelect?: boolean clearable?: boolean + /** Suffix the workspace connection's label, where it sits among personal ones. */ + labelWorkspace?: boolean placeholder?: string /** Called instead of setting `value` directly when the user picks or clears a connection. */ onSelect?: (path: string | undefined) => void @@ -35,6 +37,7 @@ disabled = false, autoSelect = true, clearable = false, + labelWorkspace = true, placeholder, onSelect, onConnectionsChange @@ -118,7 +121,7 @@ const items = $derived.by(() => { const list = (connections ?? []).map((c) => ({ - label: c.workspace ? `${c.path} (workspace connection)` : c.path, + label: c.workspace && labelWorkspace ? `${c.path} (workspace connection)` : c.path, value: c.path })) if (value && !list.some((i) => i.value === value)) { diff --git a/frontend/src/lib/components/workspaceSettings/WorkspaceIntegrations.svelte b/frontend/src/lib/components/workspaceSettings/WorkspaceIntegrations.svelte index 06eed08ee3..b6df42d9e4 100644 --- a/frontend/src/lib/components/workspaceSettings/WorkspaceIntegrations.svelte +++ b/frontend/src/lib/components/workspaceSettings/WorkspaceIntegrations.svelte @@ -1,10 +1,10 @@