Skip to content

Commit ead38ed

Browse files
committed
improvement(naming): resolve rename ambiguities and stale file references from review
1 parent d5e45da commit ead38ed

76 files changed

Lines changed: 75 additions & 73 deletions

File tree

Some content is hidden

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

‎apps/sim/app/api/files/authorization.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const { mockFindWorkspaceFileVersionKeys } = vi.hoisted(() => ({
2929
mockFindWorkspaceFileVersionKeys: vi.fn(),
3030
}))
3131

32-
vi.mock('@/lib/uploads/contexts/workspace/file-versions', () => ({
32+
vi.mock('@/lib/uploads/contexts/workspace/file-version-store', () => ({
3333
findWorkspaceFileVersionKeys: mockFindWorkspaceFileVersionKeys,
3434
}))
3535

‎apps/sim/app/api/files/authorization.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
import { type KnowledgeReadAccess, knowledgeReadAccessBatches } from '@/lib/knowledge/read-access'
1414
import { getFileMetadata } from '@/lib/uploads'
1515
import type { StorageContext } from '@/lib/uploads/config'
16-
import { findWorkspaceFileVersionKeys } from '@/lib/uploads/contexts/workspace/file-versions'
16+
import { findWorkspaceFileVersionKeys } from '@/lib/uploads/contexts/workspace/file-version-store'
1717
import type { StorageConfig } from '@/lib/uploads/core/storage-client'
1818
import { getFileMetadataByKey } from '@/lib/uploads/server/metadata'
1919
import { isWorkspaceScopedContext } from '@/lib/uploads/shared/types'

‎apps/sim/app/api/superuser/import-workflow/route.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { loadCopilotChatMessages } from '@/lib/mothership/chat/lifecycle'
1313
import { appendCopilotChatMessages } from '@/lib/mothership/chat/messages-store'
1414
import { verifyEffectiveSuperUser } from '@/lib/permissions/super-user'
1515
import { parseWorkflowJson } from '@/lib/workflows/operations/import-export'
16-
import { createWorkflowWithState } from '@/lib/workflows/orchestration/lifecycle'
16+
import { createWorkflowWithState } from '@/lib/workflows/orchestration/workflow-lifecycle'
1717
import { loadWorkflowFromNormalizedTables } from '@/lib/workflows/persistence/utils'
1818
import { sanitizeForExport } from '@/lib/workflows/sanitization/json-sanitizer'
1919

‎apps/sim/app/api/v1/admin/workflows/import/route.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ import { parseRequest } from '@/lib/api/server'
3131
import { asOrchestrationError } from '@/lib/core/orchestration/types'
3232
import { withRouteHandler } from '@/lib/core/utils/with-route-handler'
3333
import { parseWorkflowJson } from '@/lib/workflows/operations/import-export'
34-
import { createWorkflowWithState } from '@/lib/workflows/orchestration/lifecycle'
34+
import { createWorkflowWithState } from '@/lib/workflows/orchestration/workflow-lifecycle'
3535
import { prepareWorkflowStateForPersistence } from '@/lib/workflows/persistence/prepare-state'
3636
import { normalizeImportedVariables } from '@/lib/workflows/variables/parse'
3737
import { withAdminAuth } from '@/app/api/v1/admin/middleware'

‎apps/sim/app/api/v1/admin/workspaces/[id]/import/route.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {
4545
extractWorkflowsFromZip,
4646
parseWorkflowJson,
4747
} from '@/lib/workflows/operations/import-export'
48-
import { createWorkflowWithState } from '@/lib/workflows/orchestration/lifecycle'
48+
import { createWorkflowWithState } from '@/lib/workflows/orchestration/workflow-lifecycle'
4949
import { prepareWorkflowStateForPersistence } from '@/lib/workflows/persistence/prepare-state'
5050
import { normalizeImportedVariables } from '@/lib/workflows/variables/parse'
5151
import { getWorkspaceWithOwner } from '@/lib/workspaces/permissions/utils'

‎apps/sim/app/api/v2/files/utils.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { describe, expect, it, vi } from 'vitest'
33

44
vi.mock('@/lib/users/queries', () => usersQueriesMock)
55

6-
import type { WorkspaceFileVersionRecord } from '@/lib/uploads/contexts/workspace/file-versions'
6+
import type { WorkspaceFileVersionRecord } from '@/lib/uploads/contexts/workspace/file-version-store'
77
import { toV2FileVersions } from '@/app/api/v2/files/utils'
88

99
const { mockFindUserEmailsByIds } = usersQueriesMockFns

‎apps/sim/app/api/v2/files/utils.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { buildFolderPath } from '@/lib/folders/paths'
55
import { workspaceResourceWebUrl } from '@/lib/resources'
66
import type { WorkspaceFileRecord } from '@/lib/uploads/contexts/workspace'
77
import { workspaceFileVfsPath } from '@/lib/uploads/contexts/workspace/file-manager'
8-
import type { WorkspaceFileVersionRecord } from '@/lib/uploads/contexts/workspace/file-versions'
8+
import type { WorkspaceFileVersionRecord } from '@/lib/uploads/contexts/workspace/file-version-store'
99
import {
1010
findUserEmailsByIds,
1111
getUserEmailsByIds,

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,10 @@ import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
8585
import { usePermissionConfig } from '@/hooks/use-permission-config'
8686
import { useSettingsNavigation } from '@/hooks/use-settings-navigation'
8787
import { useChatStore } from '@/stores/chat/store'
88+
import { useVariablesModalStore } from '@/stores/modals/variables/store'
8889
import { useMothershipDraftsStore } from '@/stores/mothership-drafts/store'
8990
import type { ChatContext, PanelTab } from '@/stores/panel'
9091
import { usePanelStore } from '@/stores/panel'
91-
import { useVariablesModalStore } from '@/stores/variables/modal/store'
9292
import { useVariablesStore } from '@/stores/variables/store'
9393
import { useWorkflowDiffStore } from '@/stores/workflow-diff/store'
9494
import { captureBaselineSnapshot } from '@/stores/workflow-diff/utils'

‎apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/search-replace/workflow-search-replace.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ import { isWorkflowEffectivelyLocked } from '@/hooks/queries/utils/folder-tree'
5757
import { useWorkflowMap } from '@/hooks/queries/workflows'
5858
import { useCollaborativeWorkflow } from '@/hooks/use-collaborative-workflow'
5959
import { useChatStore } from '@/stores/chat/store'
60+
import { useVariablesModalStore } from '@/stores/modals/variables/store'
6061
import { usePanelEditorSearchStore, usePanelEditorStore, usePanelStore } from '@/stores/panel'
6162
import type { ActiveSearchTarget } from '@/stores/panel/editor/store'
62-
import { useVariablesModalStore } from '@/stores/variables/modal/store'
6363
import { useWorkflowSearchReplaceStore } from '@/stores/workflow-search-replace/store'
6464
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'
6565
import { useSubBlockStore } from '@/stores/workflows/subblock/store'

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import {
3434
MIN_VARIABLES_HEIGHT,
3535
MIN_VARIABLES_WIDTH,
3636
useVariablesModalStore,
37-
} from '@/stores/variables/modal/store'
37+
} from '@/stores/modals/variables/store'
3838
import { useVariablesStore } from '@/stores/variables/store'
3939
import type { Variable } from '@/stores/variables/types'
4040
import { useWorkflowRegistry } from '@/stores/workflows/registry/store'

0 commit comments

Comments
 (0)