From 8488255d6d9f773a0fcc7a0d30aaf1c9b15e2138 Mon Sep 17 00:00:00 2001 From: Akhilesh Sudhakar <55130408+akhisud3195@users.noreply.github.com> Date: Fri, 15 Aug 2025 15:07:39 +0800 Subject: [PATCH] Change copilot and background panels to distinguish from playground (#204) --- .../app/projects/[projectId]/copilot/app.tsx | 25 +-- .../copilot/components/messages.tsx | 132 +++-------- .../projects/[projectId]/playground/app.tsx | 21 +- .../workflow/components/TopBar.tsx | 210 ++++++++++++++++++ .../[projectId]/workflow/workflow_editor.tsx | 181 +++------------ .../projects/layout/components/app-layout.tsx | 10 +- .../components/common/compose-box-copilot.tsx | 7 +- .../components/common/panel-common.tsx | 40 +++- apps/rowboat/components/ui/textarea.tsx | 2 - 9 files changed, 327 insertions(+), 301 deletions(-) create mode 100644 apps/rowboat/app/projects/[projectId]/workflow/components/TopBar.tsx diff --git a/apps/rowboat/app/projects/[projectId]/copilot/app.tsx b/apps/rowboat/app/projects/[projectId]/copilot/app.tsx index cd50a10e..743f6a55 100644 --- a/apps/rowboat/app/projects/[projectId]/copilot/app.tsx +++ b/apps/rowboat/app/projects/[projectId]/copilot/app.tsx @@ -7,11 +7,11 @@ import { CopilotMessage } from "../../../lib/types/copilot_types"; import { Workflow } from "@/app/lib/types/workflow_types"; import { DataSource } from "@/app/lib/types/datasource_types"; import { z } from "zod"; -import { Action as WorkflowDispatch } from "../workflow/workflow_editor"; +import { Action as WorkflowDispatch } from "@/app/projects/[projectId]/workflow/workflow_editor"; import { Panel } from "@/components/common/panel-common"; import { ComposeBoxCopilot } from "@/components/common/compose-box-copilot"; import { Messages } from "./components/messages"; -import { CopyIcon, CheckIcon, PlusIcon, XIcon, InfoIcon } from "lucide-react"; +import { CopyIcon, CheckIcon, PlusIcon, XIcon, InfoIcon, Sparkles } from "lucide-react"; import { useCopilot } from "./use-copilot"; import { BillingUpgradeModal } from "@/components/common/billing-upgrade-modal"; import { WithStringId } from "@/app/lib/types/types"; @@ -225,7 +225,7 @@ const App = forwardRef<{ handleCopyChat: () => void; handleUserMessage: (message )} -
{responseError}
@@ -322,16 +322,11 @@ export const Copilot = forwardRef<{ handleUserMessage: (message: string) => void variant="copilot" tourTarget="copilot" showWelcome={messages.length === 0} - title={ -