Add a view for the field type Dict in Studio. - #2478
Conversation
|
Thanks for adding this, Anton. We definitely need a Dict view. Here are some thoughts from having added a dummy Dict setting to video_module so I could try out the UI:
|
There was a problem hiding this comment.
Forgot to change description (copied from List?).
There was a problem hiding this comment.
Forgot to change description (copied from List?).
Yes, because it has pretty similar behavior. Fixed. Thanks.
I believe the user will be more confused when he changes the key or adds a new value, fields will reorder.
Agree.
Or beneath the labels.
Fixed. Thanks. |
|
FYI, @frrrances is on vacation. I think she returns tomorrow. |
There was a problem hiding this comment.
I would just use the basic width here since height isn't needed:
width: 45%;
|
There is a bug with the Add button getting disabled if you press Revert with an empty entry present (similar to BLD-821). |
|
@polesye The placement of the revert/clear button is kind of troublesome, and the tight spacing of the two input fields isn't great either... Ideally, I would like to clean up the editor as we mentioned which would solve for both of those problems, but will take a little bit of time. Can you let me know whether the timeline on this would allow for another week for cleanup? |
@cahrens I added a fix for both editors (List and Dict). |
|
@frrrances your comments are addressed.
It'll block us. Probably, it will be better to clean up this editor in separate PR. |
|
@polesye It would be nice to have a unit test covering the bug fix (a test that fails without your change). I'm seeing some strange shifting of text in the settings "modal" when I move the mouse over elements. I'll show it to @frrrances to see if she has an idea what is causing it. This is on Chrome/Ubuntu. An example is if I put my mouse over the "Add" button, the + in front of Add shifts to the left and then back to the right. Also, the help text shifts. |
@cahrens done. |
|
Thanks. I showed the shifting problem to @frrrances and she is going to look. Hopefully it is reproducible for other people! |
|
Turns out the "shifting" bug is existing on master. 👍 After rebasing to squash commits. Would love to see in the future the revert button move locations and a rework of the dialog for more room. |
|
@polesye I moved the revert button down and made a few css adjustments to give the dict more room and handle the awkward layout. (if you see any issues with those changes, feel free to revert them or chat with me tomorrow.) either way, 👍 |
Add a view for the field type Dict in Studio.
|
@mhoeber This PR changed formatting of settings editor for components (video, problem, html, etc.). You may need to update screen shots in the documentation. It will be in next week's release. |
In this PR is added a view for the field type Dict in Studio.
Ticket: BLD-658.
@cahrens , @frrrances please review.