fix(desktop): restore the MCP Servers group label

The compact rows expose raw transport kinds, so restore a text-only group label that identifies them as MCP servers.

Keep screenshot coverage aligned for populated and empty buzz-agent sections.

Co-authored-by: Will Pfleger <pfleger.will@gmail.com>
Signed-off-by: Will Pfleger <pfleger.will@gmail.com>
This commit is contained in:
npub1mn7jgtj4w2pd0g0zeuhxsa6jy6p0rewxz4kujt98my82ahfmp72sxjexk7
2026-07-13 14:38:55 -04:00
parent 0ea6188a6d
commit ec6e3d9d82
2 changed files with 12 additions and 3 deletions

View File

@@ -29,6 +29,15 @@ export function McpServersSection({
variant === "compact" ? "mt-3 pt-2" : "divide-y divide-border/50",
)}
>
<p
className={cn(
"text-xs font-medium text-foreground",
variant === "compact" ? "py-2" : "px-4 py-3",
)}
>
MCP Servers
</p>
{isBuzzAgent && buzzAgentSlot ? buzzAgentSlot : null}
{extensions.length > 0 ? (

View File

@@ -247,10 +247,10 @@ test.describe("config bridge screenshots", () => {
// Advanced runtime fields render directly in the profile panel's flat list.
await expect(panel.getByText("active_provider")).toBeVisible();
// MCP servers render once each, without the removed summary row.
// MCP servers render once each under their group label.
await expect(panel.getByText("developer", { exact: true })).toHaveCount(1);
await expect(panel.getByText("MCP Servers", { exact: true })).toHaveCount(
0,
1,
);
await settleAnimations(panel);
@@ -275,7 +275,7 @@ test.describe("config bridge screenshots", () => {
panel.getByText("No custom servers configured", { exact: true }),
).toBeVisible();
await expect(panel.getByText("MCP Servers", { exact: true })).toHaveCount(
0,
1,
);
});