Skip to content

Commit 2bddd7d

Browse files
kewl
1 parent 37c0b1a commit 2bddd7d

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
@@ -866,7 +866,7 @@ async function expectComposerActionsContained(): Promise<void> {
866866
}
867867

868868
async function waitForInteractionModeButton(
869-
expectedLabel: "Code" | "Plan",
869+
expectedLabel: "Build" | "Plan",
870870
): Promise<HTMLButtonElement> {
871871
return waitForElement(
872872
() =>
@@ -2096,7 +2096,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
20962096
});
20972097

20982098
try {
2099-
const initialModeButton = await waitForInteractionModeButton("Code");
2099+
const initialModeButton = await waitForInteractionModeButton("Build");
21002100
expect(initialModeButton.title).toContain("enter plan mode");
21012101

21022102
window.dispatchEvent(
@@ -2109,7 +2109,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21092109
);
21102110
await waitForLayout();
21112111

2112-
expect((await waitForInteractionModeButton("Code")).title).toContain("enter plan mode");
2112+
expect((await waitForInteractionModeButton("Build")).title).toContain("enter plan mode");
21132113

21142114
const composerEditor = await waitForComposerEditor();
21152115
composerEditor.focus();
@@ -2125,7 +2125,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21252125
await vi.waitFor(
21262126
async () => {
21272127
expect((await waitForInteractionModeButton("Plan")).title).toContain(
2128-
"return to normal code mode",
2128+
"return to normal build mode",
21292129
);
21302130
},
21312131
{ timeout: 8_000, interval: 16 },
@@ -2142,7 +2142,7 @@ describe("ChatView timeline estimator parity (full app)", () => {
21422142

21432143
await vi.waitFor(
21442144
async () => {
2145-
expect((await waitForInteractionModeButton("Code")).title).toContain("enter plan mode");
2145+
expect((await waitForInteractionModeButton("Build")).title).toContain("enter plan mode");
21462146
},
21472147
{ timeout: 8_000, interval: 16 },
21482148
);

‎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 code 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 code 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" : "Code"}
4293+
{interactionMode === "plan" ? "Plan" : "Build"}
42944294
</span>
42954295
</Button>
42964296

0 commit comments

Comments
 (0)