Repository navigation
web | api | docs: Search, sort and manual ordering for projects and services - #28
Merged
Merged
Conversation
- The projects page now has a search input and a sort dropdown. Both are kept in the URL search params. - Sort options are Custom (the default), Newest First, Oldest First, A → Z and Z → A. The sort button follows the metrics filter pattern: it shows a non-default indicator and has a reset item. - When a search matches no projects, an empty state appears with a button to clear the search. - The search field is pulled out into a shared SearchInput component, which the settings search bar now uses too.
Projects and services can be dragged into a custom order that is stored in the API and shared by the team. Services keep each group together: a group moves as one block and its services are ordered inside it. - api: position on projects, services and service groups. New items go to the top. reorder-projects, reorder-services and reorder-service-group endpoints and MCP tools. list-projects and list-service take sort_by (custom, name, created_at, updated_at) and sort_order, newest first by default. - web: drag to reorder on the Custom sort, search and sort on the services page, shared toolbar and URL params for both pages. Sort keys are now created_desc and created_asc. - docs: ordering on the projects and service groups pages, new MCP tools.
…h-sort # Conflicts: # apps/api/ent/migrate/migrations/atlas.sum # apps/api/ent/mutation.go
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.
Closes UNB-397. Adds search, sort and manual ordering to the projects page and the services page.
Search and sort
lgand up it sits next to the New Project / Add button. Below that it takes a full row above the cards, lined up with the grid. On the services page, searching a group's name shows the whole group. Ctrl+K works as before.search,sort). Defaults are left out, and an invalidsortfalls back to Custom.Manual ordering
API and MCP
positionon projects, services and service groups. Groups and ungrouped services share the environment's order, and grouped services have their own order inside the group.reorder-projects,reorder-servicesandreorder-service-group, each also an MCP tool. Items left out keep their order after the listed ones. Duplicates and items from elsewhere answer 400. Reordering leavesupdated_atalone.list-projectsandlist-servicetakesort_by(custom,name,created_at,updated_at) andsort_order. They default to newest first, and the UI asks forcustom.project_positionandservice_position.Shared code
SearchInput(also used by the service settings search)SearchSortToolbaruseSearchSortParamslist-sortcard-sorting(drag helpers)Docs: ordering sections on the projects and service groups pages, and the new MCP tools.