Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion apps/sim/stores/folders/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export { useFolderStore, useIsFolderSelected, useIsWorkflowSelected } from './store'
export type { FolderTreeNode, Workflow, WorkflowFolder } from './types'
export type { FolderTreeNode, WorkflowFolder } from './types'
3 changes: 0 additions & 3 deletions apps/sim/stores/folders/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,3 @@ export const useIsWorkflowSelected = (workflowId: string) =>

export const useIsFolderSelected = (folderId: string) =>
useFolderStore((state) => state.selectedFolders.has(folderId))

export const useIsTaskSelected = (taskId: string) =>
useFolderStore((state) => state.selectedTasks.has(taskId))
10 changes: 0 additions & 10 deletions apps/sim/stores/folders/types.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,3 @@
export interface Workflow {
id: string
folderId?: string | null
name?: string
description?: string
userId?: string
workspaceId?: string
[key: string]: any // For additional properties
}

export interface WorkflowFolder {
id: string
name: string
Expand Down
6 changes: 1 addition & 5 deletions apps/sim/stores/notifications/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
export { useNotificationStore } from './store'
export type {
AddNotificationParams,
Notification,
NotificationAction,
} from './types'
export type { Notification, NotificationAction } from './types'
export { sendMothershipMessage } from './utils'
10 changes: 1 addition & 9 deletions apps/sim/stores/terminal/console/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,4 @@ export {
} from './storage'
export { useConsoleEntry, useTerminalConsoleStore, useWorkflowConsoleEntries } from './store'
export type { ConsoleEntry, ConsoleStore, ConsoleUpdate } from './types'
export {
normalizeConsoleError,
normalizeConsoleInput,
normalizeConsoleOutput,
safeConsoleStringify,
TERMINAL_CONSOLE_LIMITS,
trimConsoleEntries,
trimWorkflowConsoleEntries,
} from './utils'
export { safeConsoleStringify } from './utils'
6 changes: 0 additions & 6 deletions apps/sim/stores/terminal/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,8 @@ export {
consolePersistence,
type ExecutionPointer,
loadExecutionPointer,
normalizeConsoleError,
normalizeConsoleInput,
normalizeConsoleOutput,
safeConsoleStringify,
saveExecutionPointer,
TERMINAL_CONSOLE_LIMITS,
trimConsoleEntries,
trimWorkflowConsoleEntries,
useConsoleEntry,
useTerminalConsoleStore,
useWorkflowConsoleEntries,
Expand Down
1 change: 0 additions & 1 deletion apps/sim/stores/variables/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export {
getDefaultVariablesDimensions,
getVariablesPosition,
MAX_VARIABLES_HEIGHT,
MAX_VARIABLES_WIDTH,
Expand Down
14 changes: 1 addition & 13 deletions apps/sim/stores/variables/modal.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
import { create } from 'zustand'
import { devtools, persist } from 'zustand/middleware'
import type {
VariablesDimensions,
VariablesModalStore,
VariablesPosition,
} from '@/stores/variables/types'
import type { VariablesModalStore, VariablesPosition } from '@/stores/variables/types'

/**
* Floating variables modal default dimensions.
Expand Down Expand Up @@ -135,11 +131,3 @@ export const useVariablesModalStore = create<VariablesModalStore>()(
{ name: 'variables-modal-store' }
)
)

/**
* Get default floating variables modal dimensions.
*/
export const getDefaultVariablesDimensions = (): VariablesDimensions => ({
width: DEFAULT_WIDTH,
height: DEFAULT_HEIGHT,
})
Loading