Repository navigation
feat(webui): Block / Block All in Tool Quarantine view (#632 FE lane) - #654
Conversation
Adds a reversible reject affordance next to Approve in the Server Detail
tool-quarantine panel: a per-tool Block button and a Block All button on
the banner. Blocking removes a pending/changed tool from quarantine and
disables it in the tools list; it is reversible via the existing tools
toggle, so no destructive-confirm modal.
- api.blockTools(serverName, tools?) mirrors approveTools against
POST /api/v1/servers/{id}/tools/block ({tools:[...]} or {block_all:true}).
- ServerDetail.vue: Block/Block All buttons with data-test attrs +
blockTool/blockAllTools handlers reusing approvalLoading + success toast.
- Unit tests: api contract (URL/body) + component button render & handler args.
- Docs: tool-quarantine.md Web UI section documents Block/Block All.
- Verification: Playwright sweep (3/3) built to the backend contract with
page.route mocks; to be re-run unmocked after the backend lane lands.
Related #632
Deploying mcpproxy-docs with
|
| Latest commit: |
0181d11
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://b10ea321.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://mcp-2199-fe-block-button.mcpproxy-docs.pages.dev |
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 27487988272 --repo smart-mcp-proxy/mcpproxy-go
|
QA Gate — PASS ✅ (head
|
CodexReviewer found that ServerDetail.vue's block handlers refreshed tool approvals + server summaries but not serverTools, leaving the Available Tools row/toggle stale until a manual reload. Add loadTools() to both blockTool and blockAllTools success paths so a blocked tool shows disabled immediately, mirroring the approve / enable-disable path. Extend quarantine-block-view.spec.ts with two tests asserting getServerTools is re-fetched after Block and Block All. Related #654
Frontend: Block button in Tool Quarantine view
Frontend lane of #632 (parent MCP-2196). Adds a reversible reject
affordance next to Approve in the Server Detail tool-quarantine panel.
What changed
api.blockTools(serverName, tools?)— mirrorsapproveToolsagainstPOST /api/v1/servers/{id}/tools/block, sending{tools:[...]}for anexplicit set or
{block_all:true}otherwise. Contract response:{ blocked: int }.ServerDetail.vue— a per-tool Block button next to each Approve,and a Block All next to Approve All on the quarantine banner
(
data-testattrs added). HandlersblockTool/blockAllToolsreuseapprovalLoading, refresh approvals + server state, and toast on success.Blocking is reversible, so no destructive-confirm modal.
docs/features/tool-quarantine.mdWeb UI section documents Block / Block All.Tests / verification
frontend/tests/unit/):quarantine-block-api.spec.tslocks the apiURL/body contract;
quarantine-block-view.spec.tsmounts the realServerDetailand asserts the buttons render + callblockToolswith theright args. Full FE suite: 167 passed;
vue-tscclean;make buildgreen.specs/mcp-2199-block-button/verification/, 3/3) builtto the backend contract with
page.routemocks — seereport.html.The
POST .../tools/blockendpoint is not merged yet (separate backendlane of #632). This PR builds to the agreed contract with mocks; the Playwright
sweep will be re-run unmocked after the backend lands + a rebase onto
origin/main before this is merge-ready. Do not merge ahead of the backend.
Related #632