ash_admin icon indicating copy to clipboard operation
ash_admin copied to clipboard

Ash.Unions don't render correctly

Open joshprice opened this issue 2 years ago • 1 comments

Describe the bug

An embedded resource with a field defined as an Array of Unions renders like this in Ash Admin:

Screen Shot 2023-08-21 at 6 11 48 pm

To Reproduce

Setup a resource with a field that is an array of Union types.

Expected behavior

Another field containing list of non-union embedded types renders fine.

Presumably it's possible to have this render in some sensible default way despite the fact that each item could be different?

Runtime

  • Elixir 1.14.4
  • Erlang 25.3.2
  • OS mac
  • Ash main
  • Ash Admin main

joshprice avatar Aug 21 '23 08:08 joshprice

Yep! We can do this, just hasn't been implemented yet.

zachdaniel avatar Aug 21 '23 11:08 zachdaniel