From e4cf51dbc0e60fde0470b0974854f3905aa18141 Mon Sep 17 00:00:00 2001 From: yoniebans Date: Fri, 19 Jun 2026 16:49:31 +0200 Subject: [PATCH] fix(desktop): pill deep-links to Gateway tab + tooltip shows profile - Connection pill now navigates to /settings?tab=gateway (the settings index reads ?tab=), landing the user in the connection panel instead of generic settings. - Tooltip appends the per-profile scope when the connection is profile-scoped, so it discloses which profile the host backs. --- .../src/app/shell/hooks/use-statusbar-items.tsx | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx b/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx index 487ce8472f7..00849db8aa9 100644 --- a/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx +++ b/apps/desktop/src/app/shell/hooks/use-statusbar-items.tsx @@ -319,16 +319,23 @@ export function useStatusbarItems({ const isSsh = connection.remoteKind === 'ssh' const label = isSsh ? copy.connectionSsh(host) : copy.connectionRemote(host) + const baseTooltip = isSsh ? copy.connectionSshTooltip(host) : copy.connectionRemoteTooltip(host) + // Append the per-profile scope when this is a profile-scoped connection, so + // the pill discloses WHICH profile the host backs (not just the host). + const profile = connection.profile + const title = profile ? `${baseTooltip} ยท ${profile}` : baseTooltip return { icon: , id: 'connection', label, - title: isSsh ? copy.connectionSshTooltip(host) : copy.connectionRemoteTooltip(host), - to: SETTINGS_ROUTE, + title, + // Deep-link straight to the Gateway connection panel (the settings index + // reads ?tab=), so the pill lands the user where they manage/switch it. + to: `${SETTINGS_ROUTE}?tab=gateway`, variant: 'link' } - }, [connection?.mode, connection?.remoteHost, connection?.remoteKind, connection?.baseUrl, copy]) + }, [connection?.mode, connection?.remoteHost, connection?.remoteKind, connection?.baseUrl, connection?.profile, copy]) const coreLeftStatusbarItems = useMemo( () => [