-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(dashboard,medusa): Add updated Metadata Form #8084
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
6 Skipped Deployments
|
This looks super nice! One thought (non-blocking, if-minor) could we display the value as JSON in the tooltip when you hover on a disabled row? That way you'd at least be able to see the data. We'd have to consider how this would look for long data, but wanted to hear if you think this even makes sense to do first?
Do you think it's worth the effort to tackle this right now? The non-primitive values would only be there when you do something with these values programmatically so the need for an editor might not be that high anyway. |
Re: JSON editor - I don't think it's a high priority thing at all, in general Metadata in admin is properly rather niche. It's more something that would be nice to have at some point down the line. Also nested data structures in V2 seems to be broken atm, see TRI-2. I think adding the data as a tooltip could be an okay solution, but you are right that we need to think about how handle cases where it's a large object/array, as Tooltips can't be scrolled. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Nice work 👍
Would it be too crazy to open the JSON drawer as with any other raw JSON on detail pages? I don't know if this will look weird on top of the modal. Aside from a possible solution to this use case, we could make this the general approach for displaying any JSON in any context. Again, I am not sure if this will work for all future cases, but having some consistency here could make sense so that the users know what to expect for JSON and how to navigate it. |
We could maybe use the new StackedDrawer component, I think this could be pretty clean looks wise. There is just something a little weird in having to open and edit modal, that then opens another modal just to view something. Maybe we should run this by Ludvig, I'll open a ticket for showing disabled metadata fields, and merge this for now, so we can start getting the functionality in on all pages. |
Sounds good! |
What
Note