From 708a11d9fc1790f290e456cdc50f8882573be597 Mon Sep 17 00:00:00 2001
From: Saumya
Date: Tue, 5 Aug 2025 14:21:13 +0530
Subject: [PATCH] import and types fix
---
.../composio/composio-connections-section.tsx | 5 ++--
.../create-credential-profile.tsx | 29 ++++++-------------
2 files changed, 12 insertions(+), 22 deletions(-)
diff --git a/frontend/src/components/agents/composio/composio-connections-section.tsx b/frontend/src/components/agents/composio/composio-connections-section.tsx
index dc9419e8..bc2e79d7 100644
--- a/frontend/src/components/agents/composio/composio-connections-section.tsx
+++ b/frontend/src/components/agents/composio/composio-connections-section.tsx
@@ -1,6 +1,7 @@
'use client';
import React, { useState, useMemo } from 'react';
+import Link from 'next/link';
import { Card, CardContent, CardHeader } from '@/components/ui/card';
import { Button } from '@/components/ui/button';
import { Input } from '@/components/ui/input';
@@ -452,10 +453,10 @@ export const ComposioConnectionsSection: React.FC
diff --git a/frontend/src/components/thread/tool-views/create-credential-profile/create-credential-profile.tsx b/frontend/src/components/thread/tool-views/create-credential-profile/create-credential-profile.tsx
index d31d2127..67c0d430 100644
--- a/frontend/src/components/thread/tool-views/create-credential-profile/create-credential-profile.tsx
+++ b/frontend/src/components/thread/tool-views/create-credential-profile/create-credential-profile.tsx
@@ -34,7 +34,7 @@ export function CreateCredentialProfileToolView({
}: ToolViewProps) {
const {
- app_slug,
+ toolkit_slug,
profile_name,
display_name,
message,
@@ -53,8 +53,8 @@ export function CreateCredentialProfileToolView({
const toolTitle = getToolTitle(name);
// Fetch app icon using the logo hook
- const { data: iconData } = usePipedreamAppIcon(app_slug || '', {
- enabled: !!app_slug
+ const { data: iconData } = usePipedreamAppIcon(toolkit_slug || '', {
+ enabled: !!toolkit_slug
});
const logoUrl = iconData?.icon_url;
@@ -141,7 +141,7 @@ export function CreateCredentialProfileToolView({
{logoUrl ? (
{
const target = e.target as HTMLImageElement;
@@ -161,7 +161,7 @@ export function CreateCredentialProfileToolView({
{profile.display_name}
- {profile.app_name}
+ {profile.toolkit_name}
@@ -192,24 +192,13 @@ export function CreateCredentialProfileToolView({
- {/* App Slug */}
-
- App Slug
+
+ Toolkit Slug
- {profile.app_slug}
-
-
-
-
-
-
- Created
-
-
- {formatCreatedAt(profile.created_at)}
+ {profile.toolkit_slug}
@@ -242,7 +231,7 @@ export function CreateCredentialProfileToolView({
Profile not created
- {app_slug ? `Failed to create profile for "${app_slug}"` : 'Credential profile creation failed'}
+ {toolkit_slug ? `Failed to create profile for "${toolkit_slug}"` : 'Credential profile creation failed'}