mirror of
https://github.com/block/buzz.git
synced 2026-10-31 14:31:02 +00:00
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:
parent
0ea6188a6d
commit
ec6e3d9d82
@@ -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 ? (
|
||||
|
||||
@@ -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,
|
||||
);
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user