Problem/Motivation
The crop list is confusing in UX because it is not following common patterns in Drupal.
- Titles "Crop List" is way too large title (unusual).
- The black outlined box does not represent the aspect ratio. Instead it just outlines the aspect text.
- The items in the list don't look like an active clickable item.
- Strange behavior if you just click into the image
- Strange behavior if you delete a crop: the image just disappears
With the example
- 4:3 and 16:9 are output twice in the title (if the aspect ratio is already added to the crop title..). This is redundant information. What would be a real best practice?
Proposed resolution
User interface changes
Comment | File | Size | Author |
---|---|---|---|
#22 | crop_widget_crop_list-2625026-22.patch | 81.83 KB | woprrr |
#22 | interdiff_crop_widget_crop_list-2625026-22.patch | 18.44 KB | woprrr |
#21 | Screen Shot 2015-12-07 at 15.21.04.png | 343.35 KB | Lukas von Blarer |
#21 | Screen Shot 2015-12-07 at 15.20.52.png | 375.21 KB | Lukas von Blarer |
#21 | Screen Shot 2015-12-07 at 15.18.29.png | 55.52 KB | Lukas von Blarer |
Comments
Comment #2
miro_dietikerWhen switching the image field into a multi value field, there is an operations column.
We think that "Crop" is a button that should appear in the operation column.
Comment #3
Lukas von BlarerComment #4
Lukas von BlarerAttaching a patch with the first draft of the new widget. Work in progress...
Comment #5
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedCurrent status in the attached screenshots.
TO-DO: Actual cropping of the image and display of the cropped image in the table.
Comment #6
woprrr CreditAttribution: woprrr as a volunteer commentedInitially the idea was to offer an ui a little more "sexy" than what we had in the old crop module.
Currently this is a good interface to better integrate drupal it's true, but for user expérience, I think this UX loses much the side "sexy" of the widget.
What may be possible it would be to find an interface for the plugin to be able to keep the basic interface system (Drupal Way) and a more graphical and intuitive interface (and therefore able to offer a really cool features that will add custom interfaces to the crop module). The idea that would provide a system of LIKE as media_entity providers, who will be in charge of rendering elements and necessarily generate within PROCESS.
What are your views on the subject?
Comment #7
sasanikolic CreditAttribution: sasanikolic at MD Systems GmbH commentedTogether with @miro_dietiker, @slashrsm and @Lukas we discussed about it. We thought about implementing a completely new UI, but that would take too much time and complexity to figure out how to restructure everything. Since the current solution is very similar to the vertical tabs (used in core), we can use that as a starting point and implement the same features as we have currently. So we will have all the tabs with ratios and in the content a checkbox to enable and disable it, together with the image to crop (or with the current cropping applied). This would also solve the broken responsive design that we have now and with it, we could get rid of all the custom CSS and javascript.
We will start working on it shortly and post some mockup screenshots.
Comment #8
woprrr CreditAttribution: woprrr as a volunteer commentedThank you for that overview , I actually partler with slashrsm so we'll see for a redesign more "standard" . My idea for doing this would be to do like what I propose with IEF .
Thus we can keep the original class and move the formatting function "process" current widget in a "complex" and see for a "standard" version of what we 'd FieldWidget " Complex " & "Standard". We could also take a class like " Manager " to keep all common areas in both widgets in one place and spread it in the various widgets.
What do you think ?
Comment #9
woprrr CreditAttribution: woprrr as a volunteer commentedComment #10
Lukas von Blarer@sasanikolic and I replaced the ratio list with vertical tabs. The cropping itself is broken because now we will have a cropping area per ratio.
@woprrr: what do you think?
Comment #11
Lukas von BlarerComment #12
woprrr CreditAttribution: woprrr as a volunteer commentedTo simplify the synchronization and advancement, I was creating a specific branch redesign and standardization of the UI,
https://github.com/woprrr/image_widget_crop/tree/standardize-ui
Comment #13
woprrr CreditAttribution: woprrr as a volunteer commented@Lukas von Blarer
I have not had time to move forward on the JS part, but I have noticed that you remove the items ('thumb-w', 'thumb-h') it is important not !! it's elements are essential to the calculation of dimenssions out of the way to real thumbnail size picture. @see getThumbnailCropProperties(). We must add this, we can ping me in IRC.
Comment #14
Lukas von BlarerI created a final pull request for this: https://github.com/woprrr/image_widget_crop/pull/14
There are several follow-up issues which I will file in the next days.
Comment #15
woprrr CreditAttribution: woprrr as a volunteer commentedI just have a comment about this TODO. For the record we have no means in the code to find the final size of the thumbnail before its creation, because we will not know the dimenssions This is due to the scale of the width. That's why I used jQuery to give me the size of the thumbnail and fournisait has the calculation function. I think we naurons no other way to guess the height to retrieve the delta load image.
Comment #16
Lukas von BlarerAttaching the patch of all the changes we did last week at the sprint. Lets get this committed and move forward with follow-ups.
Comment #17
miro_dietikerwoprrr, the sprint from last week is over and i fear that if we don't get this in quickly people will not have enough focus and time to complete it.
Please define what is absolutely critical for a commit in your opinion and we will try to push the remaining things.
Otherwise, please commit it as is and create followups.
IMHO the current approach is nicely aligned with Drupal UI components and looks very usable.
Do you agree with the direction (or is your previous UI still candidate to coexist)? I would appreciate if we can focus all activity to reach a stable V1 with as few resources as possible together.
Comment #18
woprrr CreditAttribution: woprrr as a volunteer commented@miro_dietiker
Tonight I will finish the review of the "standardized" version and the merge with the different tickets. In terms of the solution that we have seen done for coehexister both interfaces, I'll go on a simple way. Merge the standard version and once I finalize the version with a more complex interface with cropper I merge into a second widget after.
Comment #19
miro_dietikerThat sounds great, thank you!
I'm pretty sure the solution will evolve a lot over the coming weeks, at last in small ticket steps. We discussed so many small improvements / ideas.
Once merged i will check the whole calculation of crop pixels and crop view port scaling. From the discussions and some code i think we should improve it a bit to get rid off some complexity.
Comment #20
woprrr CreditAttribution: woprrr as a volunteer commentedThere is a problem now, the corp has the record is not taken into account. If I edit the content and I made a new area when the crop is considered. I think having remove $ verification entity-> new () is not a very good idea.
A publishing corp zone for the first element, it is very small. @see screenshots.
Comment #21
Lukas von Blarer@woprrr What browser are you using?
Here are the requested screenshots of the working UI.
Widget after uploading the image:
Widget after opening the cropping accordion:
Widget after cropping:
Comment #22
woprrr CreditAttribution: woprrr as a volunteer commentedI v fixed all "criticals" bugs for provide an version fonctional with standardization ui.
Comment #23
Lukas von BlarerSetting to RTBC. Lets create follow-ups for the remaining issues.
Comment #25
woprrr CreditAttribution: woprrr as a volunteer commentedGreat job all ! Thanks !