Add pagination, search, and descriptions to org teams list#37084
Open
majorissuerep wants to merge 1 commit intogo-gitea:mainfrom
Open
Add pagination, search, and descriptions to org teams list#37084majorissuerep wants to merge 1 commit intogo-gitea:mainfrom
majorissuerep wants to merge 1 commit intogo-gitea:mainfrom
Conversation
…34482) The teams list showed all teams in a mosaic grid with no pagination, no search/filter, and no team descriptions, making it unusable for organizations with many teams. Changes: - Replace 2-column card grid with a flex-list layout (consistent with the members page) - Display team Description field when set - Add search filter (q= param) that matches team name and description via the existing SearchTeam function - Paginate using the existing MembersPagingNum setting (default 20) - Owners see all org teams; non-owners see only their own teams - Member avatars, member/repo counts and join/leave actions are preserved Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
bircni
suggested changes
Apr 2, 2026
Member
bircni
left a comment
There was a problem hiding this comment.
https://github.com/go-gitea/gitea/blob/main/CONTRIBUTING.md
Please read what claude wrote in the PR for you - there are tasks whcich are not checked...
If your PR changes the UI, you must add after screenshots in the PR summary.
| opts.UserID = ctx.Doer.ID | ||
| } | ||
|
|
||
| teams, total, err := org_model.SearchTeam(ctx, opts) |
Member
There was a problem hiding this comment.
fires a fresh query to db again but these are alread loaded?
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
Fixes #34482
The organization teams page showed all teams in a 2-column mosaic grid with no pagination, no search filter, and no team descriptions — unusable for organizations with many teams. The core maintainer indicated preference for a list view over the mosaic.
flex-listlayout (consistent with the members page)Descriptionfield when set (field already existed in model, just not shown)?q=) matching team name and description via existingSearchTeamMembersPagingNumsetting (default 20 per page)Test plan
🤖 Generated with Claude Code