Bug 287832 - show comma separated list of versions in Fix For and Affects
Summary: show comma separated list of versions in Fix For and Affects
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: 3.2   Edit
Hardware: PC Mac OS X - Carbon (unsup.)
: P3 enhancement (vote)
Target Milestone: 3.3   Edit
Assignee: Pawel Niewiadomski CLA
QA Contact:
URL: https://studio.atlassian.com/browse/P...
Whiteboard:
Keywords:
Depends on: 287895
Blocks: 279334
  Show dependency tree
 
Reported: 2009-08-27 10:16 EDT by Pawel Niewiadomski CLA
Modified: 2009-09-24 15:15 EDT (History)
5 users (show)

See Also:


Attachments
Fix for this (18.13 KB, patch)
2009-08-27 10:18 EDT, Pawel Niewiadomski CLA
no flags Details | Diff
screenshot (7.88 KB, image/png)
2009-08-27 15:41 EDT, Steffen Pingel CLA
no flags Details
Improved patch (4.01 KB, patch)
2009-08-28 06:12 EDT, Pawel Niewiadomski CLA
no flags Details | Diff
Too long text is cut off (5.55 KB, image/png)
2009-08-28 06:13 EDT, Pawel Niewiadomski CLA
no flags Details
sample of 'due date' picker on a mac (35.27 KB, image/png)
2009-09-10 13:43 EDT, David Green CLA
no flags Details
sample date picker on ical (65.39 KB, image/png)
2009-09-10 13:44 EDT, David Green CLA
no flags Details
updated patch (10.43 KB, patch)
2009-09-11 16:49 EDT, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (7.48 KB, application/octet-stream)
2009-09-11 16:49 EDT, Steffen Pingel CLA
no flags Details
screenshot (8.95 KB, image/png)
2009-09-11 16:55 EDT, Steffen Pingel CLA
no flags Details
new screenshot with inplace dialog (10.38 KB, image/png)
2009-09-24 13:18 EDT, Shawn Minto CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pawel Niewiadomski CLA 2009-08-27 10:16:30 EDT
Fix For and Affects should list only versions that current issue is associated with. If user wants to modify versions open a dialog box with full list of versions (or show it by other means).

Do the same for Components.
Comment 1 Pawel Niewiadomski CLA 2009-08-27 10:18:34 EDT
Created attachment 145793 [details]
Fix for this

Here's a fix for this enhancement.
Comment 2 Thomas Ehrnhoefer CLA 2009-08-27 12:02:01 EDT
Interesting suggestions. It is much more readable, especially for repositories with a lot of versions. And it makes better use of the horizontal space.
However it seems to somewhat break with the UI look of the section. The missing borders for an editable field, are (especially if those entries take multiple lines) a bit weird (not sure how it would look with border though, especially since it is non editable). The pencil seems to not fit in the whole look, but that may just be my personal preference. The pencil should however be vertically centered like the label, not stick to the bottom.
Overall, if few versions are selected, it is much more readable. But if a lot of versions are selected, it gets harder (since every version has a different width). The additional dialog might also be considered a regression (since it is not possible to select a version with a single click) - especially in a new (unsubmitted) task this is an issue I would say.

Allmost all my negative points seem to be personal look and feel preferences though, so I think that should be a discussion among more people.

I wonder if, for the sake of quickly seeing what the selected versions are, a tooltip showing that comma separated list, appearing on hover over the existing table would be enough?
Comment 3 Pawel Niewiadomski CLA 2009-08-27 15:01:57 EDT
Well, fixing borders is one line of code. Pencil is at the bottom because I prefer it that way, that's also easy to fix.

I don't think adding a tooltip would be a solution here - users would not know that they have it there. I think that more important here is to have an easily readable form. List was unreadable. That fixes it.
Comment 4 Steffen Pingel CLA 2009-08-27 15:41:06 EDT
Created attachment 145847 [details]
screenshot
Comment 5 Steffen Pingel CLA 2009-08-27 16:25:13 EDT
That looks good Pawel. I am unsure about the border. It looks cleaner without it and the pencil should be sufficient to indicate that it's editable. I have added it to the agenda for the next Mylyn meeting to discuss and review the UI. It could make sense to use that same UI for other connectors as well: http://wiki.eclipse.org/Mylyn_Meetings#Next_Meeting.

I noticed a few minor problems when I tested the patch: 
* The font is not set to the task editor font.
* Incoming changes are not properly indicated. The blue background should be applied to the whole control (marked in read in the screenshot).

Shawn is currently working on generalizing the keyword selection dialog which has an almost identical UI. I would suggest to wait until bug 279334 is resolved then we can reuse the same code for JIRA and fix up the remaining nits.
Comment 6 Steffen Pingel CLA 2009-08-27 18:54:16 EDT
Pawel, can you refactor the patch to make use of CheckBoxTreeDialog and CheckBoxMultiSelectAttribiteEditor which Shawn added as part of bug 287899?

On a side note, it seems a bit heavy weight to use a RichTextEditor control since neither hyperlinking nor context assist are needed for the version or component selection. Have you considered using a simple Text control instead?
Comment 7 Pawel Niewiadomski CLA 2009-08-28 02:43:29 EDT
Sure, I can refactor it.

