Skip to content

Conversation

@majiayu000
Copy link

Summary

This PR fixes #34482 by implementing pagination, filtering, and description display for the organization teams page.

Changes

  • Added pagination support for the teams list using SearchTeam with configurable page size (setting.UI.MembersPagingNum)
  • Added search/filter functionality to filter teams by name or description
  • Added display of team descriptions in the team list view
  • Added empty state message when no teams match the search criteria
  • Updated template to use flex-list layout consistent with other pages

Implementation Details

The implementation follows existing patterns used in members.go and other paginated lists in the codebase:

  • Uses context.NewPagination() for pagination
  • Uses org_model.SearchTeamOptions with IncludeDesc: true for search
  • Uses pager.AddParamFromRequest() to preserve query parameters

🤖 Generated with Claude Code

…ms page

This change adds:
- Pagination support for the teams list using SearchTeam with configurable page size
- Search/filter functionality to filter teams by name or description
- Display of team descriptions in the team list view
- Empty state message when no teams match the search criteria

The implementation follows existing patterns used in members.go and other
paginated lists in the codebase.

Fixes go-gitea#34482

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
Signed-off-by: majiayu000 <[email protected]>
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Dec 30, 2025
@github-actions github-actions bot added modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files labels Dec 30, 2025
@lunny
Copy link
Member

lunny commented Jan 3, 2026

Could you have a screenshot there?

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

Labels

lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. modifies/go Pull requests that update Go code modifies/templates This PR modifies the template files

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Paginate, filter and display descriptions of teams in the organization page

3 participants