Repository navigation
fix(ui): show each MCP server's Agents once and animate target pickers - #952
Conversation
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.
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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"> |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
@codex review |
There was a problem hiding this comment.
💡 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); |
There was a problem hiding this comment.
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 👍 / 👎.
There was a problem hiding this comment.
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.
|
@codex review |
|
Codex Review: Didn't find any major issues. You're on a roll. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
Type
proposals/only — see CONTRIBUTING.md)approvedlabel)Linked Issue
None. The maintainer asked for this directly.
What changed
n/Npill 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.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.Revealinstead of popping in. The pill chevrons rotate, as on the hooks pages..ss-collapse, which.ss-collapse.growoutranks, so everyRevealfold still animated for people who asked for less motion. The reset now names.growand.grow.shuttoo.mcp.projects.ownTargets,targetsHint,noGlobalTargets) are removed from all 11 locales, andbackToGlobalis added..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-tglis shared, so this also reaches the Agent pickers in the add-target, hook, plugin-add and MCP server/import dialogs.reference/commands/mcp.mdandui.md, plus their ja, ko, zh-Hans and zh-Hant copies, described the chips. They now describe the logos on the count button.Checklist
make check)Checks run (devcontainer)
make check: passed, on the final commiteslinton the changed files andtsc --noEmit: cleansrc/components/mcp,src/components/plugins,src/pagesandsrc/i18n: 307 passed. The two newProjectTargetstests (quick second tick, failed first save) failed before the fix.transition-duration: 0sand the badge has no transform.Not covered