Repository navigation
Conversation
Move search and filter controls above the Recently Updated section so the search bar remains immediately accessible even when many recently updated servers are displayed. Add a regression test verifying the ordering invariant in the embedded UI HTML. Fixes modelcontextprotocol#1685
rdimitrov
approved these changes
Oct 6, 2026
rdimitrov
added a commit
that referenced
this pull request
Oct 6, 2026
Follow-up to #1686. Refs #1685. #1686 moved the search field above **Recently Updated**, but that section can still hold up to 96 cards, so search results and later pages were still pushed far down the page. ### Changes - Show only the first 6 recently updated servers, with a **Show all N / Show less** toggle - Hide the section while a search query is active (including `?q=` on load and back/forward navigation) and when paginating past the first page - Extend `ui_test.go` to cover the toggle and the visibility helper ### Testing - `go test -run TestUIHTML ./internal/api/handlers/v0/` - Headless Chrome against prod data: starts with 6 of 96 cards shown, expands and collapses correctly, the section hides while searching and reappears when the search is cleared, `?q=` hides it on load, no JS errors Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Fixes #1685.
Moves the existing search and filter controls above the Recently Updated section so the search field remains immediately visible even when that section contains many servers.
Adds a regression test verifying that the search and filter controls appear before the Recently Updated section in the embedded UI HTML.
Tests: