Skip to content

Commit b9dd576

Browse files
committed
Merge branch 'staging' into improvement/mothership-workflow-edit
2 parents 79476dd + 34d210c commit b9dd576

File tree

47 files changed

+137
-1207
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+137
-1207
lines changed

apps/sim/app/api/copilot/checkpoints/revert/route.test.ts

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
304304
loops: {},
305305
parallels: {},
306306
isDeployed: true,
307-
deploymentStatuses: { production: 'deployed' },
308307
},
309308
}
310309

@@ -349,7 +348,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
349348
loops: {},
350349
parallels: {},
351350
isDeployed: true,
352-
deploymentStatuses: { production: 'deployed' },
353351
lastSaved: 1640995200000,
354352
},
355353
},
@@ -370,7 +368,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
370368
loops: {},
371369
parallels: {},
372370
isDeployed: true,
373-
deploymentStatuses: { production: 'deployed' },
374371
lastSaved: 1640995200000,
375372
}),
376373
}
@@ -473,7 +470,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
473470
edges: undefined,
474471
loops: null,
475472
parallels: undefined,
476-
deploymentStatuses: null,
477473
},
478474
}
479475

@@ -508,7 +504,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
508504
loops: {},
509505
parallels: {},
510506
isDeployed: false,
511-
deploymentStatuses: {},
512507
lastSaved: 1640995200000,
513508
})
514509
})
@@ -768,10 +763,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
768763
parallel1: { branches: ['branch1', 'branch2'] },
769764
},
770765
isDeployed: true,
771-
deploymentStatuses: {
772-
production: 'deployed',
773-
staging: 'pending',
774-
},
775766
deployedAt: '2024-01-01T10:00:00.000Z',
776767
},
777768
}
@@ -816,10 +807,6 @@ describe('Copilot Checkpoints Revert API Route', () => {
816807
parallel1: { branches: ['branch1', 'branch2'] },
817808
},
818809
isDeployed: true,
819-
deploymentStatuses: {
820-
production: 'deployed',
821-
staging: 'pending',
822-
},
823810
deployedAt: '2024-01-01T10:00:00.000Z',
824811
lastSaved: 1640995200000,
825812
})

apps/sim/app/api/copilot/checkpoints/revert/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ export async function POST(request: NextRequest) {
8282
loops: checkpointState?.loops || {},
8383
parallels: checkpointState?.parallels || {},
8484
isDeployed: checkpointState?.isDeployed || false,
85-
deploymentStatuses: checkpointState?.deploymentStatuses || {},
8685
lastSaved: Date.now(),
8786
...(checkpointState?.deployedAt &&
8887
checkpointState.deployedAt !== null &&

apps/sim/app/api/workflows/[id]/deployments/[version]/revert/route.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@ export async function POST(
7979
loops: deployedState.loops || {},
8080
parallels: deployedState.parallels || {},
8181
lastSaved: Date.now(),
82-
deploymentStatuses: deployedState.deploymentStatuses || {},
8382
})
8483

8584
if (!saveResult.success) {

apps/sim/app/api/workflows/[id]/route.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
8989
const finalWorkflowData = {
9090
...workflowData,
9191
state: {
92-
deploymentStatuses: {},
9392
blocks: normalizedData.blocks,
9493
edges: normalizedData.edges,
9594
loops: normalizedData.loops,
@@ -115,7 +114,6 @@ export async function GET(request: NextRequest, { params }: { params: Promise<{
115114
const emptyWorkflowData = {
116115
...workflowData,
117116
state: {
118-
deploymentStatuses: {},
119117
blocks: {},
120118
edges: [],
121119
loops: {},

apps/sim/app/templates/components/template-card.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,8 +108,6 @@ function normalizeWorkflowState(input?: any): WorkflowState | null {
108108
lastUpdate: input.lastUpdate,
109109
metadata: input.metadata,
110110
variables: input.variables,
111-
deploymentStatuses: input.deploymentStatuses,
112-
needsRedeployment: input.needsRedeployment,
113111
dragStartPosition: input.dragStartPosition ?? null,
114112
}
115113

apps/sim/app/workspace/[workspaceId]/files/[fileId]/view/loading.tsx

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

apps/sim/app/workspace/[workspaceId]/home/hooks/use-chat.ts

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1407,17 +1407,6 @@ export function useChat(
14071407
const output = tc.result?.output as Record<string, unknown> | undefined
14081408
const deployedWorkflowId = (output?.workflowId as string) ?? undefined
14091409
if (deployedWorkflowId && typeof output?.isDeployed === 'boolean') {
1410-
const isDeployed = output.isDeployed as boolean
1411-
const serverDeployedAt = output.deployedAt
1412-
? new Date(output.deployedAt as string)
1413-
: undefined
1414-
useWorkflowRegistry
1415-
.getState()
1416-
.setDeploymentStatus(
1417-
deployedWorkflowId,
1418-
isDeployed,
1419-
isDeployed ? (serverDeployedAt ?? new Date()) : undefined
1420-
)
14211410
queryClient.invalidateQueries({
14221411
queryKey: deploymentKeys.info(deployedWorkflowId),
14231412
})

apps/sim/app/workspace/[workspaceId]/home/loading.tsx

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

apps/sim/app/workspace/[workspaceId]/task/[taskId]/loading.tsx

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

apps/sim/app/workspace/[workspaceId]/templates/components/template-card.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,6 @@ function normalizeWorkflowState(input?: any): WorkflowState | null {
111111
lastUpdate: input.lastUpdate,
112112
metadata: input.metadata,
113113
variables: input.variables,
114-
deploymentStatuses: input.deploymentStatuses,
115-
needsRedeployment: input.needsRedeployment,
116114
dragStartPosition: input.dragStartPosition ?? null,
117115
}
118116

0 commit comments

Comments
 (0)