diff --git a/frontend/src/components/thread/tool-views/data-provider-tool/DataProviderEndpointsToolView.tsx b/frontend/src/components/thread/tool-views/data-provider-tool/DataProviderEndpointsToolView.tsx index e496cc06..a1d61394 100644 --- a/frontend/src/components/thread/tool-views/data-provider-tool/DataProviderEndpointsToolView.tsx +++ b/frontend/src/components/thread/tool-views/data-provider-tool/DataProviderEndpointsToolView.tsx @@ -19,6 +19,7 @@ import { cn } from '@/lib/utils'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { extractDataProviderEndpointsData } from './_utils'; +import { ScrollArea } from '@/components/ui/scroll-area'; const PROVIDER_CONFIG = { 'linkedin': { @@ -147,113 +148,115 @@ export function DataProviderEndpointsToolView({ ) : ( -
-
-
- -
- -
-

- {providerConfig.name} -

-

- {endpointCount > 0 ? `${endpointCount} endpoints loaded and ready` : 'Endpoints loaded and ready'} -

-
- - - {actualIsSuccess ? ( - - ) : ( - - )} - {actualIsSuccess ? 'Connected' : 'Failed'} - -
-
-
- - Provider Status - -
-
-
-
-
- - Connection Status - -
- - {actualIsSuccess ? ( - - ) : ( - - )} - {actualIsSuccess ? 'Active' : 'Inactive'} - + +
+
+
+
-
-
-
- - Endpoints Available - -
- - {endpointCount > 0 ? `${endpointCount} endpoints` : 'Ready'} - -
- -
-
-
- - Data Provider - -
- - {serviceName || 'linkedin'} - -
-
- {actualIsSuccess && ( -
-
- - - Provider Ready - -
-

- Data provider endpoints have been loaded successfully and are ready to process requests. +

+

+ {providerConfig.name} +

+

+ {endpointCount > 0 ? `${endpointCount} endpoints loaded and ready` : 'Endpoints loaded and ready'}

- )} + + + {actualIsSuccess ? ( + + ) : ( + + )} + {actualIsSuccess ? 'Connected' : 'Failed'} + +
+
+
+ + Provider Status + +
+
+
+
+
+ + Connection Status + +
+ + {actualIsSuccess ? ( + + ) : ( + + )} + {actualIsSuccess ? 'Active' : 'Inactive'} + +
+ +
+
+
+ + Endpoints Available + +
+ + {endpointCount > 0 ? `${endpointCount} endpoints` : 'Ready'} + +
+ +
+
+
+ + Data Provider + +
+ + {serviceName || 'linkedin'} + +
+
+ {actualIsSuccess && ( +
+
+ + + Provider Ready + +
+

+ Data provider endpoints have been loaded successfully and are ready to process requests. +

+
+ )} +
-
+ )} diff --git a/frontend/src/components/thread/tool-views/data-provider-tool/ExecuteDataProviderCallToolView.tsx b/frontend/src/components/thread/tool-views/data-provider-tool/ExecuteDataProviderCallToolView.tsx index 293ab2e8..9c23b82d 100644 --- a/frontend/src/components/thread/tool-views/data-provider-tool/ExecuteDataProviderCallToolView.tsx +++ b/frontend/src/components/thread/tool-views/data-provider-tool/ExecuteDataProviderCallToolView.tsx @@ -21,6 +21,7 @@ import { cn } from '@/lib/utils'; import { Card, CardContent, CardHeader, CardTitle } from '@/components/ui/card'; import { Badge } from '@/components/ui/badge'; import { extractDataProviderCallData } from './_utils'; +import { ScrollArea } from '@/components/ui/scroll-area'; const PROVIDER_CONFIG = { 'linkedin': { @@ -158,102 +159,104 @@ export function ExecuteDataProviderCallToolView({
) : ( -
-
-
- -
+ +
+
+
+ +
-
-

- {providerConfig.name} -

- {serviceName && ( -

- Service: {serviceName} -

+
+

+ {providerConfig.name} +

+ {serviceName && ( +

+ Service: {serviceName} +

+ )} +
+ + {route && ( + + {route} + )}
- {route && ( - - {route} - - )} -
- - {output && !actualIsSuccess && ( -
-
- - - Execution Failed - -
-

- {output} -

-
- )} - - {payload && ( -
-
- - Call Parameters - -
-
- {Object.entries(payload).map(([key, value]) => ( -
-
-
- - {key} - -
- - {typeof value === 'string' ? `"${value}"` : String(value)} - -
- ))} -
-
- - - Raw JSON - - - -
-
-                      {JSON.stringify(payload, null, 2)}
-                    
+ {output && !actualIsSuccess && ( +
+
+ + + Execution Failed +
-
-
- )} - {!serviceName && !route && !payload && ( -
-
- -
-
- -

- Will be populated when the call is executed... +

+ {output}

-
- )} -
+ )} + + {payload && ( +
+
+ + Call Parameters + +
+
+ {Object.entries(payload).map(([key, value]) => ( +
+
+
+ + {key} + +
+ + {typeof value === 'string' ? `"${value}"` : String(value)} + +
+ ))} +
+
+ + + Raw JSON + + + +
+
+                        {JSON.stringify(payload, null, 2)}
+                      
+
+
+
+ )} + {!serviceName && !route && !payload && ( +
+
+ +
+
+ +

+ Will be populated when the call is executed... +

+
+
+ )} +
+ )}