Skip to content

fix(ui): keep search above recently updated servers - #1686

Merged
rdimitrov merged 1 commit into
modelcontextprotocol:mainfrom
Shoryamishra61:fix/search-before-recently-updated
Oct 6, 2026
Merged

rdimitrov merged 1 commit into
modelcontextprotocol:mainfrom
Shoryamishra61:fix/search-before-recently-updated

Conversation

@Shoryamishra61

Copy link
Copy Markdown
Contributor

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:

  • \go test -v -run TestUIHTML ./internal/api/handlers/v0/...\ (verified failure on old layout, pass on new layout)
  • \go test -race -v -run TestUIHTML ./internal/api/handlers/v0/...\
  • \go test -v -run 'TestPing|TestVersion|TestHealth|TestListErrors|TestUIHTML' ./internal/api/handlers/v0/...\
  • \go build -o bin/registry ./cmd/registry\
  • \go vet ./...\
  • Browser layout and mobile responsive check verified

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
Copilot AI balanced review requested due to automatic review settings October 4, 2026 10:36

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot review overview

🟢 Approval recommended

No unresolved review issues remain.

Review effort: Lite
Findings: None

@rdimitrov
rdimitrov merged commit c384c4b into modelcontextprotocol:main Oct 6, 2026
4 checks passed
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Search bar pushed far below the fold by Recently Updated section

3 participants