Yes, I did thought about using simpler widget but decided to use RTE as sooner or later will add there hyperlink support.
Comment 8 Steffen Pingel CLA 2009-08-28 03:07:14 EDT
> Yes, I did thought about using simpler widget but decided to use RTE as sooner
> or later will add there hyperlink support.

Can you elaborate on the the purpose of the hyperlinking? An RTE is fairly expensive in terms of resources and the hyperlinking support comes with some complexity such as registering a detector. I would consider a more lightweight widget such as Text or Link if clicking components only triggers the selection dialog but does not require extensibility or separate actions for each component.
Comment 9 Pawel Niewiadomski CLA 2009-08-28 06:12:44 EDT
Created attachment 145917 [details]
Improved patch

Thanks Steffen for pointing out that Shawn implemented this widget idea into commons. That's great news as this kind of a widget would be usefull in other places.

I'm attaching a newer version using CheckBoxMultiSelectAttributeEditor.

One thing though - I modified CBMSAE to support two important things:

- if user clicks Edit, then OK in the dialog box but doesn't change the task editor will stay in unmodified state (I compare new values to the old ones), originally the editor pointed out changes but it shouldn't in my opionion as nothing was changed

- also if user selects a lot of options text will be cut off (check the screenshot I'll attach), that's unacceptable in my opinion - I added a hack to resize the text widget and the whole section. please implement a proper way to do it that can be re-used in other AttributeEditors
Comment 10 Pawel Niewiadomski CLA 2009-08-28 06:13:55 EDT
Created attachment 145918 [details]
Too long text is cut off

Check text near Edit button. The widget should not cut off it there.

Please provide a proper way to resize sections when content is changed.
Comment 11 David Green CLA 2009-09-10 13:43:00 EDT
Created attachment 146889 [details]
sample of 'due date' picker on a mac
Comment 12 David Green CLA 2009-09-10 13:44:44 EDT
Created attachment 146890 [details]
sample date picker on ical
Comment 13 Steffen Pingel CLA 2009-09-11 16:49:53 EDT
Created attachment 147003 [details]
updated patch
Comment 14 Steffen Pingel CLA 2009-09-11 16:49:56 EDT
Created attachment 147004 [details]
mylyn/context/zip
Comment 15 Steffen Pingel CLA 2009-09-11 16:55:11 EDT
Created attachment 147006 [details]
screenshot
Comment 16 Steffen Pingel CLA 2009-09-11 16:56:06 EDT
Thanks Pawel. I have added a call to reflow the form when the size of the text field changes. This is necessary to properly update the scroll bars of the form. 

There is some potential for improving the edit UI, e.g. by using a tooltip-like shell without a title for selecting items instead of the modal dialog. We could also consider replacing the Edit button by an icon that only shows on hover. Most JIRA editors will have three additional buttons now for Affects Versions, Fix Versions and Components which I find looks a bit cluttered.
Comment 17 David Green CLA 2009-09-23 17:57:23 EDT
I've tested out the latest changes, and they're excellent.  It's much easier to see what's selected when there's a long list of items.  Also the presentation is more compact.

Any chance of having a 'clear' button in the pop-up dialog that deselects all items?  When there are many items (eg: 100's) it's a pain to have to scroll through them all to deselect one or two items.
Comment 18 Steffen Pingel CLA 2009-09-23 18:22:12 EDT
Thanks for the feedback David. Good idea to add a clear button. I have added a comment to bug 286286 which has discussion to address remaining nits in the scheduled date picker which shares the implementation.
Comment 19 Shawn Minto CLA 2009-09-24 13:18:13 EDT
Created attachment 148037 [details]
new screenshot with inplace dialog
Comment 20 Mik Kersten CLA 2009-09-24 13:18:35 EDT
Good stuff.  Thanks for the attachments David.  Here's the UI review feedback from the Mylyn call, Steffen can elaborate:
* Make the keyword a border-less shell (similar to an InfoPopupDialog) and have it appear below the Edit button.
* Retain the current layout, including the filter text box.
* Retain the OK/Cancel buttons for now, we could consider getting rid of them later.
Comment 21 Wojciech Seliga CLA 2009-09-24 13:37:02 EDT
Not sure how the dev process looks like here, but wasn't this issue marked as resolved some time ago, and there are still new ideas and requirements (which is great) coming here? 
Shouldn't they land at a different issue (like bug 286286) or cause this issue to be reopened? Are the last Mik's suggestion reflected anywhere, but this resolved issue?

Just let me know, as I would like understand better how we are suppose to track such stuff on bugzilla here.
Comment 22 Steffen Pingel CLA 2009-09-24 14:34:39 EDT
The recent comments were added as part of a UI review that we held on today's Mylyn call. The usual process is to reopen a bug when additional work needs to be done but in this case we will be tracking that on bug 286286 since the implementations overlap. Please feel free to add your thoughts on bug 286286 if you want to chime in.
Comment 23 Wojciech Seliga CLA 2009-09-24 15:15:09 EDT
Thanks Steffen. Now it's clear.