Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
Rename "Chat" to "Build" in interaction mode toggle (#1769)
sonderc6f57a106493
diff --git a/apps/web/src/components/ChatView.browser.tsx b/apps/web/src/components/ChatView.browser.tsxindex 24099fc7f..1d9108aab 100644--- a/apps/web/src/components/ChatView.browser.tsx+++ b/apps/web/src/components/ChatView.browser.tsx@@ -874,7 +874,7 @@ async function expectComposerActionsContained(): Promise<void> {}async function waitForInteractionModeButton(- expectedLabel: "Chat" | "Plan",+ expectedLabel: "Build" | "Plan",): Promise<HTMLButtonElement> {return waitForElement(() =>@@ -2111,7 +2111,7 @@ describe("ChatView timeline estimator parity (full app)", () => {});try {- const initialModeButton = await waitForInteractionModeButton("Chat");+ const initialModeButton = await waitForInteractionModeButton("Build");expect(initialModeButton.title).toContain("enter plan mode");window.dispatchEvent(@@ -2124,7 +2124,7 @@ describe("ChatView timeline estimator parity (full app)", () => {);await waitForLayout();- expect((await waitForInteractionModeButton("Chat")).title).toContain("enter plan mode");+ expect((await waitForInteractionModeButton("Build")).title).toContain("enter plan mode");const composerEditor = await waitForComposerEditor();composerEditor.focus();@@ -2140,7 +2140,7 @@ describe("ChatView timeline estimator parity (full app)", () => {await vi.waitFor(async () => {expect((await waitForInteractionModeButton("Plan")).title).toContain(- "return to normal chat mode",+ "return to normal build mode",);},{ timeout: 8_000, interval: 16 },@@ -2157,7 +2157,7 @@ describe("ChatView timeline estimator parity (full app)", () => {await vi.waitFor(async () => {- expect((await waitForInteractionModeButton("Chat")).title).toContain("enter plan mode");+ expect((await waitForInteractionModeButton("Build")).title).toContain("enter plan mode");},{ timeout: 8_000, interval: 16 },);diff --git a/apps/web/src/components/ChatView.tsx b/apps/web/src/components/ChatView.tsxindex 185fa7c2e..5d160f4bd 100644--- a/apps/web/src/components/ChatView.tsx+++ b/apps/web/src/components/ChatView.tsx@@ -1476,7 +1476,7 @@ export default function ChatView({ threadId }: ChatViewProps) {type: "slash-command",command: "default",label: "/default",- description: "Switch this thread back to normal chat mode",+ description: "Switch this thread back to normal build mode",},] satisfies ReadonlyArray<Extract<ComposerCommandItem, { type: "slash-command" }>>;const query = composerTrigger.query.trim().toLowerCase();@@ -4029,7 +4029,7 @@ export default function ChatView({ threadId }: ChatViewProps) {<formref={composerFormRef}onSubmit={onSend}- className="mx-auto w-full min-w-0 max-w-[52rem]"+ className="mx-auto w-full min-w-0 max-w-208"data-chat-composer-form="true"><div@@ -4284,13 +4284,13 @@ export default function ChatView({ threadId }: ChatViewProps) {onClick={toggleInteractionMode}title={interactionMode === "plan"- ? "Plan mode — click to return to normal chat mode"+ ? "Plan mode — click to return to normal build mode": "Default mode — click to enter plan mode"}><BotIcon /><span className="sr-only sm:not-sr-only">- {interactionMode === "plan" ? "Plan" : "Chat"}+ {interactionMode === "plan" ? "Plan" : "Build"}</span></Button>