Skip to content

perf(platform): offer members by search in the remaining pickers #5293

Open

Description

@tale-code-bot

Part of #5206. Its task (TALE-291) splits it this way. Part 1 there moves the screens that only name people to the member lookup GET /api/app/members/lookup (MEMBER-R11).

What still reads every member

These pickers offer people out of all of GET /api/app/members/ (listByOrganization, which has no LIMIT). Paths are under services/platform/.

  • Compose email: app/features/conversations/components/compose-email-pane.tsx. This covers the reassign picker and the assignee's name.
  • Automations: app/features/automations/components/template-setup.tsx (MemberQuestion).
  • Governance rule editors, under app/features/settings/governance/components/. Each has a person picker in the rule dialog and names each rule's person in its table:
    • feature-flags-editor.tsx;
    • budget-editor.tsx;
    • model-access-editor.tsx;
    • conversation-routing-policy-editor.tsx.
  • Teams: app/features/settings/teams/components/team-member-checklist.tsx.
  • Through governance/legal_hold_queries:listOrgMembersForPicker (app/lib/backend/settings.ts), which reads the same list:
    • app/features/settings/api-keys/components/api-key-owner-field.tsx;
    • app/features/settings/governance/competences/grant-competence-dialog.tsx;
    • app/features/settings/governance/legal-hold/place-hold-dialog.tsx;
    • app/features/settings/governance/data-subject-requests/file-request-dialog.tsx.

What to do

  • Offer people through the member search GET /api/app/members/search (MEMBER-R12, useMemberSearch). Name the chosen people and each rule's person through the lookup (useMemberLookup), as the conversation header's assignee picker does (conversation-assignee-picker.tsx).
  • Keep each picker's own narrowing: disabled members stay out, the API-key owner rules hold, and a team keeps its last member. Show no one a picker does not show today.
  • Remove listOrgMembersForPicker once nothing reads it.

Done means:

  • no picker reads every member;
  • tests cover each picker that moved.

Activity

  1. added
    perf
    agent-ready
    on Nov 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readyperf

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions