From 61f071ae689c0802eea6b9bceafafed56a923df7 Mon Sep 17 00:00:00 2001 From: Anish Sarkar <104695310+AnishSarkar22@users.noreply.github.com> Date: Wed, 17 Jun 2026 00:06:41 +0530 Subject: [PATCH] refactor(web): replace Card component with Alert for messaging channels notification to enhance user experience --- .../components/MessagingChannelsContent.tsx | 23 ++++++++----------- 1 file changed, 9 insertions(+), 14 deletions(-) diff --git a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/MessagingChannelsContent.tsx b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/MessagingChannelsContent.tsx index faa2d00e9..4a3c5e9e7 100644 --- a/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/MessagingChannelsContent.tsx +++ b/surfsense_web/app/dashboard/[search_space_id]/user-settings/components/MessagingChannelsContent.tsx @@ -1,10 +1,11 @@ "use client"; -import { MessageCircle, RefreshCw, ShieldAlert } from "lucide-react"; +import { AlertTriangle, RefreshCw, ShieldAlert } from "lucide-react"; import { useParams } from "next/navigation"; import { QRCodeSVG } from "qrcode.react"; import { useCallback, useEffect, useState } from "react"; import { toast } from "sonner"; +import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { Button } from "@/components/ui/button"; import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card"; import { @@ -403,23 +404,17 @@ export function MessagingChannelsContent() { {isGatewayConfigLoading ? renderGatewaySkeletons() : null} {!isGatewayConfigLoading && gatewayDisabled ? ( - - -
- - Messaging Channels coming soon -
-

+ + + Messaging Channels coming soon + +

Soon you'll be able to connect WhatsApp, Telegram, Slack, and Discord to your SurfSense agent so you can ask questions, route messages to search spaces, and get answers from your knowledge base without leaving your chat app.

-
- -

Pair a chat once, then DM the SurfSense agent like a teammate.

-

Each channel can be routed to the right search space when integrations launch.

-
-
+ + ) : null} {!isGatewayConfigLoading && !gatewayDisabled && !hasEnabledGateway ? (