Skip to content

Commit 16aaa37

Browse files
authored
improvement(agent): enable autolayout, export, copilot (#992)
* Enable autolayout, export, and copilot in dev * Updates
1 parent c6166a9 commit 16aaa37

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/control-bar/control-bar.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -999,14 +999,14 @@ export function ControlBar({ hasValidationErrors = false }: ControlBarProps) {
999999
return (
10001000
<div className='fixed top-4 right-4 z-20 flex items-center gap-1'>
10011001
{renderDisconnectionNotice()}
1002-
{!isDev && renderToggleButton()}
1003-
{isExpanded && !isDev && <ExportControls />}
1004-
{isExpanded && !isDev && renderAutoLayoutButton()}
1002+
{renderToggleButton()}
1003+
{isExpanded && <ExportControls />}
1004+
{isExpanded && renderAutoLayoutButton()}
10051005
{!isDev && isExpanded && renderDuplicateButton()}
10061006
{isDev && renderDuplicateButton()}
10071007
{renderDeleteButton()}
10081008
{!isDebugging && renderDebugModeToggle()}
1009-
{renderPublishButton()}
1009+
{isExpanded && renderPublishButton()}
10101010
{renderDeployButton()}
10111011
{isDebugging ? renderDebugControlsBar() : renderRunButton()}
10121012

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/panel.tsx

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import {
99
} from '@/components/ui/dropdown-menu'
1010
import { ScrollArea } from '@/components/ui/scroll-area'
1111
import { Tooltip, TooltipContent, TooltipTrigger } from '@/components/ui/tooltip'
12-
import { isDev } from '@/lib/environment'
1312
import { useCopilotStore } from '@/stores/copilot/store'
1413
import { useChatStore } from '@/stores/panel/chat/store'
1514
import { useConsoleStore } from '@/stores/panel/console/store'
@@ -305,16 +304,14 @@ export function Panel() {
305304
>
306305
Console
307306
</button>
308-
{!isDev && (
309-
<button
310-
onClick={() => handleTabClick('copilot')}
311-
className={`panel-tab-base inline-flex flex-1 cursor-pointer items-center justify-center rounded-[10px] border border-transparent py-1 font-[450] text-sm outline-none transition-colors duration-200 ${
312-
isOpen && activeTab === 'copilot' ? 'panel-tab-active' : 'panel-tab-inactive'
313-
}`}
314-
>
315-
Copilot
316-
</button>
317-
)}
307+
<button
308+
onClick={() => handleTabClick('copilot')}
309+
className={`panel-tab-base inline-flex flex-1 cursor-pointer items-center justify-center rounded-[10px] border border-transparent py-1 font-[450] text-sm outline-none transition-colors duration-200 ${
310+
isOpen && activeTab === 'copilot' ? 'panel-tab-active' : 'panel-tab-inactive'
311+
}`}
312+
>
313+
Copilot
314+
</button>
318315
<button
319316
onClick={() => handleTabClick('variables')}
320317
className={`panel-tab-base inline-flex flex-1 cursor-pointer items-center justify-center rounded-[10px] border border-transparent py-1 font-[450] text-sm outline-none transition-colors duration-200 ${

apps/sim/stores/copilot/store.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1812,9 +1812,9 @@ async function* parseSSEStream(
18121812

18131813
// Auth/usage assistant response messages for Copilot
18141814
const COPILOT_AUTH_REQUIRED_MESSAGE =
1815-
'*Authorization failed. An API key must be configured in order to use the copilot. You can configure an api key in the settings page on sim.ai*'
1815+
'*Authorization failed. An API key must be configured in order to use the copilot. You can configure an API key at [sim.ai](https://sim.ai).*'
18161816
const COPILOT_USAGE_EXCEEDED_MESSAGE =
1817-
'*Usage limit exceeded, please upgrade your plan to continue using the copilot*'
1817+
'*Usage limit exceeded, please upgrade your plan at [sim.ai](https://sim.ai) to continue using the copilot*'
18181818

18191819
/**
18201820
* Copilot store using the new unified API

0 commit comments

Comments
 (0)