From 16aaa37dad3a72a86643fbd912db4fabbc86b73b Mon Sep 17 00:00:00 2001 From: Siddharth Ganesan <33737564+Sg312@users.noreply.github.com> Date: Fri, 15 Aug 2025 18:29:34 -0700 Subject: [PATCH] improvement(agent): enable autolayout, export, copilot (#992) * Enable autolayout, export, and copilot in dev * Updates --- .../components/control-bar/control-bar.tsx | 8 ++++---- .../w/[workflowId]/components/panel/panel.tsx | 19 ++++++++----------- apps/sim/stores/copilot/store.ts | 4 ++-- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx index 954d69f352..166e0195b6 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx @@ -999,14 +999,14 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) { return (
{renderDisconnectionNotice()} - {!isDev && renderToggleButton()} - {isExpanded && !isDev && } - {isExpanded && !isDev && renderAutoLayoutButton()} + {renderToggleButton()} + {isExpanded && } + {isExpanded && renderAutoLayoutButton()} {!isDev && isExpanded && renderDuplicateButton()} {isDev && renderDuplicateButton()} {renderDeleteButton()} {!isDebugging && renderDebugModeToggle()} - {renderPublishButton()} + {isExpanded && renderPublishButton()} {renderDeployButton()} {isDebugging ? renderDebugControlsBar() : renderRunButton()} diff --git a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx index afee4a990d..6fe1b961fb 100644 --- a/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx +++ b/apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx @@ -9,7 +9,6 @@ import { } from '@/components/ui/dropdown-menu' import { ScrollArea } from '@/components/ui/scroll-area' import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip' -import { isDev } from '@/lib/environment' import { useCopilotStore } from '@/stores/copilot/store' import { useChatStore } from '@/stores/panel/chat/store' import { useConsoleStore } from '@/stores/panel/console/store' @@ -305,16 +304,14 @@ export function Panel() { > Console - {!isDev && ( - - )} +