Skip to content

Commit 602a3c2

Browse files
committed
refactor(action-bar): renamed to workflow controls
1 parent 9dfd5c4 commit 602a3c2

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/index.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export { ActionBar } from './action-bar'
21
export { BlockMenu } from './block-menu'
32
export { CanvasMenu } from './canvas-menu'
43
export { CommandList } from './command-list/command-list'
@@ -11,4 +10,5 @@ export { SubflowNodeComponent } from './subflows/subflow-node'
1110
export { Terminal } from './terminal/terminal'
1211
export { WandPromptBar } from './wand-prompt-bar/wand-prompt-bar'
1312
export { WorkflowBlock } from './workflow-block/workflow-block'
13+
export { WorkflowControls } from './workflow-controls'
1414
export { WorkflowEdge } from './workflow-edge/workflow-edge'
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { WorkflowControls } from './workflow-controls'

apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/action-bar.tsx renamed to apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/workflow-controls.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ import { useTerminalStore } from '@/stores/terminal'
3131
import { useUndoRedoStore } from '@/stores/undo-redo'
3232
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
3333

34-
const logger = createLogger('ActionBar')
34+
const logger = createLogger('WorkflowControls')
3535

36-
export function ActionBar() {
36+
export function WorkflowControls() {
3737
const reactFlowInstance = useReactFlow()
3838
const { fitViewToBounds } = useCanvasViewport(reactFlowInstance)
3939
const { mode, setMode } = useCanvasModeStore()
4040
const { undo, redo } = useCollaborativeWorkflow()
41-
const showActionBar = useGeneralStore((s) => s.showActionBar)
41+
const showWorkflowControls = useGeneralStore((s) => s.showActionBar)
4242
const updateSetting = useUpdateGeneralSetting()
4343
const isTerminalResizing = useTerminalStore((state) => state.isResizing)
4444

@@ -75,13 +75,13 @@ export function ActionBar() {
7575
try {
7676
await updateSetting.mutateAsync({ key: 'showActionBar', value: false })
7777
} catch (error) {
78-
logger.error('Failed to hide action bar', error)
78+
logger.error('Failed to hide workflow controls', error)
7979
} finally {
8080
setContextMenu(null)
8181
}
8282
}
8383

84-
if (!showActionBar) {
84+
if (!showWorkflowControls) {
8585
return null
8686
}
8787

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ import {
3131
SubflowNodeComponent,
3232
Terminal,
3333
} from '@/app/workspace/[workspaceId]/w/[workflowId]/components'
34-
import { ActionBar } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/action-bar/action-bar'
3534
import { BlockMenu } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/block-menu'
3635
import { CanvasMenu } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/canvas-menu'
3736
import { Cursors } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/cursors/cursors'
@@ -40,6 +39,7 @@ import { NoteBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/componen
4039
import type { SubflowNodeData } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/subflows/subflow-node'
4140
import { TrainingModal } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/training-modal/training-modal'
4241
import { WorkflowBlock } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-block/workflow-block'
42+
import { WorkflowControls } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-controls/workflow-controls'
4343
import { WorkflowEdge } from '@/app/workspace/[workspaceId]/w/[workflowId]/components/workflow-edge/workflow-edge'
4444
import {
4545
clearDragHighlights,
@@ -3330,7 +3330,7 @@ const WorkflowContent = React.memo(() => {
33303330

33313331
<Cursors />
33323332

3333-
<ActionBar />
3333+
<WorkflowControls />
33343334

33353335
<Suspense fallback={null}>
33363336
<LazyChat />

0 commit comments

Comments
 (0)