Closed johnrake-betablox closed 4 weeks ago
@gvan12 definitely curious about your thoughts on this feature as well. We're going to need it for a few clients moving forward.
The problem is our admin show/detail pages are essentially hardcoded to basic dashboard configuration needs - show it's details and related data for ease of use. But what happens when we want custom logic or components on this page. For example, sending a user a password reset email. That's only for the user model and mostly a UI consideration with one api route.
I took a shot at pure configuration model in the description link, but this is so limited. The challenge is telling the UI/frontend to what component to render and with what props. I don't know if there's an easy way to tell the UI what it should render from the backend. Or maybe we register a bunch of components on the frontend and the admin configuration just contains an array of strings to components to render
Working on a POC here - https://github.com/BetaBlox/skybolt/pull/162
Updating POC organize and branding it widgets
https://github.com/BetaBlox/skybolt/pull/166
I ended up making the entire details page customize through widgets.
https://github.com/BetaBlox/Marryment/pull/18