Skip to content

Add pagination, filtering and description display to organization teams page#36267

Closed
majiayu000 wants to merge 2 commits intogo-gitea:mainfrom
majiayu000:fix-34482-paginate-filter-and-display-de-1230-1859
Closed

Add pagination, filtering and description display to organization teams page#36267
majiayu000 wants to merge 2 commits intogo-gitea:mainfrom
majiayu000:fix-34482-paginate-filter-and-display-de-1230-1859

Conversation

@majiayu000
Copy link
Copy Markdown
Contributor

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 <noreply@anthropic.com>
Signed-off-by: majiayu000 <1835304752@qq.com>
@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
Copy Markdown
Member

lunny commented Jan 3, 2026

Could you have a screenshot there?

@silverwind silverwind requested a review from Copilot January 23, 2026 13:55
@wxiaoguang
Copy link
Copy Markdown
Contributor

wxiaoguang commented Jan 23, 2026

Code was written by AI, it seems that the author doesn't have interest to maintain it by human? No response for long time (#36267 (comment))

@wxiaoguang wxiaoguang marked this pull request as draft January 23, 2026 14:09
Copy link
Copy Markdown
Contributor

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.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@majiayu000
Copy link
Copy Markdown
Contributor Author

Sorry, I am really too busy to solve this.

@majiayu000 majiayu000 closed this Jan 23, 2026
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

6 participants