feat(dashboard): add tool variations menu to source detail Tools tab#3083
Conversation
https://linear.app/speakeasy/issue/AGE-2350/add-tool-variations-options-to-source-tools-pages Mirror the MCP detail page's ellipsis menu on the source detail Tools tab so users can edit a tool's name, description, annotations, and tags directly from the source. Variations are global (keyed by source tool URN), so edits affect the underlying tool everywhere it's used. Extract the variation upsert into a shared `useToolUpdate` hook backed by `useMutation`, gated on `mcp:write`. Add the variation badge to source rows for visual confirmation of overrides. Disable Save/Cancel during the in-flight upsert to prevent the double-submit race that also existed on the MCP page. Telemetry uses a new `source_event` capture with the existing `tool_variation_updated` action.
There was a problem hiding this comment.
Claude Code Review
This repository is configured for manual code reviews. Comment @claude review to trigger a review and subscribe this PR to future pushes, or @claude review once for a one-time review.
Tip: disable this comment in your organization's Code Review settings.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: cd239c0 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
simplesagar
left a comment
There was a problem hiding this comment.
Cursory pass, this looks great. Ill go through it more closely today but giving you a green check in case it makes testing easier to have this in.
There was a problem hiding this comment.
1 issue found across 7 files
Reply with feedback, questions, or to request a fix.
Fix all with cubic | Re-trigger cubic
🚀 Preview Environment (PR #3083)Preview URL: https://pr-3083.dev.getgram.ai
Gram Preview Bot |
https://linear.app/speakeasy/issue/AGE-2350/add-tool-variations-options-to-source-tools-pages
Mirror the MCP detail page's ellipsis menu on the source detail Tools tab so users can edit a tool's name, description, annotations, and tags directly from the source. Variations are global (keyed by source tool URN), so edits affect the underlying tool everywhere it's used.
Extract the variation upsert into a shared
useToolUpdatehook backed byuseMutation, gated onmcp:write. Add the variation badge to source rows for visual confirmation of overrides. Disable Save/Cancel during the in-flight upsert to prevent the double-submit race that also existed on the MCP page.Telemetry uses a new
source_eventcapture with the existingtool_variation_updatedaction.Summary by cubic
Add a tool variations menu to the Source Details → Tools tab so users can edit a tool’s name, description, annotations, and tags directly from the source. Variations are global (keyed by the source tool URN) and ship with RBAC gating, a variation badge, safer saves, and new telemetry; satisfies Linear AGE-2350.
New Features
source_eventwithtool_variation_updated.Refactors
useToolUpdatehook (useMutation, gated bymcp:write) used by Source and MCP; disables Save/Cancel while updating and invalidates queries on success.useMemodependency to avoid stale UI.Written for commit cd239c0. Summary will update on new commits.
Review in cubic