Problem
The identity popover switcher in the breadcrumb navigation (IdentityCrumb) currently uses trpc.identity.query.useQuery({}) which is paginated with a server-side default of limit: 50. This means:
- Workspaces with more than 50 identities will have results silently truncated.
- The in-popover search is client-side only — identities outside the first page cannot be found.
Currently, the only available search is described as an "AI search" which does not provide reliable full-text search across the entire identities collection in the database.
Proposed Solution
Implement full-text search for the identity popover switcher that:
- Queries the database directly (not just client-side filtering of a capped result set)
- Wires the popover search input through to the
trpc search input parameter so all matching identities are returned regardless of pagination
This would bring the identity switcher in line with the reliability expected from the project/namespace crumb switchers.
References
Raised by @chronark
Problem
The identity popover switcher in the breadcrumb navigation (
IdentityCrumb) currently usestrpc.identity.query.useQuery({})which is paginated with a server-side default oflimit: 50. This means:Currently, the only available search is described as an "AI search" which does not provide reliable full-text search across the entire identities collection in the database.
Proposed Solution
Implement full-text search for the identity popover switcher that:
trpcsearchinput parameter so all matching identities are returned regardless of paginationThis would bring the identity switcher in line with the reliability expected from the project/namespace crumb switchers.
References
Raised by @chronark