Skip to content

Many-to-many manage_relationship renders nested UUID "Id" inputs instead of relationship selector (label_field ignored) #377

@fbutano

Description

@fbutano

Code of Conduct

  • I agree to follow this project's Code of Conduct

AI Policy

  • I agree to follow this project's AI Policy, or I agree that AI was not used while creating this issue.

Versions

•	ash_admin: 0.13.24
•	ash: 3.11.3
•	ash_phoenix: 2.3.18
•	ash_postgres: 2.6.27
•	ash_authentication: 4.13.4 (installed in repro, but not required for the admin form)
•	phoenix_live_view: 1.1.19
•	phoenix: 1.8.3

Operating system

macOS Tahoe 26.1

Current Behavior

In AshAdmin, a many_to_many relationship managed via manage_relationship in a create/update action renders as a nested UUID "Id" input (i.e. "Office Ids -> Id"), instead of using a relationship selector (dropdown/typeahead) that displays records using the destination resource label_field.

Reproduction

Reproduction repo
https://github.com/fbutano/demo_admin

Steps to reproduce

  1. mix deps.get
  2. mix ecto.create
  3. mix ash.migrate
  4. mix phx.server

Then:

  • Open AshAdmin (see repo/router setup)
  • Create a couple of Office records
  • Go to User -> create or update

Expected Behavior

For the User.offices many-to-many relationship (through Membership), the form should render a relationship selector (dropdown/typeahead) and display Office records using:

admin do
label_field :name
relationship_select_max_items 10
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions