BetaBlox / skybolt

A starter template for a full stack nestjs/react monorepo
0 stars 0 forks source link

Admin model/record action cards #115

Closed johnrake-betablox closed 4 weeks ago

johnrake-betablox commented 7 months ago

https://github.com/BetaBlox/Marryment/pull/18

johnrake-betablox commented 1 month 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

johnrake-betablox commented 1 month ago

Working on a POC here - https://github.com/BetaBlox/skybolt/pull/162

johnrake-betablox commented 4 weeks ago

Updating POC organize and branding it widgets https://github.com/BetaBlox/skybolt/pull/166

johnrake-betablox commented 4 weeks ago

I ended up making the entire details page customize through widgets.

https://github.com/BetaBlox/skybolt/pull/169