9 Replies
Are these the policies defined in
user.ex
?Those are Surface components, not part of Ash.
A lot of here have used Surface, and I think most of us think it's pretty cool, but not really necessary now w/ the most recent Phoenix releases.
Personally I'm going back to using plain Phoenix LiveView components how that we have
heex
, formatting and props.I was just wondering how the User Settings page of Ash HQ was working so i can implement my own 😅
Yeah, it's similar to normal Phoenix components, you just need to translate a little of the syntax.
data(email_form, :map)
This is a surface component but are we defining this email_form
somewhere?
or are these the surface forms?data
is a way to declare state for a LiveComponent/LiveView, docs: https://surface-ui.org/data
This allows surface to validate that it is being set in the assigns
and what type it should be.yeah i read it. So, if i want to use it through ash resources then i can define these actions and create forms for them, right?
Right.
as they are settings of user like changing email name or password. these three actions can be defined in user resource.
Thank you for the clarification @frankdugan3 🙌🏻