fix(mcp): remove Figma remote preset and open management (#6399)
* feat(mcp): configure OAuth client names in management * fix(mcp): use a short OAuth callback for Figma * fix(mcp): narrow catalog changes and remove Figma remote * test(mcp): drop unpublished Figma remote compatibility contract * fix(webui): align MCP catalog skeleton with card body
This commit is contained in:
1 parent
6a358a1e91
commit
06f3981962
11 files changed
+108
-52
No files matched your search
@@ -25,22 +25,27 @@ export function CatalogSkeleton({ label, layout, appActionLabel }: {
|
||||
<div className={cn(block, "h-3 w-3 opacity-60")} />
|
||||
</div>
|
||||
) : null}
|
||||
{Array.from({ length: 6 }, (_, index) => (
|
||||
<div key={index} className={cn(
|
||||
{Array.from({ length: 6 }, (_, index) => {
|
||||
const icon = <div className={cn(block, "shrink-0", skills
|
||||
? "h-1.5 w-1.5 rounded-full" : channels ? "h-8 w-8 rounded-[9px]" : "h-9 w-9 rounded-[10px]")} />;
|
||||
const text = <div className="min-w-0 flex-1">
|
||||
<div className="flex h-5 items-center">
|
||||
<div className={cn(block, "h-3.5", index % 2 ? "w-1/2" : "w-2/3")} />
|
||||
</div>
|
||||
{!channels ? <div className="mt-0.5 flex h-5 items-center">
|
||||
<div className={cn(block, "h-3 w-4/5 opacity-60")} />
|
||||
</div> : null}
|
||||
</div>;
|
||||
return <div key={index} className={cn(
|
||||
"flex min-w-0 items-center gap-3",
|
||||
channels ? "settings-list-row py-2.5" : skills ? "px-2 py-3" : "px-3 py-3",
|
||||
appActionLabel && "flex-wrap gap-x-3 gap-y-2",
|
||||
)}>
|
||||
<div className={cn(block, "shrink-0", skills
|
||||
? "h-1.5 w-1.5 rounded-full" : channels ? "h-8 w-8 rounded-[9px]" : "h-9 w-9 rounded-[10px]")} />
|
||||
<div className={cn("min-w-0 flex-1", appActionLabel && "min-w-[8rem] flex-[1_1_8rem]")}>
|
||||
<div className="flex h-5 items-center">
|
||||
<div className={cn(block, "h-3.5", index % 2 ? "w-1/2" : "w-2/3")} />
|
||||
{appActionLabel ? (
|
||||
<div className="flex min-w-0 flex-[1_1_8rem] items-center gap-3">
|
||||
{icon}{text}
|
||||
</div>
|
||||
{!channels ? <div className="mt-0.5 flex h-5 items-center">
|
||||
<div className={cn(block, "h-3 w-4/5 opacity-60")} />
|
||||
</div> : null}
|
||||
</div>
|
||||
) : <>{icon}{text}</>}
|
||||
<div className={cn("flex shrink-0 items-center justify-center",
|
||||
channels && "w-16", skills && "hidden h-[16.5px] w-[92px] justify-end sm:flex",
|
||||
appActionLabel && "ml-auto")}>
|
||||
@@ -50,8 +55,8 @@ export function CatalogSkeleton({ label, layout, appActionLabel }: {
|
||||
</div> : <div className={cn(block, channels ? "h-5 w-[38px] rounded-full"
|
||||
: skills ? "h-3 w-20" : "h-9 w-9 rounded-full")} />}
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>;
|
||||
})}
|
||||
</SkeletonStatus>
|
||||
);
|
||||
}
|
||||
@@ -612,8 +612,14 @@ function McpAppsCatalogRow({
|
||||
return (
|
||||
<article className="min-w-0 rounded-control transition-colors settings-hover">
|
||||
<div className="group flex min-w-0 flex-wrap items-center gap-x-3 gap-y-2 px-3 py-3">
|
||||
<button
|
||||
type="button"
|
||||
aria-label={preset.display_name}
|
||||
onClick={() => openManagement()}
|
||||
className="flex min-w-0 flex-[1_1_8rem] items-center gap-3 rounded-control text-left focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
|
||||
>
|
||||
<McpPresetLogo preset={preset} showBrandLogos={showBrandLogos} />
|
||||
<div className="min-w-[8rem] flex-[1_1_8rem]">
|
||||
<div className="min-w-0 flex-1">
|
||||
<div className="flex min-w-0 items-baseline gap-2">
|
||||
<h3 className="truncate text-[14px] font-semibold leading-5 text-foreground">{preset.display_name}</h3>
|
||||
{showTypeBadge ? (
|
||||
@@ -641,6 +647,7 @@ function McpAppsCatalogRow({
|
||||
) : null}
|
||||
</p>
|
||||
</div>
|
||||
</button>
|
||||
<div className="ml-auto flex shrink-0 items-center gap-1">
|
||||
{oauthFlow ? (
|
||||
<>
|
||||
|
||||
Reference in new issue
Block a user