chore(stores): remove unused exports and dead code from zustand stores (#4014)

This commit is contained in:
Waleed
2026-04-07 10:30:13 -07:00
committed by GitHub
parent d5bea5f266
commit 0b439ecda6
8 changed files with 4 additions and 48 deletions

View File

@@ -1,2 +1,2 @@
export { useFolderStore, useIsFolderSelected, useIsWorkflowSelected } from './store'
export type { FolderTreeNode, Workflow, WorkflowFolder } from './types'
export type { FolderTreeNode, WorkflowFolder } from './types'

View File

@@ -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))

View File

@@ -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

View File

@@ -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'

View File

@@ -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'

View File

@@ -4,14 +4,8 @@ export {
consolePersistence,
type ExecutionPointer,
loadExecutionPointer,
normalizeConsoleError,
normalizeConsoleInput,
normalizeConsoleOutput,
safeConsoleStringify,
saveExecutionPointer,
TERMINAL_CONSOLE_LIMITS,
trimConsoleEntries,
trimWorkflowConsoleEntries,
useConsoleEntry,
useTerminalConsoleStore,
useWorkflowConsoleEntries,

View File

@@ -1,5 +1,4 @@
export {
getDefaultVariablesDimensions,
getVariablesPosition,
MAX_VARIABLES_HEIGHT,
MAX_VARIABLES_WIDTH,

View File

@@ -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.
@@ -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,
})