From 3470036a400c5b914858ac937e72aaa51b878db3 Mon Sep 17 00:00:00 2001 From: Emir Karabeg Date: Tue, 4 Mar 2025 10:34:56 -0800 Subject: [PATCH] improvement(file-structure): standardized components in folders --- .../tool-input/components/{ => code-editor}/code-editor.tsx | 0 .../components/{ => custom-tool-modal}/custom-tool-modal.tsx | 2 +- .../tool-input/components/{ => tool-command}/tool-command.tsx | 0 .../components/sub-block/components/tool-input/tool-input.tsx | 4 ++-- .../{ => history-dropdown-item}/history-dropdown-item.tsx | 0 .../notification-dropdown-item.tsx | 0 app/w/components/control-bar/control-bar.tsx | 4 ++-- 7 files changed, 5 insertions(+), 5 deletions(-) rename app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/{ => code-editor}/code-editor.tsx (100%) rename app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/{ => custom-tool-modal}/custom-tool-modal.tsx (99%) rename app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/{ => tool-command}/tool-command.tsx (100%) rename app/w/components/control-bar/components/{ => history-dropdown-item}/history-dropdown-item.tsx (100%) rename app/w/components/control-bar/components/{ => notification-dropdown-item}/notification-dropdown-item.tsx (100%) diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/code-editor.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/code-editor/code-editor.tsx similarity index 100% rename from app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/code-editor.tsx rename to app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/code-editor/code-editor.tsx diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/custom-tool-modal.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/custom-tool-modal/custom-tool-modal.tsx similarity index 99% rename from app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/custom-tool-modal.tsx rename to app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/custom-tool-modal/custom-tool-modal.tsx index 90b7858bed..41a3d8abe3 100644 --- a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/custom-tool-modal.tsx +++ b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/custom-tool-modal/custom-tool-modal.tsx @@ -14,7 +14,7 @@ import { Label } from '@/components/ui/label' import { TagDropdown, checkTagTrigger } from '@/components/ui/tag-dropdown' import { cn } from '@/lib/utils' import { useCustomToolsStore } from '@/stores/custom-tools/store' -import { CodeEditor } from './code-editor' +import { CodeEditor } from '../code-editor/code-editor' interface CustomToolModalProps { open: boolean diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/tool-command.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/tool-command/tool-command.tsx similarity index 100% rename from app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/tool-command.tsx rename to app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/components/tool-command/tool-command.tsx diff --git a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx index c0d32b8656..006b3a120e 100644 --- a/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx +++ b/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx @@ -25,8 +25,8 @@ import { getAllBlocks } from '@/blocks' import { getTool } from '@/tools' import { useSubBlockValue } from '../../hooks/use-sub-block-value' import { ShortInput } from '../short-input' -import { CustomTool, CustomToolModal } from './components/custom-tool-modal' -import { ToolCommand } from './components/tool-command' +import { CustomTool, CustomToolModal } from './components/custom-tool-modal/custom-tool-modal' +import { ToolCommand } from './components/tool-command/tool-command' interface ToolInputProps { blockId: string diff --git a/app/w/components/control-bar/components/history-dropdown-item.tsx b/app/w/components/control-bar/components/history-dropdown-item/history-dropdown-item.tsx similarity index 100% rename from app/w/components/control-bar/components/history-dropdown-item.tsx rename to app/w/components/control-bar/components/history-dropdown-item/history-dropdown-item.tsx diff --git a/app/w/components/control-bar/components/notification-dropdown-item.tsx b/app/w/components/control-bar/components/notification-dropdown-item/notification-dropdown-item.tsx similarity index 100% rename from app/w/components/control-bar/components/notification-dropdown-item.tsx rename to app/w/components/control-bar/components/notification-dropdown-item/notification-dropdown-item.tsx diff --git a/app/w/components/control-bar/control-bar.tsx b/app/w/components/control-bar/control-bar.tsx index b79ba45ed5..95b769b0be 100644 --- a/app/w/components/control-bar/control-bar.tsx +++ b/app/w/components/control-bar/control-bar.tsx @@ -28,8 +28,8 @@ import { useNotificationStore } from '@/stores/notifications/store' import { useWorkflowRegistry } from '@/stores/workflows/registry/store' import { useWorkflowStore } from '@/stores/workflows/workflow/store' import { useWorkflowExecution } from '../../hooks/use-workflow-execution' -import { HistoryDropdownItem } from './components/history-dropdown-item' -import { NotificationDropdownItem } from './components/notification-dropdown-item' +import { HistoryDropdownItem } from './components/history-dropdown-item/history-dropdown-item' +import { NotificationDropdownItem } from './components/notification-dropdown-item/notification-dropdown-item' /** * Control bar for managing workflows - handles editing, deletion, deployment,