Skip to content

Commit 57a811e

Browse files
authored
chore: Delete the tutorial (#1656)
1 parent 5bb3bcc commit 57a811e

9 files changed

Lines changed: 136 additions & 989 deletions

File tree

apps/code/src/renderer/components/TourHighlight.tsx

Lines changed: 0 additions & 68 deletions
This file was deleted.

apps/code/src/renderer/features/message-editor/components/PromptInput.tsx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import "./message-editor.css";
22
import type { SessionConfigOption } from "@agentclientprotocol/sdk";
3-
import { TourHighlight } from "@components/TourHighlight";
43
import { ArrowUp, Stop } from "@phosphor-icons/react";
54
import { InputGroup, InputGroupAddon, InputGroupButton } from "@posthog/quill";
65
import { Flex, Text, Tooltip } from "@radix-ui/themes";
@@ -40,8 +39,6 @@ export interface PromptInputProps {
4039
// toolbar slots
4140
modelSelector?: React.ReactElement | null | false;
4241
reasoningSelector?: React.ReactElement | null | false;
43-
// tour hook for the send button (new-task flow)
44-
tourHighlightSubmit?: boolean;
4542
// prompt history provider
4643
getPromptHistory?: () => string[];
4744
// callbacks
@@ -79,7 +76,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
7976
enableCommands = true,
8077
modelSelector,
8178
reasoningSelector,
82-
tourHighlightSubmit = false,
8379
getPromptHistory,
8480
onBeforeSubmit,
8581
onSubmit,
@@ -218,7 +214,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
218214
submitTooltipOverride ??
219215
(submitBlocked ? "Enter a message" : "Send message");
220216

221-
// Render send/stop button (wrapped in TourHighlight when requested)
222217
const submitButton =
223218
isLoading && onCancel ? (
224219
<Tooltip content="Stop">
@@ -247,12 +242,6 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
247242
</Tooltip>
248243
);
249244

250-
const wrappedSubmit = tourHighlightSubmit ? (
251-
<TourHighlight active>{submitButton}</TourHighlight>
252-
) : (
253-
submitButton
254-
);
255-
256245
return (
257246
<Flex direction="column" gap="1">
258247
<InputGroup
@@ -301,7 +290,7 @@ export const PromptInput = forwardRef<EditorHandle, PromptInputProps>(
301290
! bash
302291
</Text>
303292
)}
304-
{wrappedSubmit}
293+
{submitButton}
305294
</InputGroupAddon>
306295
</InputGroup>
307296
</Flex>

0 commit comments

Comments
 (0)