Skip to content

Conversation

@ups216
Copy link
Member

@ups216 ups216 commented Apr 20, 2025

This pull request introduces a new "Category" feature, allowing users to view and interact with servers filtered by category. The changes span frontend, backend, and localization updates.

Frontend Updates:

  • Added a new Category page component, including server fetching, filtering, and UI elements such as breadcrumbs, server cards, and a "Load More" button. (client/src/pages/Category.tsx)
  • Updated App.tsx to include routes for the Category page (/category and /category/:categoryKey) and imported the new component. (client/src/App.tsx) [1] [2]
  • Enhanced the ServerDetails page to display localized category names, leveraging the new category translations. (client/src/pages/ServerDetails.tsx)

Backend Updates:

  • Added a new /search_servers endpoint to filter and return servers by category and locale. This includes sorting by recommendation status and handling caching. (server/src/routes/hub.ts)

Localization Updates:

  • Extended localization files (de.json, en.json, es.json, ja.json, zh-hans.json, zh-hant.json) to include translations for category-related terms and common UI elements like "Loading" and "Last Updated." [1] [2] [3] [4] [5] [6]

@ups216 ups216 requested a review from Copilot April 20, 2025 16:49
@ups216 ups216 self-assigned this Apr 20, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This pull request introduces a new category feature to allow users to filter and view servers based on their assigned category. The changes include a new API endpoint to filter and sort servers by category and locale, a dedicated Category page on the frontend with breadcrumb navigation and load-more functionality, and updates to server details and localization for improved category display.

Reviewed Changes

Copilot reviewed 4 out of 10 changed files in this pull request and generated no comments.

File Description
server/src/routes/hub.ts Added the /search_servers endpoint with category filtering and sorting
client/src/pages/ServerDetails.tsx Updated category display to include localization via t(category.<key>)
client/src/pages/Category.tsx Introduced a new Category page component with server fetching and UI
client/src/App.tsx Added new routes for the Category page
Files not reviewed (6)
  • client/src/locale/de.json: Language not supported
  • client/src/locale/en.json: Language not supported
  • client/src/locale/es.json: Language not supported
  • client/src/locale/ja.json: Language not supported
  • client/src/locale/zh-hans.json: Language not supported
  • client/src/locale/zh-hant.json: Language not supported

@ups216
Copy link
Member Author

ups216 commented Apr 20, 2025

#46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add categories as the top filter, show the most trustful mcps on home page and allow user to browse mcp servers by categories

2 participants