From 43f71e1b096452fa80b0bf8cfc4934733ae6f825 Mon Sep 17 00:00:00 2001 From: Saumya Date: Thu, 17 Jul 2025 12:33:37 +0530 Subject: [PATCH] fix import errors --- .../[agentId]/workflow/[workflowId]/page.tsx | 2 +- .../_components/category-sidebar.tsx | 71 ------------------- .../_components/connected-apps-section.tsx | 65 ----------------- .../agents/pipedream/_components/index.ts | 2 - 4 files changed, 1 insertion(+), 139 deletions(-) delete mode 100644 frontend/src/components/agents/pipedream/_components/category-sidebar.tsx delete mode 100644 frontend/src/components/agents/pipedream/_components/connected-apps-section.tsx diff --git a/frontend/src/app/(dashboard)/agents/config/[agentId]/workflow/[workflowId]/page.tsx b/frontend/src/app/(dashboard)/agents/config/[agentId]/workflow/[workflowId]/page.tsx index b0656146..ca50bd6b 100644 --- a/frontend/src/app/(dashboard)/agents/config/[agentId]/workflow/[workflowId]/page.tsx +++ b/frontend/src/app/(dashboard)/agents/config/[agentId]/workflow/[workflowId]/page.tsx @@ -20,7 +20,7 @@ import { useCreateAgentWorkflow, useUpdateAgentWorkflow, useAgentWorkflows } fro import { CreateWorkflowRequest, UpdateWorkflowRequest } from '@/hooks/react-query/agents/workflow-utils'; import { useAgentTools } from '@/hooks/react-query/agents/use-agent-tools'; import { ConditionalWorkflowBuilder, ConditionalStep } from '@/components/agents/workflows/conditional-workflow-builder'; -import { WorkflowBuilder } from '@/components/workflows/react-flow/workflow-builder'; +import { WorkflowBuilder } from '@/components/workflows/ui/workflow-builder'; const convertToNestedJSON = (steps: ConditionalStep[]): any[] => { let globalOrder = 1; diff --git a/frontend/src/components/agents/pipedream/_components/category-sidebar.tsx b/frontend/src/components/agents/pipedream/_components/category-sidebar.tsx deleted file mode 100644 index 2acca71f..00000000 --- a/frontend/src/components/agents/pipedream/_components/category-sidebar.tsx +++ /dev/null @@ -1,71 +0,0 @@ -import React from 'react'; -import { Button } from '@/components/ui/button'; -import { ChevronRight } from 'lucide-react'; -import { cn } from '@/lib/utils'; -import { getCategoryEmoji, getAppCategoryCount } from '../utils'; -import type { CategorySidebarProps } from '../types'; - -export const CategorySidebar: React.FC = ({ - isCollapsed, - onToggle, - categories, - selectedCategory, - onCategorySelect, - allApps -}) => { - return ( -
-
-
-
-
-

Categories

-
-
- -
-
- -
- {categories.map((category) => { - const isActive = selectedCategory === category; - const emoji = getCategoryEmoji(category); - return ( - - ); - })} -
-
- ); -}; \ No newline at end of file diff --git a/frontend/src/components/agents/pipedream/_components/connected-apps-section.tsx b/frontend/src/components/agents/pipedream/_components/connected-apps-section.tsx deleted file mode 100644 index f50ab533..00000000 --- a/frontend/src/components/agents/pipedream/_components/connected-apps-section.tsx +++ /dev/null @@ -1,65 +0,0 @@ -import React from 'react'; -import { Badge } from '@/components/ui/badge'; -import { User } from 'lucide-react'; -import type { ConnectedAppsSectionProps } from '../types'; -import { AppCard } from './app-card'; - - -export const ConnectedAppsSection: React.FC = ({ - connectedApps, - showAgentSelector, - currentAgentId, - agent, - agentPipedreamProfiles = [], - mode = 'full', - onAppSelected, - onConnectApp, - onConfigureTools, - onCategorySelect -}) => { - const getSectionTitle = () => { - if (showAgentSelector && currentAgentId && agent) { - return 'Available Connections'; - } - return mode === 'profile-only' ? 'Connected Accounts' : 'My Connections'; - }; - - const getUsedProfilesCount = () => { - return agentPipedreamProfiles.length; - }; - - return ( -
-
- -

- {getSectionTitle()} -

- - {connectedApps.length} connected - - {showAgentSelector && currentAgentId && getUsedProfilesCount() > 0 && ( - - {getUsedProfilesCount()} in use - - )} -
-
- {connectedApps.map((app) => ( - - ))} -
-
- ); -}; \ No newline at end of file diff --git a/frontend/src/components/agents/pipedream/_components/index.ts b/frontend/src/components/agents/pipedream/_components/index.ts index 56a9d678..07c790ff 100644 --- a/frontend/src/components/agents/pipedream/_components/index.ts +++ b/frontend/src/components/agents/pipedream/_components/index.ts @@ -1,7 +1,5 @@ export { AppCard } from './app-card'; -export { CategorySidebar } from './category-sidebar'; export { PipedreamHeader } from './pipedream-header'; -export { ConnectedAppsSection } from './connected-apps-section'; export { AppsGrid } from './apps-grid'; export { EmptyState } from './empty-state'; export { PaginationControls } from './pagination-controls'; \ No newline at end of file