diff --git a/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx b/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx index 37d898b78b9..08ea8b68e9e 100644 --- a/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx +++ b/packages/twenty-front/src/pages/settings/ai/components/SettingsToolIcon.tsx @@ -19,10 +19,6 @@ import { ThemeContext, themeCssVariables } from 'twenty-ui/theme-constants'; type ApplicationInfo = { name: string; -}; - -type MarketplaceAppInfo = { - icon: string; logo?: string | null; }; @@ -31,7 +27,6 @@ type SettingsToolIconProps = { toolName?: string; objectName?: string; application?: ApplicationInfo; - marketplaceApp?: MarketplaceAppInfo; }; const getOperationIcon = (toolName: string): IconComponent | null => { @@ -90,33 +85,15 @@ export const SettingsToolIcon = ({ toolName, objectName, application, - marketplaceApp, }: SettingsToolIconProps) => { const { getIcon } = useIcons(); const { theme } = useContext(ThemeContext); const { objectMetadataItems } = useObjectMetadataItems(); - // Custom tools: application/marketplace icons - if (isDefined(application) && isDefined(marketplaceApp?.logo)) { - return ( - - ); - } - - if (isDefined(marketplaceApp)) { - const MarketplaceIcon = getIcon(marketplaceApp.icon); - return ; - } - if (isDefined(application)) { return ( { findManyApplications: Array<{ id: string; name: string; - universalIdentifier: string; logo?: string | null; }>; }>(FIND_MANY_APPLICATIONS_FOR_TOOL_TABLE); - const { data: marketplaceAppsData } = useQuery<{ - findManyMarketplaceApps: Array<{ - id: string; - universalIdentifier: string; - icon: string; - logo?: string | null; - }>; - }>(FIND_MANY_MARKETPLACE_APPS_FOR_TOOL_TABLE); const { t } = useLingui(); const [searchTerm, setSearchTerm] = useState(''); const [showCustomTools, setShowCustomTools] = useState(true); @@ -166,11 +145,6 @@ export const SettingsToolsTable = () => { application, ]), ); - const marketplaceAppByUniversalIdentifier = new Map( - (marketplaceAppsData?.findManyMarketplaceApps ?? []).map( - (marketplaceApp) => [marketplaceApp.universalIdentifier, marketplaceApp], - ), - ); const filteredTools = allTools .filter((item) => { @@ -275,12 +249,6 @@ export const SettingsToolsTable = () => { const application = isDefined(item.applicationId) ? applicationById.get(item.applicationId) : undefined; - const marketplaceApp = isDefined(application) - ? marketplaceAppByUniversalIdentifier.get( - application.universalIdentifier, - ) - : undefined; - return ( { toolName={item.name} objectName={item.objectName ?? undefined} application={application} - marketplaceApp={marketplaceApp} /> } name={item.name}