diff --git a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx index 741eda6fd1..fa3c919c0c 100644 --- a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx +++ b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceItem.tsx @@ -252,7 +252,7 @@ const WorkspaceItem: React.FC = ({ return { status, statusLabel, - hostLabel, + connectionLabel, /** A green dot already reads as "fine"; spell out only the states that need attention. */ showStatusText: status !== 'connected', tooltip: t('nav.workspaces.remote.tooltip', { @@ -261,7 +261,7 @@ const WorkspaceItem: React.FC = ({ status: statusLabel, }), ariaLabel: t('nav.workspaces.remote.ariaLabel', { - connection: hostLabel, + connection: connectionLabel, status: statusLabel, }), }; @@ -1362,7 +1362,7 @@ const WorkspaceItem: React.FC = ({ aria-hidden="true" /> - {remoteMeta.hostLabel} + {remoteMeta.connectionLabel} {remoteMeta.showStatusText ? ( diff --git a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts index 43042db8a7..da0ef7ce30 100644 --- a/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts +++ b/src/web-ui/src/app/components/NavPanel/sections/workspaces/WorkspaceListSectionLayout.test.ts @@ -222,7 +222,7 @@ describe('WorkspaceListSection layout styles', () => { expect(source).toContain('behavior="marquee"'); expect(searchIndicatorStart).toBeGreaterThan(remoteNameStart); expect(remoteMetaStart).toBeGreaterThan(searchIndicatorStart); - expect(remoteMetaMarkup).toContain('remoteMeta.hostLabel'); + expect(remoteMetaMarkup).toContain('remoteMeta.connectionLabel'); expect(remoteMetaMarkup.indexOf('workspace-item-status-dot')) .toBeLessThan(remoteMetaMarkup.indexOf('workspace-item-remote-host')); expect(source).not.toContain('workspace-item-subtitle');