refactor(ui): replace middle-dot separators with clearer hierarchy (#6087)
* refactor(ui): replace middle-dot separators with clearer hierarchy * refactor(ui): use layout instead of punctuation separators
This commit is contained in:
1 parent
d6ddceed99
commit
7cb396788c
82 files changed
+433
-462
No files matched your search
@@ -576,9 +576,7 @@ function McpAppsCatalogRow({
|
||||
`settings.mcp.presetDescriptions.${preset.name}`,
|
||||
preset.description || preset.note || preset.name,
|
||||
);
|
||||
const detail = agentPlugin && preset.requires
|
||||
? `${description} · ${preset.requires}`
|
||||
: description || preset.requires;
|
||||
const detail = description || preset.requires;
|
||||
const manualCallback =
|
||||
oauthFlow?.completion_input === "callback_url" && Boolean(oauthFlow.authorization_url);
|
||||
const callbackInputId = `mcp-oauth-callback-${preset.name}`;
|
||||
@@ -629,6 +627,9 @@ function McpAppsCatalogRow({
|
||||
<span className="truncate">
|
||||
{runtimeFailed ? failureLabel : detail}
|
||||
</span>
|
||||
{!runtimeFailed && agentPlugin && description && preset.requires ? (
|
||||
<span className="min-w-0 truncate">{preset.requires}</span>
|
||||
) : null}
|
||||
</p>
|
||||
</div>
|
||||
<div className="ml-auto flex shrink-0 items-center gap-1">
|
||||
@@ -1431,9 +1432,7 @@ function CliAppReadyPanel({
|
||||
</div>
|
||||
<div className="mt-0.5 flex min-w-0 flex-wrap items-center gap-1.5 text-[12px] text-muted-foreground">
|
||||
<span className="font-mono">@{app.name}</span>
|
||||
<span aria-hidden>·</span>
|
||||
<span className="truncate font-mono">{app.entry_point || app.name}</span>
|
||||
<span aria-hidden>·</span>
|
||||
<span>{app.category}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -535,7 +535,6 @@ function ConnectionPanel({
|
||||
preset.connection_summary && "mt-3 border-t border-border/45 pt-3",
|
||||
)}>
|
||||
<span>{formatTransport(preset.transport)}</span>
|
||||
<span aria-hidden>·</span>
|
||||
<span>{authentication}</span>
|
||||
<div className="ml-auto flex items-center gap-1.5">
|
||||
{preset.docs_url ? (
|
||||
@@ -587,11 +586,11 @@ function ConnectionPanel({
|
||||
const inputId = `mcp-manage-${preset.name}-${field.name}`;
|
||||
return (
|
||||
<label key={field.name} htmlFor={inputId} className="min-w-0">
|
||||
<span className="mb-1.5 flex items-center gap-1 text-[12.5px] font-medium text-muted-foreground">
|
||||
<span className="mb-1.5 flex items-center gap-2 text-[12.5px] font-medium text-muted-foreground">
|
||||
{field.label}
|
||||
{field.configured ? (
|
||||
<span className="font-normal text-emerald-600 dark:text-emerald-300">
|
||||
· {tx("settings.mcp.configured", "Configured")}
|
||||
{tx("settings.mcp.configured", "Configured")}
|
||||
</span>
|
||||
) : null}
|
||||
</span>
|
||||
|
||||
Reference in new issue
Block a user