Repository navigation
feat(ui): clickable KPI cards on Activity / Servers / Agent Tokens (#436) - #442
Merged
Merged
Conversation
KPI summary cards on three pages were passive — the count would change but the cards weren't clickable, so users (Jason in #436) tried clicking them as their first instinct and "nothing happened." Each card now drives the matching filter: Activity page (filterStatus): Total (24h) → '' (all) Success → 'success' Errors → 'error' Blocked → 'blocked' Servers page (filter): Total Servers → 'all' Connected → 'connected' Quarantined → 'quarantined' Total Tools → no filter (intentionally non-clickable, no matching list-state to drive) Agent Tokens page (tokenFilter, new): Total Tokens → 'all' Active → 'active' Expired / Revoked → 'expired' Implementation: - Clickable cards rendered as <button> with type="button", aria-pressed bound to the active state, data-test attribute for stable selection. - Active card shows bg-base-200 + ring-2 ring-inset ring-primary/40 + cursor-pointer + hover:bg-base-200/60 (consistent across all three pages). - Clicking the already-active card toggles back to 'all' / '' (clearing the filter); clicking 'Total' always resets. - Servers + Activity drive existing filter state; AgentTokens introduces a new tokenFilter ref and filteredTokens computed (the page previously had no filter, so it also gets a "no tokens match this filter" empty state with a 'Show all' shortcut). Verified end-to-end via the Chrome extension MCP against a live mcpproxy serve on port 18083: Servers (3 servers, 1 quarantined): click Quarantined → kpi-quarantined.aria-pressed=true, filter button "Quarantined (1)" goes btn-primary, all other filter buttons go btn-outline click Connected → kpi-connected.aria-pressed=true click Connected ×2 → toggles back to Total/all Agent Tokens (2 active + 1 revoked): baseline → 3 rows visible click Active → 2 rows, 0 'Revoked' badges, 2 'Active' badges click Expired → 1 row, 1 'Revoked' badge, 0 'Active' badges click Total → 3 rows Activity (1 system_start success): click Success → kpi-success highlighted, status select='success', "Status: success" badge appears in the Active filters chip row click Errors → status select='error', badge shows "Status: error" click Errors ×2 → toggles off, no Status badge Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
Deploying mcpproxy-docs with
|
| Latest commit: |
b506041
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://690f4901.mcpproxy-docs.pages.dev |
| Branch Preview URL: | https://feat-clickable-kpi-cards.mcpproxy-docs.pages.dev |
Contributor
📦 Build ArtifactsWorkflow Run: View Run Available Artifacts
How to DownloadOption 1: GitHub Web UI (easiest)
Option 2: GitHub CLI gh run download 25180152922 --repo smart-mcp-proxy/mcpproxy-go
|
1 of 2 tasks
Dumbris
added a commit
that referenced
this pull request
May 2, 2026
…#445) The release-notes generator (scripts/generate-release-notes.sh) feeds commit subjects to Claude with no edition context, and Claude has been inventing edition annotations from thin air: - v0.29.0: "*Note: The onboarding improvements primarily affect the **Personal Edition** desktop application.*" - v0.29.1: "**Personal Edition (macOS)**" header - v0.29.2: "*Note: All changes in this release apply to the Teams edition only.*" — wrong, all three PRs (#442, #443, #444) modify shared code (internal/runtime/, frontend/) and ship in both editions This patch updates the prompt to: 1. Briefly explain the two-edition build model so the model doesn't have to guess from training data. 2. Forbid edition-only annotations unless a commit subject explicitly says so (e.g. contains "(server)", "(teams)", "server-only"). 3. Forbid speculation from subject keywords (ui/runtime/oauth/etc). 4. Use "Server edition", not "Teams edition" — Teams is an internal package name. 5. Default to BOTH editions when unsure. The v0.29.2 release body has been hand-corrected separately. Co-authored-by: Claude Code <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #436. KPI cards on three pages were passive — the count would change but you couldn't click them. Jason filed the issue saying "It was the first thing I tried but nothing happened." Bundling all three (and matching the same affordance) is more consistent than fixing one and leaving the others awkward.
Each card now drives the matching filter:
filterStatus = '''success''error''blocked'filter = 'all''connected''quarantined'tokenFilter = 'all''active''expired'Clicking an already-active non-Total card toggles the filter off; Total always resets to
all. Active card hasbg-base-200 + ring-2 ring-inset ring-primary/40; all clickable cards havecursor-pointer + hover:bg-base-200/60.Each card carries a stable
data-test="kpi-card-<state>"and properaria-pressedfor accessibility / future Playwright tests.Notes
tokenFilterref +filteredTokenscomputed, plus a "no tokens match this filter — Show all" empty state.frontend/src/types/contracts.tsregen frommake frontend-buildwas reverted (unrelatedIsolationDefaultsregression — not part of this PR).Test plan
End-to-end verified via the Chrome extension MCP against a live mcpproxy serve on port 18083:
Quarantined (1)filter button tobtn-primary; clicking Connected highlights kpi-connected; clicking Connected again resets to Total.vue-tsc --noEmitclean.npm run buildclean.🤖 Generated with Claude Code