Skip to content

Commit 807bfed

Browse files
t3dotggclaude
andcommitted
feat: mark Scratch with a dashed chat bubble
The server gives a new Scratch project the lucide message-square-dashed icon in gray, once at create, so a user's own icon choice sticks. The palette action, empty-state button, and mobile row use the same bubble. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
1 parent 693739e commit 807bfed

5 files changed

Lines changed: 23 additions & 7 deletions

File tree

‎apps/mobile/src/features/threads/NewTaskRouteScreen.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
482482
onPress={() => void startScratch()}
483483
leading={
484484
<SymbolView
485-
name="pencil"
485+
name="text.bubble"
486486
size={22}
487487
tintColorClassName="accent-icon-muted"
488488
type="monochrome"
@@ -500,7 +500,7 @@ export function NewTaskRouteScreen({ route }: StaticScreenProps<NewTaskRoutePara
500500
>
501501
<View className="h-7 w-7 items-center justify-center">
502502
<SymbolView
503-
name="pencil"
503+
name="text.bubble"
504504
size={18}
505505
tintColorClassName="accent-icon-muted"
506506
type="monochrome"

‎apps/server/src/server.test.ts‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5167,6 +5167,7 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
51675167
Effect.gen(function* () {
51685168
const fileSystem = yield* FileSystem.FileSystem;
51695169
const created: Array<{ readonly projectId: ProjectId; readonly workspaceRoot: string }> = [];
5170+
const iconUpdates: Array<unknown> = [];
51705171
yield* buildAppUnderTest({
51715172
layers: {
51725173
orchestrationEngine: {
@@ -5178,7 +5179,8 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
51785179
workspaceRoot: command.workspaceRoot,
51795180
});
51805181
}
5181-
return { sequence: created.length };
5182+
if (command.type === "project.meta.update") iconUpdates.push(command.projectIcon);
5183+
return { sequence: created.length + iconUpdates.length };
51825184
}),
51835185
},
51845186
projectionSnapshotQuery: {
@@ -5213,6 +5215,10 @@ it.layer(NodeServices.layer)("server router seam", (it) => {
52135215
assert.equal(created[0]?.workspaceRoot, scratchRoot);
52145216
assert.equal(first.projectId, created[0]?.projectId);
52155217
assert.equal(second.projectId, first.projectId);
5218+
// The icon is set once, at create.
5219+
assert.deepEqual(iconUpdates, [
5220+
{ kind: "lucide", name: "message-square-dashed", color: "gray" },
5221+
]);
52165222
assert.isTrue(yield* fileSystem.exists(scratchRoot));
52175223
}),
52185224
),

‎apps/server/src/ws.ts‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,6 +1962,16 @@ const makeWsRpcLayer = (
19621962
createdAt: yield* nowIso,
19631963
});
19641964
yield* dispatchNormalizedCommand(command);
1965+
// A dashed chat bubble in neutral gray marks Scratch. Set once at
1966+
// create, so a user's own icon choice is never overwritten.
1967+
yield* dispatchNormalizedCommand(
1968+
yield* normalizeDispatchCommand({
1969+
type: "project.meta.update",
1970+
commandId: yield* serverCommandId("scratch-project-icon"),
1971+
projectId,
1972+
projectIcon: { kind: "lucide", name: "message-square-dashed", color: "gray" },
1973+
}),
1974+
);
19651975
return { projectId };
19661976
}).pipe(
19671977
Effect.catch((error) =>

‎apps/web/src/components/CommandPalette.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import {
4747
FileSearchIcon,
4848
FolderIcon,
4949
FolderPlusIcon,
50-
NotepadTextDashedIcon,
50+
MessageSquareDashedIcon,
5151
LinkIcon,
5252
MessageSquareIcon,
5353
MonitorIcon,
@@ -1797,7 +1797,7 @@ function OpenCommandPaletteDialog(props: {
17971797
value: "action:new-scratch-thread",
17981798
searchTerms: ["new thread", "scratch", "no project", "without project", "chat"],
17991799
title: "New thread in Scratch",
1800-
icon: <NotepadTextDashedIcon className={ITEM_ICON_CLASS} />,
1800+
icon: <MessageSquareDashedIcon className={ITEM_ICON_CLASS} />,
18011801
shortcutCommand: "chat.newScratch",
18021802
run: () => startScratchThread(scratchTargetEnvironmentId),
18031803
});

‎apps/web/src/components/NoProjectsHero.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NotepadTextDashedIcon, PlusIcon } from "lucide-react";
1+
import { MessageSquareDashedIcon, PlusIcon } from "lucide-react";
22
import { useCallback } from "react";
33

44
import { openCommandPalette } from "../commandPaletteBus";
@@ -41,7 +41,7 @@ export function NoProjectsHero() {
4141
variant="outline"
4242
onClick={() => void startScratchThread(scratchTargetEnvironmentId)}
4343
>
44-
<NotepadTextDashedIcon className="size-4" />
44+
<MessageSquareDashedIcon className="size-4" />
4545
Start in Scratch
4646
</Button>
4747
)}

0 commit comments

Comments
 (0)