-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Custom asset field editor ux redesign #18577
base: main
Are you sure you want to change the base?
Conversation
Quick review after testing this early rework:
|
While discussing drag controls, in fact, let's remove them completely:
|
Moar:
|
I think users will expect all of the native fields to be present already, especially if they are fields related to capacities they enabled. Also, if they are creating multiple custom asset types they may get annoyed if they have to keep enabling all of the native fields. This may be a place where a discovery tutorial could be useful, or just try to have an intuitive UI. I find the sidebar design intuitive as it is (maybe hide the section headers when they are empty), but I don't know how other people will see it. |
|
ok.
I would like to see how it renders |
Ok for the current state. I guess we should always keep "custom fields" section because the button for adding will always be present. Apart this, PR is ok for me, please fix tests, and we will go for merge. |
3a8108a
to
9ca2f86
Compare
Remaining test failure doesn't seem related at all. |
bc84fcf
to
e3c373a
Compare
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.
When the edit form of a custom field that has just been added is opened, its options/default values are not shown in the form. They become available once the main form is saved.
Here is my general feeling UI wise. 4) The separation between the main area and the side panel would be clearer with added contrast using a different background color like we do for tickets 6) On the same modal, the primary action should be on the right to be consistent with the rest of GLPI's modal. Examples of ghost and white button from tabler demo for reference: 7) Save button icon should use tabler icon instead of font awesome, and probably needs a 8) I feel like every tab should have a clear title at the start of its content 9) Grey items on white background feels wrong. I don't have the UI designer knowledge to justify it, but I "feel" this is something that could be avoided when possible. How was it done on your reference image @orthagh ? 10) Maybe the add field button should be in the main panel, at the end of the fields ? I say this because when I click a big "Add" button which has the shape of a field, I expect the field to be placed at its position, if that make sense ? I'm thinking of it because I did something similar a few days ago for the tiles configuration: 11) There is no way to delete a custom field that is here: You have to insert it, edit then delete permanently which is not very intuitive. 12) The drag and drop placeholder is bigger than the items in the list: |
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.
See previous comment.
I have a few things to say about the previous comment, but not the time right now, wait a couple of hours. |
So,
|
Regarding this:
How about a trashcan button when hovering the field like its done for actions on fields in the main panel ? Ok for the rest. |
Point 3 and 7 aren't related to this PR. The gap here exists for all forms using the generic_show_form template (or any individually using the My opinion on 8 is it is fairly intuitive without a header. The user navigated to the Fields tab so it makes sense that you can do stuff with/customize the fields here. The Capacities and Translations tabs don't have a header either. |
The other changes have been addressed. The placeholder sizing was exactly the same as the sortable elements previously. The visual discrepancy was because the field previews had margins so they weren't all directly next to each other. The sortable elements all are 50% or 100% of the container size depending on if the field is full width or not. I've tried adding a hack to make the placeholder look like the displayed content, and while I succeeded, it also made sorting the fields a lot less usable at least on my end. |
1, We may add a bit more space on the right of the border (the separation between viewport and available fields), it's a bit tight right now (equalize with the space on the left) 3,7: I add this to backlog (#18744 & #18745) 8, ok for title absence, honestly I was not that convinced by the need on this particular page.
I didn't find any usability issues, do you have hints?
@cconard96 could you test that? |
Maybe we shouldn't use the |
It is mostly used for assets, but honestly it is used in other places even with overriding the entire fields block just because it is nice and easy to use as a starting point to get the same layout, buttons, and create/modification date sections. |
I understand that, but if it isn't compatible with the layout you want to achieve (margin issues) and that you don't use most of its benefits (no form fields and no creation/modification date) then it might be the wrong tool for the current task. |
Checklist before requesting a review
Description
Fixes #18406