Skip to content

perf(platform): search projects on the server in the automations pickers #5204

Closed

Description

@tale-code-bot

Split from #5194 (itself split from #5156, item 4 of 7 of #4708).

What the screens do now

The change for #5194 has the chat pickers, the breadcrumb's project switcher and Home read Home's page of projects (GET /api/app/projects/sidebar, 100, the pinned first) and, while that page does not hold every project, the server's name search for what is typed (GET /api/app/projects/search, 20 at most), with a selected project past the page read by id (GET /api/app/projects/:id). The rules they share are in services/platform/app/features/projects/lib/project-choices.ts; the projects feature's hook is useProjectChoices (app/features/projects/hooks/queries.ts).

The automations screens still read every project the caller can read, through useProjects (projects/queries:listProjects, GET /api/app/projects, no LIMIT). Paths under services/platform/app/features/automations/components/:

  • pickers: the blank and upload dialogs' target project (blank-automation-dialog.tsx, upload-automation-dialog.tsx, a plain Select), the template setup (template-setup.tsx), the issue import's project, reached from the run actions (run-actions.tsx → automation-run-dialog.tsx → issue-import-fields.tsx) and from the issue-import continuation (issue-import-continuation.tsx), and the project bindings (project-bindings-section.tsx, a MultiSelect);
  • names only: the list's projects column (automations-list.tsx), and the editor and the trigger editor, which keep the automation's bound projects (automation-editor.tsx, trigger-editor.tsx).

What to do

  • Each single-project picker offers useProjectChoices for what is typed, with the selected project resolved by id, instead of useProjects; a plain Select that has to reach a project past the page becomes a SearchableSelect.
  • The project bindings need a MultiSelect that searches on the server: it reports what is typed (as SearchableSelect's onSearchChange does), and every bound project stays offered, read by id when the page lacks it.
  • A screen that only names projects reads the projects it names (by id, or the bindings' own rows), never every project.

Done means:

  • no automations screen loads every project the caller can read;
  • a project past Home's 100 can still be picked, bound and shown;
  • tests cover a picker with more projects than one page holds.

The settings screens, and retiring the app's whole-list read once this lands, are #5205.

Activity

  1. added
    agent-ready
    on Oct 31, 2026
  2. added
    perf
    on Oct 31, 2026
  3. added a commit that references this issue on Oct 31, 2026
    5298776
  4. tale-code-bot commented on Nov 1, 2026

    @tale-code-bot
    CollaboratorAuthor

    Landed on Tale's feature line: feature train #5241 landed on release/0.6 by rebase at 2026-11-01T01:56:42Z, and this change is now commit 4f8c787 there (perf(platform): search projects on the server in automations screens). It ships with Tale 0.6.0.

    GitHub closes issues by itself only for commits on main, so the feature-train role closes this one as completed. Task: TALE-289.

  5. 21 remaining items

  6. added 11 commits that reference this issue on Nov 4, 2026
    ff16f39
    e3c6163
    bf04da2
    4911062
    ac76458
    b7e7b37
    c8d3cc6
    68397b4
    2c3535d
    5a9abcc
    b388a98
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