Improve dialogue box

This commit is contained in:
Sameer Kankute 2026-07-01 10:40:34 +05:30
parent a60016c16a
commit b962ce9b09
No known key found for this signature in database
2 changed files with 11 additions and 4 deletions

View file

@ -97,7 +97,9 @@ function ConfirmDialog({ action, serverName, isCurrentlyActive, onConfirm, onCan
</h3>
<p className="text-sm text-gray-500 mb-4">
Are you sure you want to {action} <span className="font-medium text-gray-700">&quot;{serverName}&quot;</span>?{" "}
{isApprove ? "This will make it active and available for use." : rejectBody}
{isApprove
? "This will activate the server. The submitting user will see it in their MCP Servers list once approved."
: rejectBody}
</p>
{!isApprove && (
<textarea

View file

@ -469,7 +469,12 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
}
NotificationsManager.success(
isAdmin ? "MCP Server created successfully" : "MCP Server submitted for admin review",
isAdmin
? "MCP Server created successfully"
: {
message: "MCP Server submitted for admin review",
description: "Once an admin approves it, the server will appear in your MCP Servers list.",
},
);
form.resetFields();
setCostConfig({});
@ -622,8 +627,8 @@ const CreateMCPServer: React.FC<CreateMCPServerProps> = ({
>
{!isAdmin && (
<div className="rounded-md bg-blue-50 border border-blue-200 px-4 py-3 text-sm text-blue-800">
Your submission will be sent for admin review before it becomes active. Note: the request must be made
with a team-scoped API key.
Your submission will be sent for admin review. Once approved, the server will appear in your MCP Servers
list. The request must be made with a team-scoped API key.
</div>
)}
<div className="grid grid-cols-1 gap-6">