From 5c92ff279ebe48cc5ccb04250a7bdf6b4110b9ca Mon Sep 17 00:00:00 2001 From: akhisud3195 Date: Tue, 3 Jun 2025 21:47:31 +0530 Subject: [PATCH] Add CTAs to hosted tools error message for docs and custom servers --- .../tools/components/HostedServers.tsx | 47 +++++++++++++++---- .../tools/components/ToolsConfig.tsx | 2 +- 2 files changed, 39 insertions(+), 10 deletions(-) diff --git a/apps/rowboat/app/projects/[projectId]/tools/components/HostedServers.tsx b/apps/rowboat/app/projects/[projectId]/tools/components/HostedServers.tsx index e4dd0e96..5089abc4 100644 --- a/apps/rowboat/app/projects/[projectId]/tools/components/HostedServers.tsx +++ b/apps/rowboat/app/projects/[projectId]/tools/components/HostedServers.tsx @@ -20,6 +20,7 @@ import { ServerCard, ToolManagementPanel, } from './MCPServersCommon'; +import type { Key } from 'react'; type McpServerType = z.infer; type McpToolType = z.infer['tools'][number]; @@ -90,7 +91,7 @@ const ErrorBanner = ({ onRetry }: { onRetry: () => void }) => (

- Unable to load hosted tools. Please check your connection and try again. If the problem persists, contact us on Discord. + Unable to load hosted tools. Please check your connection and try again. If the problem persists, contact us on Discord.

+ + + ); } diff --git a/apps/rowboat/app/projects/[projectId]/tools/components/ToolsConfig.tsx b/apps/rowboat/app/projects/[projectId]/tools/components/ToolsConfig.tsx index fd5c7072..fa74ff31 100644 --- a/apps/rowboat/app/projects/[projectId]/tools/components/ToolsConfig.tsx +++ b/apps/rowboat/app/projects/[projectId]/tools/components/ToolsConfig.tsx @@ -32,7 +32,7 @@ export function ToolsConfig() { }>
- + setActiveTab(key)} />