Skip to content

feat(frontend): search for a relation target instead of loading the type #48

Description

@SirLouen

Current state: the relation control reads every item of the type it points at and
puts them all in a select. That suits the categories a site usually holds, and
stops suiting a type that grows large. The read gives up after ten thousand
items, and a plain select is hard to use well before that.

Proposal: give the control a search box that asks the server for matches instead
of loading the type up front. The listing endpoint already takes a search
parameter, so the work is a control that queries as the editor types and names a
held target without needing it in the loaded page.

Trigger: 0.5.0 ships relations, so the first site pointing a field at a type with
thousands of items meets a control that was built for tens.

Activity

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

    enhancementNew feature or request

    Type

    No type

    Fields

    Priority

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions