Repository navigation
Allow extending or replacing individual elements of built-in admin sections #17560
radeknapora
started this conversation in
Feature Requests
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
With the editor view I can hide a built-in section, and with widgets I can add my own. But there's nothing in between. If I want to change one thing inside a section, like adding a field to the product edit modal or making the Media section open a different picker, I have to hide the whole section and rebuild it from scratch: the section, its modals, the forms, validation, query invalidation. Then I maintain that copy and keep it in sync with every Medusa release.
The backend already handles this well. Workflows have hooks and
additional_data, so I can extend product create/update without touching the core flow. The admin has no equivalent, so the extension stops halfway: the data is there, but there's no clean way to edit it where merchants expect it.Two examples from my project:
additional_data). They belong in the product edit modal, but they can only live in a separate widget with its own edit drawer.What would help, roughly in order of scope:
additional_data. This alone would cover most cases I've seen.product.media.picker,product.edit.form.after) where a plugin can render or replace one element.Open questions:
Related: #8288 (same problem with the options modal), #6324 (forking the dashboard as a workaround), #5571
All reactions