Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 315921 - fix attachment details nits
Summary: fix attachment details nits
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 minor (vote)
Target Milestone: 3.4.2   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 324263
  Show dependency tree
 
Reported: 2010-06-06 22:52 EDT by Steffen Pingel CLA
Modified: 2010-09-09 19:11 EDT (History)
3 users (show)

See Also:


Attachments
screenshot (120.75 KB, image/png)
2010-06-06 22:52 EDT, Steffen Pingel CLA
no flags Details
mylyn/context/zip (6.16 KB, application/octet-stream)
2010-06-06 23:08 EDT, Steffen Pingel CLA
no flags Details
screenshot of new UI (51.16 KB, image/jpeg)
2010-06-21 15:36 EDT, Frank Becker CLA
no flags Details
patch (21.91 KB, patch)
2010-07-25 14:34 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (18.95 KB, application/octet-stream)
2010-07-25 14:34 EDT, Frank Becker CLA
no flags Details
new UI screenshot (84.90 KB, image/png)
2010-07-25 14:59 EDT, Frank Becker CLA
no flags Details
patch V2 (21.70 KB, patch)
2010-08-08 10:50 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (18.72 KB, application/octet-stream)
2010-08-08 10:50 EDT, Frank Becker CLA
no flags Details
screen shot (29.80 KB, image/png)
2010-09-01 21:32 EDT, Steffen Pingel CLA
no flags Details
backported patch (23.84 KB, patch)
2010-09-01 22:07 EDT, Steffen Pingel CLA
no flags Details | Diff
patch V4 (2.20 KB, patch)
2010-09-05 03:12 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (12.67 KB, application/octet-stream)
2010-09-05 03:12 EDT, Frank Becker CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2010-06-06 22:52:17 EDT
The attachment details dialog does not follow all UI guidelines which should be easy to fix:

* The dialog needs a title.
* The page title should say "Attachment Details"
* The page descriptions should say "Modify attachment XYZ on bug ZYX."
* Move the obsolete checkbox on the same line as filename?
* The URL field should move above Advanced.
* The Advanced section should not be indented.
* The dialog should not be repacked when toggling Advanced.
* Borders for the flag input fields should not be form borders but use the standard platform style.
* The comment field should fill when making the dialog taller
Comment 1 Steffen Pingel CLA 2010-06-06 22:52:42 EDT
Created attachment 171228 [details]
screenshot
Comment 2 Steffen Pingel CLA 2010-06-06 23:08:06 EDT
Fixed the dialog title.
Comment 3 Steffen Pingel CLA 2010-06-06 23:08:08 EDT
Created attachment 171230 [details]
mylyn/context/zip
Comment 4 Frank Becker CLA 2010-06-06 23:59:54 EDT
Should I do the other points?
Comment 5 Steffen Pingel CLA 2010-06-07 00:12:26 EDT
If you are up for it, please feel free to start hacking on this. Since it's only nits we should wait with committing this until the release is out.
Comment 6 Frank Becker CLA 2010-06-21 15:36:15 EDT
Created attachment 172361 [details]
screenshot of new UI

We use  SashForm so you can resize the two parts sash with is 10 pixel.

Thougths?
Comment 7 Steffen Pingel CLA 2010-06-23 18:00:28 EDT
I am not sure if we need to make that resizable. Do we get a benefit for the extra complexity?
Comment 8 Frank Becker CLA 2010-06-24 15:04:16 EDT
(In reply to comment #7)
> I am not sure if we need to make that resizable. Do we get a benefit for the
> extra complexity?


Actual we use SashForm so it is no extra complexity.

One part is for the ScrolledComposite (with the Advanced Section) the other for the Comment.

I think it is better to make clear that you can change the Weights from 75 / 25 to a value that better fit the number of  flags that are defined (if visible).
Comment 9 Steffen Pingel CLA 2010-07-09 21:00:44 EDT
I am mostly worried about the extra complexity for users since there would be two components to resize, the dialog and the comment area. Is is not possible to make the comment area grab all excess space?
Comment 10 Frank Becker CLA 2010-07-10 11:51:28 EDT
(In reply to comment #9)
> I am mostly worried about the extra complexity for users since there would be
> two components to resize, the dialog and the comment area. Is is not possible
> to make the comment area grab all excess space?

Yes we can do this but what is if we have many flags and there is no space left?

Thoughts?
Comment 11 Steffen Pingel CLA 2010-07-12 14:24:23 EDT
Wou(In reply to comment #10)
> (In reply to comment #9)
> > I am mostly worried about the extra complexity for users since there would be
> > two components to resize, the dialog and the comment area. Is is not possible
> > to make the comment area grab all excess space?
> 
> Yes we can do this but what is if we have many flags and there is no space left?

Wouldn't the flags still be in a nested scrollable?
Comment 12 Frank Becker CLA 2010-07-12 23:51:37 EDT
(In reply to comment #11)
> Wou(In reply to comment #10)
> > (In reply to comment #9)
> > > I am mostly worried about the extra complexity for users since there would be
> > > two components to resize, the dialog and the comment area. Is is not possible
> > > to make the comment area grab all excess space?
> > 
> > Yes we can do this but what is if we have many flags and there is no space left?
> 
> Wouldn't the flags still be in a nested scrollable?

Yes, the aew under the Advanced Expandable.
Comment 13 Frank Becker CLA 2010-07-25 14:34:44 EDT
Created attachment 175179 [details]
patch

This patch contains all points from the Description.

This Dialog now use a separate section for every repository. 
So you can set the state of the advanced and change the size of the comment box.
Comment 14 Frank Becker CLA 2010-07-25 14:34:47 EDT
Created attachment 175180 [details]
mylyn/context/zip
Comment 15 Frank Becker CLA 2010-07-25 14:59:40 EDT
Created attachment 175182 [details]
new UI screenshot
Comment 16 Mik Kersten CLA 2010-07-29 13:47:58 EDT
The scroll movable sash adds too much UI complexity for too little benefit.  We should get rid of that and have the Comment section grab the space that's needed.
Comment 17 Steffen Pingel CLA 2010-07-29 14:37:52 EDT
Agreed, it would best if this worked similar to the attach file dialog.
Comment 18 Steffen Pingel CLA 2010-07-30 18:47:28 EDT
Thanks for doing these changes, Frank. Let's look at wrapping this up together for 3.4.2.
Comment 19 Frank Becker CLA 2010-08-08 10:50:37 EDT
Created attachment 176110 [details]
patch V2

comment#16 and comment#17 stuff is included.

We can use this for the backport.
Comment 20 Frank Becker CLA 2010-08-08 10:50:39 EDT
Created attachment 176111 [details]
mylyn/context/zip
Comment 21 Frank Becker CLA 2010-08-08 10:52:03 EDT
(In reply to comment #19)
> Created an attachment (id=176110)
> patch V2
> 
> comment#16 and comment#17 stuff is included.
> 
> We can use this for the backport.

Commit to HEAD.
Comment 22 Steffen Pingel CLA 2010-09-01 21:32:40 EDT
Created attachment 178011 [details]
screen shot
Comment 23 Steffen Pingel CLA 2010-09-01 22:07:52 EDT
Created attachment 178012 [details]
backported patch
Comment 24 Steffen Pingel CLA 2010-09-01 22:14:27 EDT
I have committed the back ported patch to the e_3_6_m_3_4_x branch. Frank, could you take a look if the changes look sane to you?

I have opened bug 324263 to fix the problem with the native borders. I don't think there is a way to make that work properly with the current attribute editor framework.
Comment 25 Frank Becker CLA 2010-09-02 17:09:51 EDT
(In reply to comment #24)
> I have committed the back ported patch to the e_3_6_m_3_4_x branch. Frank,
> could you take a look if the changes look sane to you?
> 

Yes the back ported patch is OK so I close this bug.
Comment 26 Steffen Pingel CLA 2010-09-02 17:43:59 EDT
Further suggestions from today's meeting:
* Make label of advanced section bold
* Look into redraw problem when expanding section
Comment 27 Frank Becker CLA 2010-09-05 03:12:41 EDT
Created attachment 178222 [details]
patch V4

Requests from Comment#26 are now included.
Comment 28 Frank Becker CLA 2010-09-05 03:12:44 EDT
Created attachment 178223 [details]
mylyn/context/zip
Comment 29 Frank Becker CLA 2010-09-05 03:14:26 EDT
Hope that we are done now.
Comment 30 Steffen Pingel CLA 2010-09-08 18:08:16 EDT
Patch v4 was also applied to the e_3_4_m_3_x branch.
Comment 31 Steffen Pingel CLA 2010-09-09 19:11:59 EDT
Shawn verified that the redraw problem is now fixed on Windows. Thanks for your patience, Frank!