Skip to content

Add search bar for organization members tab page#37347

Open
lunny wants to merge 7 commits intogo-gitea:mainfrom
lunny:37072
Open

Add search bar for organization members tab page#37347
lunny wants to merge 7 commits intogo-gitea:mainfrom
lunny:37072

Conversation

@lunny
Copy link
Copy Markdown
Member

@lunny lunny commented Apr 21, 2026

Resolve #37072

image

@lunny lunny added this to the 1.27.0 milestone Apr 21, 2026
@lunny lunny added the type/enhancement An improvement of existing functionality label Apr 21, 2026
@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Apr 21, 2026
@lunny lunny marked this pull request as ready for review April 23, 2026 21:47
@silverwind silverwind requested a review from Copilot April 28, 2026 02:43
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.

Pull request overview

Adds member search functionality to the Organization Settings → Members page (resolving #37072) by wiring a q query parameter from the UI through the web router into the org-member lookup logic.

Changes:

  • Add a search bar and “shown / total” member count display to the members template, including a “no results” empty state.
  • Extend org member lookup options to support keyword filtering (username/full name/email with privacy rules) and persist query params through pagination.
  • Add model-level tests covering member search behavior (including private email visibility rules).

Reviewed changes

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

File Description
templates/org/member/members.tmpl Adds search input + count display and a no-results state for the members list.
routers/web/org/members.go Reads q, passes it into member queries, and persists query params in pagination.
models/organization/org.go Adds keyword/email search filtering to org member queries via a user join.
models/organization/org_test.go Adds tests validating org member search results and email privacy behavior.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread routers/web/org/members.go
Comment thread models/organization/org.go
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. type/enhancement An improvement of existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: Add Search Bar in Organization Members Tab

3 participants