Skip to content

fix(site): align Agents context popover with design - #31845

Merged
DanielleMaywood merged 2 commits into
mainfrom
fix/agents-context-popover-spacing
Nov 9, 2026
Merged

DanielleMaywood merged 2 commits into
mainfrom
fix/agents-context-popover-spacing

Conversation

@DanielleMaywood

@DanielleMaywood DanielleMaywood commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Align the Coder Agents context popover with the supplied design, including shared section spacing and typography, dynamic MCP tool connectors, and disconnected-server styling.

  • Keep disconnected MCP servers visible with disabled text and a matching warning triangle, without tools.
  • Show connected/total server counts and a failed-server summary with a Manage servers action.
  • Preserve accordion interactions, tooltips, and context refresh behavior.
Image
Design requirements and validation
  • Put accordion padding on the section root, shared by its trigger and content. Collapsed vertical padding is 7px; expanded padding is 12px. Content padding is 12px top, 4px sides, and 8px bottom.
  • Centralize resource row typography, path-label styling, and directory/server layout in the existing feature-local tree module. Preserve ACP and rootless layout behavior; leave normalization and grouping in the indicator.
  • Use 8px between resource groups and between the MCP list and its warning panel. Keep nested tool spacing at 4px.
  • Render curved, theme-aware tool connectors dynamically with CSS, aligned to each tool row midpoint and ending at the last tool.
  • Use Geist 12px/400/18px resource text. Disconnected server names and their warning triangles use the disabled color, and disconnected servers expose no tools.
  • Keep the overall 4px bottom padding, header spacing, and refresh-panel container spacing from the initial design pass. Accordion focus rings sit outside the trigger now that section padding provides space.
  • Validation: frontend formatting, Biome checks, full frontend lint/type checks, all 41 targeted unit tests, diff checks, and make lint/emdash passed. Added stories for six-tool branches, failed servers, and partial connectivity. The new Manage servers test failed before implementation and passed afterward.
  • Later iterations were reviewed in code only at the author’s request: no subagents or visual tools. Earlier visual checks do not validate the final styling. Documentation self-check found no required docs changes for this presentation and diagnostic-display update.

Generated by Coder Agents on behalf of @DanielleMaywood.

@DanielleMaywood
DanielleMaywood temporarily deployed to main November 9, 2026 10:53 — with GitHub Actions Inactive
@DanielleMaywood
DanielleMaywood temporarily deployed to main November 9, 2026 10:53 — with GitHub Actions Inactive
@DanielleMaywood
DanielleMaywood temporarily deployed to main November 9, 2026 11:15 — with GitHub Actions Inactive
@DanielleMaywood
DanielleMaywood marked this pull request as ready for review November 9, 2026 11:16
@DanielleMaywood
DanielleMaywood requested a review from a team as a code owner November 9, 2026 11:16
@DanielleMaywood
DanielleMaywood temporarily deployed to main November 9, 2026 11:16 — with GitHub Actions Inactive
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 9, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-09T11:19:16.675524Z 4068195 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 40681952f0

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +207 to +212
<ContextAlertTitle className="font-normal leading-4.5">
{issues.length} {issues.length === 1 ? "server" : "servers"} not
running:
</ContextAlertTitle>
<ContextAlertDescription className="gap-1 break-words">
<span>{issues.map((issue) => issue.name).join(", ")}</span>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Preserve MCP server failure details

When an MCP server has an excluded, invalid, or oversize status, this specialized rendering discards both issue.status and issue.error and describes every case as “not running.” These are valid resource statuses, and excluded is produced when provider resources exceed snapshot caps, so the new copy can misdiagnose the problem and direct users to server management instead of exposing the actionable reason that the previous generic issue panel showed. Preserve the status and error, or restrict this presentation to connection failures.

AGENTS.md reference: site/AGENTS.md:L11-L11

Useful? React with 👍 / 👎.

@jakehwll jakehwll left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@DanielleMaywood
DanielleMaywood merged commit ae917a6 into main Nov 9, 2026
58 of 61 checks passed
@DanielleMaywood
DanielleMaywood deleted the fix/agents-context-popover-spacing branch November 9, 2026 11:33
@DanielleMaywood
DanielleMaywood temporarily deployed to main November 9, 2026 11:33 — with GitHub Actions Inactive
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 9, 2026

This branch was previously deployed

1 inactive deployment
main — 40681952 Deployed Nov 9, 2026 by DanielleMaywood via cla #252407
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants