Skip to content

Commit bed695b

Browse files
committed
chore(code): rename "new product" to "new app" in user-facing copy
Per user feedback, "product" sounds too serious — "app" keeps the door open for hackathons and weekend projects. Updated: - Sidebar entry button under PromptInput - Command palette entry ("New app" / "Create new app") - Dialog title + loading curtain ("Create a new app", "Preparing your app") - Inline error copy ("Failed to create app") - Analytics action enum value (new-product → new-app) - Scaffolding prompt phrasing the agent reads Internal identifiers (file/component/store/feature names) keep the existing "product" naming since they're not user-visible — renaming them is churn for no UX gain. Generated-By: PostHog Code Task-Id: 142b4c29-fa5f-4e02-9bc9-de8b22313475
1 parent 762b75b commit bed695b

5 files changed

Lines changed: 10 additions & 12 deletions

File tree

apps/code/src/renderer/features/command/components/CommandMenu.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,11 +200,11 @@ export function CommandMenu({ open, onOpenChange }: CommandMenuProps) {
200200
<Text className="text-[13px]">New task</Text>
201201
</Command.Item>
202202
<Command.Item
203-
value="Create new product"
204-
onSelect={runAndClose(openProductCreationDialog, "new-product")}
203+
value="Create new app"
204+
onSelect={runAndClose(openProductCreationDialog, "new-app")}
205205
>
206206
<RocketIcon className="mr-3 h-3 w-3 text-gray-11" />
207-
<Text className="text-[13px]">New product</Text>
207+
<Text className="text-[13px]">New app</Text>
208208
</Command.Item>
209209
</Command.Group>
210210

apps/code/src/renderer/features/scratchpads/components/ProductCreationDialog.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ export function ProductCreationDialog() {
187187
failedStep: result.failedStep,
188188
error: result.error,
189189
});
190-
setError(result.error ?? "Failed to create product");
190+
setError(result.error ?? "Failed to create app");
191191
setStep("idle");
192192
return;
193193
}
@@ -225,7 +225,7 @@ export function ProductCreationDialog() {
225225
} catch (error) {
226226
log.error("Scratchpad creation threw", { error });
227227
const message =
228-
error instanceof Error ? error.message : "Failed to create product";
228+
error instanceof Error ? error.message : "Failed to create app";
229229
setError(message);
230230
setStep("idle");
231231
}
@@ -238,7 +238,7 @@ export function ProductCreationDialog() {
238238
<Dialog.Title size="4" className="m-0">
239239
<Flex align="center" gap="2">
240240
<RocketIcon className="text-(--accent-11)" />
241-
Preparing your product
241+
Preparing your app
242242
</Flex>
243243
</Dialog.Title>
244244
<PreparingMessages />
@@ -258,7 +258,7 @@ export function ProductCreationDialog() {
258258
<Dialog.Title size="4" className="m-0">
259259
<Flex align="center" gap="2">
260260
<RocketIcon className="text-(--accent-11)" />
261-
Create a new product
261+
Create a new app
262262
</Flex>
263263
</Dialog.Title>
264264

apps/code/src/renderer/features/task-detail/components/TaskInput.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -668,9 +668,7 @@ export function TaskInput({
668668
onClick={openProductCreationDialog}
669669
>
670670
<RocketIcon className="h-3 w-3" />
671-
<Text className="text-[12px]">
672-
Or scaffold a brand-new product
673-
</Text>
671+
<Text className="text-[12px]">Or scaffold a brand-new app</Text>
674672
</Button>
675673
</Flex>
676674
</Flex>

apps/code/src/renderer/sagas/scratchpad/scaffolding-prompt.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function buildScaffoldingPrompt(input: ScaffoldingPromptInput): string {
3333
} = input;
3434

3535
return [
36-
`You are scaffolding a brand-new product called **${productName}** in \`${scratchpadPath}\`. The user has given you the following idea:`,
36+
`You are scaffolding a brand-new app called **${productName}** in \`${scratchpadPath}\`. The user has given you the following idea:`,
3737
"",
3838
"---",
3939
initialIdea,

apps/code/src/shared/types/analytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ type SkillButtonSource = "primary" | "dropdown";
3030
export type CommandMenuAction =
3131
| "home"
3232
| "new-task"
33-
| "new-product"
33+
| "new-app"
3434
| "settings"
3535
| "logout"
3636
| "toggle-theme"

0 commit comments

Comments
 (0)