diff --git a/apps/web/components/chat/message/agent-message.tsx b/apps/web/components/chat/message/agent-message.tsx index ba437f6e..447140cd 100644 --- a/apps/web/components/chat/message/agent-message.tsx +++ b/apps/web/components/chat/message/agent-message.tsx @@ -704,7 +704,7 @@ function KnowledgeBaseConnectAction({
{connectionState === "starting" || connectionState === "waiting" ? (
-
+
{connectionState === "starting" ? "Opening…" : "Waiting…"}
@@ -714,7 +714,7 @@ function KnowledgeBaseConnectAction({ onClick={() => stopWaiting("Connection cancelled. You can try again.") } - className="h-8 rounded-md px-2 text-[12px] font-medium text-[#737373] transition-colors hover:bg-white/[0.05] hover:text-[#FAFAFA]" + className="h-9 rounded-full px-3 text-[12px] font-medium text-[#737373] transition-colors hover:bg-[#0D121A] hover:text-[#FAFAFA]" > Cancel @@ -725,7 +725,7 @@ function KnowledgeBaseConnectAction({ type="button" disabled={disabled} onClick={() => void connect(true)} - className="inline-flex h-8 items-center rounded-md bg-[#4BA0FA] px-3 text-[14px] font-medium text-black transition-colors hover:bg-[#4BA0FA]/90 disabled:cursor-not-allowed disabled:opacity-50" + className="inline-flex h-9 min-w-[116px] items-center justify-center rounded-full bg-[#0D121A] px-5 text-[14px] font-medium text-[#FAFAFA] shadow-[inset_1.5px_1.5px_4.5px_rgba(0,0,0,0.7)] transition-opacity hover:opacity-80 disabled:cursor-not-allowed disabled:opacity-50" > {connectionState === "error" ? "Try again" : buttonLabel} @@ -798,33 +798,42 @@ function NovaConnectorCard({ : displayedConnector.description return ( -
-
- -
-

- {displayedConnector.name ?? "Knowledge base"} -

- {statusText ? ( -

- {statusText} -

- ) : null} +
+
+
+
+ {isUpgrade ? ( + + Pro + + ) : null} +
+
+

+ {displayedConnector.name ?? "Knowledge base"} +

+ {statusText ? ( +

+ {statusText} +

+ ) : null} +
+
+ {isUpgrade ? ( +
+ Upgrade +
+ ) : ( + onConnectionsChanged?.()} + onPendingChange={onConnectionPendingChange} + autoStart={autoStartConnection} + attemptKey={connectionAttemptKey} + /> + )}
- {isUpgrade ? ( - - Pro - - ) : ( - onConnectionsChanged?.()} - onPendingChange={onConnectionPendingChange} - autoStart={autoStartConnection} - attemptKey={connectionAttemptKey} - /> - )}
) }