-
-
Notifications
You must be signed in to change notification settings - Fork 66
Open
Labels
enhancementNew feature or requestNew feature or request
Description
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
- mix deps.get
- mix ecto.create
- mix ash.migrate
- 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
Labels
enhancementNew feature or requestNew feature or request