Skip to content

fix(ui): show each MCP server's Agents once and animate target pickers - #952

Merged
runkids merged 4 commits into
mainfrom
runkids/mcp-agent-logos-once
Nov 18, 2026
Merged

runkids merged 4 commits into
mainfrom
runkids/mcp-agent-logos-once

Conversation

@runkids

@runkids runkids commented Nov 18, 2026 •

Copy link
Copy Markdown
Owner

Type

  • Bug fix
  • Small improvement (docs, typo, minor refactor)
  • Feature proposal (proposals/ only — see CONTRIBUTING.md)
  • Approved feature or large change (the linked issue has the approved label)

Linked Issue

None. The maintainer asked for this directly.

What changed

  • MCP server rows showed each Agent twice: as a logo stack in the n/N pill and as chips under the name. The chips are gone. The pill keeps its stack, as plugin rows do, and opening it shows the toggles with each Agent's name.
  • Pi's exposure mode (through code, direct, …) moves from the chip to a tag beside the Pi toggle, with the full wording on hover. Switch-only rows don't show it.
  • The toggles of MCP rows, MCP Defaults, plugin rows and a project's MCP Targets now grow in and shrink away with Reveal instead of popping in. The pill chevrons rotate, as on the hooks pages.
  • The reduced-motion reset named only .ss-collapse, which .ss-collapse.grow outranks, so every Reveal fold still animated for people who asked for less motion. The reset now names .grow and .grow.shut too.
  • A project's MCP Targets is laid out like the global MCP Defaults: the setting and its pill on one row, the toggles below. The "Same as global / Choose for this project" control is gone. While the project inherits, the global targets show ticked, and the first tick starts the project's own list from them. A "Back to global" link returns, still behind the confirm dialog. Keys that lost their only caller (mcp.projects.ownTargets, targetsHint, noGlobalTargets) are removed from all 11 locales, and backToGlobal is added.
  • That first tick used to leave the toggles blank until the refetch landed, so a second tick in that gap would save from an empty list, and a failed save left an empty own list on screen. The list just sent now stays until the saved one comes back, and a failed save shows the config again. Both cases have tests.
  • Agent toggles (.ss-tgl) snapped their check badge in and out. It now pops in and shrinks away with transitions; under reduced motion it only fades. The half-lit hover on unticked logos only applies to fine pointers, so a tap on a touch screen doesn't leave it behind. .ss-tgl is shared, so this also reaches the Agent pickers in the add-target, hook, plugin-add and MCP server/import dialogs.
  • reference/commands/mcp.md and ui.md, plus their ja, ko, zh-Hans and zh-Hant copies, described the chips. They now describe the logos on the count button.

Checklist

  • I've read CONTRIBUTING.md, including its AI-assisted contributions section
  • I've reviewed every line of the diff and can explain it
  • Tests included and passing (make check)
  • No unrelated changes in the diff
  • Scope is focused — one concern per PR

Checks run (devcontainer)

  • make check: passed, on the final commit
  • eslint on the changed files and tsc --noEmit: clean
  • vitest for src/components/mcp, src/components/plugins, src/pages and src/i18n: 307 passed. The two new ProjectTargets tests (quick second tick, failed first save) failed before the fix.
  • Browser, Clean light:
    • MCP rows, MCP Defaults, plugin rows and a project's MCP Targets, collapsed and expanded.
    • Fold height sampled frame by frame (MCP rows about 300 ms; project Targets 34 → 249 px and back, no jump at the end).
    • Check badge sampled while ticking and unticking. Under emulated reduced motion, folds compute transition-duration: 0s and the badge has no transform.
    • Project Targets: inherit, tick to own, back to global through the dialog.
  • Not run:
    • Website build. The doc edits are text only and touch no links.
    • Playful theme, dark mode and narrow widths after the later revisions.
    • Ticking a plugin toggle, which runs the Agent's CLI; only its idle badge state was checked.

Not covered

  • Collapsed rows no longer name their Agents. Claude and a custom target that uses the same logo look alike until the row opens, and the stack shows at most six logos.
  • When a plugin toggle finishes applying on an Agent that ends up off, its badge swaps the spinner for a check during the 0.12 s fade-out.
  • The project Targets box and MCP Defaults repeat the same row-plus-fold markup, and the chevron transition classes are repeated in four files. A shared component and class could replace them in a follow-up.
  • The non-Chinese translations of the new string were written without a native-speaker review.

MCP server rows drew the same Agent logos twice: a stack inside the
n/N pill and a row of chips under the name, so a list of servers read
as a wall of repeated icons. Rows now keep only the pill's stack, as
plugin rows do. Opening the pill shows the toggles with each Agent's
name, and Pi's exposure mode moves to a tag beside the Pi toggle.

The toggles of MCP rows, MCP defaults and plugin rows popped in and
out. They now grow and shrink with Reveal, and the pill chevrons
rotate, matching the hooks pages.

The MCP and dashboard reference pages and their four translations
described the chips; they now describe the logos on the count button.
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 18, 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-18T13:24:37.598336Z 5ecd2b4 Manual request
ℹ️ 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: 8fd6f9905f

ℹ️ 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".

</div>
{problems[row.name] && <MCPCheckFindings findings={problems[row.name]} />}
{expanded && row.server && (
<Reveal open={expanded && Boolean(row.server)} className="ss-rv">

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 Honor reduced motion for the newly animated target pickers

When prefers-reduced-motion: reduce is enabled, these previously instantaneous panels still animate after this change. Reveal uses .ss-collapse.grow and .ss-collapse.grow.shut, whose transition declarations in ui/src/components.css:330–332 override the less-specific .ss-collapse { transition: none } reset at line 350. The chevrons respect the preference, but the expanding and collapsing content does not. Strengthen the shared reduced-motion reset for both grow selectors; this also affects the new Reveal usages in MCPDefaults.tsx:28 and plugins/PluginList.tsx:155.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 66258a2. The reduced-motion reset named only .ss-collapse, which .ss-collapse.grow and .ss-collapse.grow.shut outrank with their own transitions, so it never reached a Reveal fold. Both selectors are now in the reset. That covers the MCP rows, MCP Defaults and plugin rows, and the hooks folds that already used Reveal. With reduced motion emulated in the browser, both states now compute transition-duration: 0s (before: 0.25s and 0.12s).

The reduced-motion reset named only .ss-collapse, which .ss-collapse.grow
and .ss-collapse.grow.shut outrank with their own transitions. So every
Reveal fold, now including the MCP and plugin target pickers, still grew
and shrank for people who asked for less motion. Naming both selectors
in the reset lets it win.
A project's MCP tab opened its Targets picker instantly, under a bare
label, with a segmented "Same as global / Choose for this project"
control above the toggles. It now reads like the global MCP defaults: the
setting and its pill on one row, the toggles folding in below. While the
project inherits, the global targets show ticked and the first tick
starts the project's own list from them; a small "Back to global" link
returns, still behind the confirm dialog. The unused key behind the old
control is dropped from every locale.

That first tick used to leave the toggles blank until the refetch landed,
so a second tick in that gap saved from an empty list, and a failed save
left an empty own list on screen. The list just sent now stays on screen
until the saved one comes back, and a failed save shows the config again.

Agent toggles on MCP and plugin rows snapped their check badge in and
out. The badge now pops in and shrinks away with transitions, only fades
under reduced motion, and the half-lit hover is limited to fine pointers
so a tap on a touch screen doesn't leave it behind.
@runkids

runkids commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@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: 3b39404bba

ℹ️ 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".

if (value?.length) return setAsking(true);
setPicking(false);
setSent(null);
if (value !== undefined) onChange(undefined);

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 Persist returning to global before the first refetch finishes

If an inherited project’s first Agent selection saves successfully but its refetch is still pending, clicking Back to global only resets the local display: value is still undefined, so this condition skips the write that would remove the newly saved project-specific list. This is reachable because MCPProjectView.save clears busy without awaiting the refresh from ProjectDetailPage. The project-specific targets then reappear when the refetch completes, despite the user having returned to global. Persist the reset for an optimistic own list too, or keep the control disabled until the saved state is reconciled.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Fixed in 5ecd2b4. Back to global now goes by the list on screen (the one just sent, until the saved targets come back) instead of the stale value, so after a first tick it opens the confirm dialog and saves the reset. The dialog lists the same Agents. A test covers a first tick followed by Back to global before the refetch lands.

The first tick on an inheriting project saves an own list, but the
project's targets stay undefined until the refetch lands. Back to global
read those stale targets, saw no list, skipped the confirm dialog and
the write, and the saved list came back with the refetch. It now goes by
the list on screen, so it asks and then saves the reset as usual.
@runkids

runkids commented Nov 18, 2026

Copy link
Copy Markdown
Owner Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. You're on a roll.

Reviewed commit: 5ecd2b43f8

ℹ️ 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".

@runkids
runkids merged commit d0530b6 into main Nov 18, 2026
16 of 17 checks passed
@runkids
runkids deleted the runkids/mcp-agent-logos-once branch November 18, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant