feat: move catalog filters into a dialog - #14
Merged
Conversation
gandhipratik203
force-pushed
the
feat/6179-move-filters-into-dialog
branch
from
August 12, 2026 16:01
9b14a38 to
be2b639
Compare
gandhipratik203
marked this pull request as ready for review
August 12, 2026 16:35
Replace the server catalog filter popover with the "Add filters" dialog from the design, and drop the authentication type selector while the catalog only offers Open servers. Providers, categories and tags each become an All / Select radio pair over a checkbox grid, so category and provider are now multi-valued and read from repeatable query params. Selections are held as a draft inside the dialog and committed in a single navigation when Add filters is pressed; Cancel and the close button discard them. Implements IBM/mcp-context-forge#6179 Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
The design lists providers, categories and tags alphabetically down each column. A CSS grid fills across rows instead, so switch the option lists to multi-column flow. Signed-off-by: Pratik Gandhi <gandhipratik203@gmail.com>
gandhipratik203
force-pushed
the
feat/6179-move-filters-into-dialog
branch
from
August 13, 2026 06:56
cf107e7 to
55eb5bc
Compare
marekdano
approved these changes
Aug 13, 2026
marekdano
left a comment
Contributor
There was a problem hiding this comment.
@gandhipratik203 - thanks for the contribution!
The PR implements a complete plugin catalog feature with excellent results across all review dimensions: Code Quality ✅, Security ✅, Accessibility ✅, Test Coverage ✅, Issue Implementation ✅
LGTM 🚀
gcgoncalves
approved these changes
Aug 13, 2026
gcgoncalves
left a comment
Contributor
There was a problem hiding this comment.
Good A11y approach. 👏
11 tasks
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
Moves the MCP server catalog filters out of the popover and into the Add filters dialog from the design, and removes the authentication type selector while the catalog only offers
Openservers.Implements IBM/mcp-context-forge#6179. Builds on #7.
Design: Refiring —
filters - open onlyHeads-up: this is more than a container swap
The issue text reads "move filters into dialog", but the linked frame specifies a different filter model, so the diff is larger than the title implies:
tagsalready was.All filtering stays client-side over the fetched catalog, so there is no API or backend change — the multi-select that #5970 listed as needing backend work does not, given the existing client-side predicate.
Changes
ServerCatalog.tsxcategory/provider→string[];authTyperemoved;setSingleFilter/toggleTag/clearFilterscollapsed into oneapplyFilters(draft)issuing a single navigation;activeFilterCountsums array lengthsCatalogToolbar.tsxCatalogFiltersPopover→CatalogFiltersDialog; newCatalogFilterSectionFields; draft + per-section mode state seeded only on openmcpServer.json×3addFilters, plural headings, per-section All/Select labels; removedclearFilters,allCategories,allProviders,allAuthTypesTwo details worth a reviewer's eye:
updateQuerynow deletesauth_typeunconditionally, not just on apply. Without it a stale?auth_type=Openfrom an existing URL survives every later search keystroke. Marked transitional in a comment; remove when auth types ship.selected.length > 0. Deriving it looked simpler but broke the radio: clicking "Select..." with nothing ticked would leave the section in All mode and never reveal the grid.catalog.provider,catalog.categoryandcatalog.authenticationare deliberately kept —CatalogResults.tsxuses them as detail-row labels, unrelated to filtering.Test results
main.npm run lint,npm run format:check: clean.New coverage: draft discarded on Cancel and on close; URL and grid unchanged until apply; repeated-param URL restore including checked dialog state; multi-provider OR matching; All clearing only its own section; zero badge on a fresh page; single history entry per apply; stale
auth_typedropped via both apply and a plain search keystroke.Visual check
Rendered at 1512x1084 in both themes against the
filters - open onlyframe:DialogContent'smax-h+overflow-y-autoonly engages on short viewports. No nested provider scroll region is needed at this data size — flagging for @a-effort in case the design intends the header and footer to stay pinned regardless.cf107e7: options were flowing across rows, but the design lists them alphabetically down each column. Switched the option lists from CSS grid to multi-column flow, which now matches the frame column for column.Still to do before this leaves draft
Manual verification
Manual test steps
Setup
The catalog needs an authenticated session and a
GET /v1/catalogresponse, so it is driven through a Playwright-mocked browser window rather than a plain dev server. The mock seeds 24Openservers, 6 categories, 7 tags, and oneAPI Keyserver ("Secret Service MCP", provider "SecureCo") that must stay hidden throughout.Everything below is done in the mocked window, in the tab it opens.
Steps
1. Dialog layout — click Filters on the catalog toolbar.
2. Column order — click Select... under Providers.
3. Cancel discards the draft — tick AWS and Astro, check the address bar, then click Cancel. Reopen the dialog.
4. Apply commits multi-select — tick AWS and Astro, click Add filters.
5. Per-section clearing — reopen, expand Tags, tick
network, apply. Then reopen, set Providers back to All, apply.6. Deep link filters the grid — load
/app/server-catalog?category=Monitoring&category=Data&provider=AWS.7. Deep link restores the dialog — on that URL, open Filters.
8. Legacy
auth_typeis dropped — load/app/server-catalog?auth_type=Open, then use the catalog toolbar's search box (not the global header search) and typeaws. The param stays visible on load; it clears once the URL is rewritten.9. Non-Open servers never leak — checked across every step above.
Manual test results
Checked in light and dark themes at 1512x1084.
?provider=AWS&provider=Astro, grid down to 2 cards, badge shows 2tags=networksurvives?auth_type=Open, then type in catalog searchauth_typedrops out of the URLDefect found and fixed before merge: options initially flowed left-to-right across rows, but the design lists them alphabetically down each column. Switched from CSS grid to multi-column flow. Unit tests could not have caught this — jsdom sees DOM order, which was correct throughout; only rendering exposed it.
Alongside the manual pass: 22 unit tests on the catalog page, 2818 in the full suite, and 29 assertions driven through a real browser against the dev bundle.