Custom type not showing in Admin UI update form

I have a custom type that wraps %Duration{} with some custom logic for parsing it from a string then converting it back to a string. I've implemented the protocol Phoenix.HTML.Safe which just calls my function to return a string of the duration. My custom duration shows up in the primary read action of the Admin UI. It also shows up when I click the little circled into button on a row. But when I click the edit button on the row, the input field for the duration is empty instead of showing the current value. Why is that?
1 Reply
ZachDaniel
ZachDaniel4mo ago
Hmm...that's a good question. Could you maybe make a demo app or modify the dev app embedded in ash admin and share that?

Did you find this page helpful?