authorgravatar for 168988030+heysonder@users.noreply.github.comsonder <168988030+heysonder@users.noreply.github.com> 2026-04-06 12:29:58-05:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2026-04-06 17:29:58+00:00
logc6f57a106493e893233a38b3b1132978c942c88e
tree79ab48ec97861f8e2f1931865bb712e6399caec4
parent340dbbb36e5198aa6a9a1bc1b20dbf5b86d3adb9
signature Signed by PGP key B5690EEEBB952194

Rename "Chat" to "Build" in interaction mode toggle (#1769)

Co-authored-by: Julius Marminge <julius0216@outlook.com>

2 files changed, 9 insertions(+), 9 deletions(-)

apps/web/src/components/ChatView.browser.tsx+5-5
......@@ -874,7 +874,7 @@ async function expectComposerActionsContained(): Promise<void> {
874874}
875875
876876async function waitForInteractionModeButton(
877 expectedLabel: "Chat" | "Plan",
877 expectedLabel: "Build" | "Plan",
878878): Promise<HTMLButtonElement> {
879879 return waitForElement(
880880 () =>
......@@ -2111,7 +2111,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21112111 });
21122112
21132113 try {
2114 const initialModeButton = await waitForInteractionModeButton("Chat");
2114 const initialModeButton = await waitForInteractionModeButton("Build");
21152115 expect(initialModeButton.title).toContain("enter plan mode");
21162116
21172117 window.dispatchEvent(
......@@ -2124,7 +2124,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21242124 );
21252125 await waitForLayout();
21262126
2127 expect((await waitForInteractionModeButton("Chat")).title).toContain("enter plan mode");
2127 expect((await waitForInteractionModeButton("Build")).title).toContain("enter plan mode");
21282128
21292129 const composerEditor = await waitForComposerEditor();
21302130 composerEditor.focus();
......@@ -2140,7 +2140,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21402140 await vi.waitFor(
21412141 async () => {
21422142 expect((await waitForInteractionModeButton("Plan")).title).toContain(
2143 "return to normal chat mode",
2143 "return to normal build mode",
21442144 );
21452145 },
21462146 { timeout: 8_000, interval: 16 },
......@@ -2157,7 +2157,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21572157
21582158 await vi.waitFor(
21592159 async () => {
2160 expect((await waitForInteractionModeButton("Chat")).title).toContain("enter plan mode");
2160 expect((await waitForInteractionModeButton("Build")).title).toContain("enter plan mode");
21612161 },
21622162 { timeout: 8_000, interval: 16 },
21632163 );
apps/web/src/components/ChatView.tsx+4-4
......@@ -1476,7 +1476,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
14761476 type: "slash-command",
14771477 command: "default",
14781478 label: "/default",
1479 description: "Switch this thread back to normal chat mode",
1479 description: "Switch this thread back to normal build mode",
14801480 },
14811481 ] satisfies ReadonlyArray<Extract<ComposerCommandItem, { type: "slash-command" }>>;
14821482 const query = composerTrigger.query.trim().toLowerCase();
......@@ -4029,7 +4029,7 @@ export default function ChatView({ threadId }: ChatViewProps) {
40294029 <form
40304030 ref={composerFormRef}
40314031 onSubmit={onSend}
4032 className="mx-auto w-full min-w-0 max-w-[52rem]"
4032 className="mx-auto w-full min-w-0 max-w-208"
40334033 data-chat-composer-form="true"
40344034 >
40354035 <div
......@@ -4284,13 +4284,13 @@ export default function ChatView({ threadId }: ChatViewProps) {
42844284 onClick={toggleInteractionMode}
42854285 title={
42864286 interactionMode === "plan"
4287 ? "Plan mode — click to return to normal chat mode"
4287 ? "Plan mode — click to return to normal build mode"
42884288 : "Default mode — click to enter plan mode"
42894289 }
42904290 >
42914291 <BotIcon />
42924292 <span className="sr-only sm:not-sr-only">
4293 {interactionMode === "plan" ? "Plan" : "Chat"}
4293 {interactionMode === "plan" ? "Plan" : "Build"}
42944294 </span>
42954295 </Button>
42964296