From 600d64ff5290624560ff7e2a2f9cc082a92b800a Mon Sep 17 00:00:00 2001 From: NeilJo-GY <43027886+NeilJo-GY@users.noreply.github.com> Date: Wed, 14 Oct 2026 17:03:43 +0800 Subject: [PATCH] Name the right-hand window Interaction, and the picture inside it the collaboration graph. Co-authored-by: Cursor --- .../src/ranch-shell/InteractionPanel.tsx | 17 ++++++++++++++--- .../src/ranch-shell/RanchChatShell.tsx | 1 + .../agent-chat/src/ranch-shell/WorkDock.tsx | 4 ++-- packages/agent-chat/src/ranch-shell/i18n.ts | 9 ++++++--- 4 files changed, 23 insertions(+), 8 deletions(-) diff --git a/packages/agent-chat/src/ranch-shell/InteractionPanel.tsx b/packages/agent-chat/src/ranch-shell/InteractionPanel.tsx index df1fdde..1fff493 100644 --- a/packages/agent-chat/src/ranch-shell/InteractionPanel.tsx +++ b/packages/agent-chat/src/ranch-shell/InteractionPanel.tsx @@ -5,6 +5,7 @@ import type { HopPhase, LiveHop } from "../liveHops"; import { colors } from "./styles"; export type InteractionCopy = { + view: string; empty: string; waiting: string; returned: string; @@ -87,16 +88,26 @@ export function InteractionPanel({ const pos = layout(ids); const selected = hops.find((hop) => hop.key === selectedKey) ?? null; + const viewLabel = ( +

+ {copy.view} +

+ ); + if (!hops.length) { return ( -

- {copy.empty} -

+
+ {viewLabel} +

+ {copy.empty} +

+
); } return (
+ {viewLabel} {hops.map((hop, index) => { const from = pos[hop.fromId]; diff --git a/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx b/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx index 01f8e17..02e0fbf 100644 --- a/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx +++ b/packages/agent-chat/src/ranch-shell/RanchChatShell.tsx @@ -5750,6 +5750,7 @@ export function RanchChatShell(props: RanchChatShellProps) { names={agentNames} memberIds={active?.agent_id ? [active.agent_id, ...Object.keys(agentNames)] : Object.keys(agentNames)} copy={{ + view: t.interactionView, empty: t.interactionEmpty, waiting: t.interactionWaiting, returned: t.interactionReturned, diff --git a/packages/agent-chat/src/ranch-shell/WorkDock.tsx b/packages/agent-chat/src/ranch-shell/WorkDock.tsx index 4dc2be8..1da337f 100644 --- a/packages/agent-chat/src/ranch-shell/WorkDock.tsx +++ b/packages/agent-chat/src/ranch-shell/WorkDock.tsx @@ -116,7 +116,7 @@ export function WorkDock({ type="button" role="tab" aria-selected={selected} - title={tab.title} + title={tab.kind === "interaction" ? addInteractionLabel : tab.title} onClick={() => onSelect(tab.id)} style={{ border: 0, @@ -131,7 +131,7 @@ export function WorkDock({ cursor: "pointer", }} > - {tab.title} + {tab.kind === "interaction" ? addInteractionLabel : tab.title}