Repository navigation
API: search an organization's members by name or address, best matches first - #1913
Merged
Merged
Conversation
davidmckayv
requested review from
MikeRyanDev,
dustywusty,
guidovizoso,
mxmzb,
samjulien and
tylerslaton
as code owners
November 20, 2026 01:48
davidmckayv
force-pushed
the
feat/one-org-team-add-spec
branch
2 times, most recently
from
November 20, 2026 13:39
ad752d8 to
acfcbfa
Compare
…s first listOrganizationMembers takes an optional search: members whose name, a first or last name, or address starts with it come first, then those whose name or address holds it, ignoring case. Only the organization's current members are listed, and a cursor belongs to the search that made it. Adding people to a team asks the server for the members matching what is typed instead of loading everybody.
davidmckayv
force-pushed
the
feat/one-org-team-add-spec
branch
from
November 20, 2026 13:48
acfcbfa to
1b84ea8
Compare
This was referenced Nov 20, 2026
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.
What
listOrganizationMemberstakes an optionalsearchquery parameter, so a screen can ask the server for the members matching what somebody types instead of loading the whole organization.limit,cursor,nextCursor); a cursor belongs to the search that made it.Additive only: a new optional query parameter on an existing operation. Without
searchthe list answers exactly as before. Changelog line under Unreleased, API.Why
Adding people to a team becomes a type-ahead box that suggests the organization's own members as the admin types.
listPeoplealready has asearch, but it is for admins only (anybody else sees only themselves, and a team maintainer can add people), it lists people an admin removed, and it matches anywhere without ranking. The members list is readable by any member and is what the team screen already uses.Checks
bun run api:generate: bundle and the app, phone and Recorder clients regenerated and committed together.bun run api:lint: valid.bun test api shared/tests/api: 101 pass, 9 skip, 0 fail.The screens that use it come in a separate pull request, stacked on the one-org apps work.