mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-31 19:16:29 +00:00
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.
This commit is contained in:
parent
9622497036
commit
e4cf51dbc0
1 changed files with 10 additions and 3 deletions
|
|
@ -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: <Network className="size-3" />,
|
||||
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<readonly StatusbarItem[]>(
|
||||
() => [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue