Skip to content

Commit c6f57a1

Browse files
Rename "Chat" to "Build" in interaction mode toggle (#1769)
Co-authored-by: Julius Marminge <julius0216@outlook.com>
1 parent 340dbbb commit c6f57a1

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

apps/web/src/components/ChatView.browser.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -874,7 +874,7 @@ async function expectComposerActionsContained(): Promise<void> {
874874
}
875875

876876
async 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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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

0 commit comments

Comments
 (0)