Closed Bug 738333 Opened 12 years ago Closed 11 years ago

Improve layout of filter panel

Categories

(Tree Management Graveyard :: OrangeFactor, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: mcote, Unassigned)

References

()

Details

(4 keywords)

Attachments

(3 files, 5 obsolete files)

The filter panel on the Orange Factor, Bug Count, and Bug Distribution is not great. The main problem is that it takes up a lot of vertical space, reducing the space available for the main graph, which is the most important aspect of the pages.

For starters, the panel should be hidden by default (i.e. if no filters are applied). A button can open it, and it should stay open once the page is reloaded with filtered data (so we can see what is being filtered). We could refine this further by collapsing the include and exclude filter portions when they aren't used, since typically a user will use one or the other (though it is possible to use both).

A bigger goal would be to reduce the space that the filters take when they are all displayed. Perhaps we could move it to the side, or reduce the font size a bit, or something. I'm not sure about this, exactly.
Assignee: nobody → rohan.dalvi
Status: NEW → ASSIGNED
Keywords: css2, fonts, html4, js1.7
Just have a look at the UI button, thats it. I just quickly made it. I am yet to define the onclick. Just to make sure we are on the same track.
Okay those are interesting ideas. I like the second one best. But I think that it is important to keep the filter controls always visible when there are filters applied. This makes it obvious what the filtered values mean. So an overlay won't work, because it obscures the graph when it is shown.

So I think I'll change the idea of this bug a bit and actually make it a bit simpler. Instead of having the filter controls be hide-able, can you just move them to the left of the graph? You can shrink the width of the text inputs (they could be half the size, or even a quarter) and the font size of all the controls so that it doesn't take up too much size. Then you can increase the vertical size of the graph, so that it is more prominent, which is the main goal of this bug (while keeping it clear when, and what, filters are applied).

I won't go over your patches line by line yet. When you have something as I've described above, you can submit another patch (just mark the previous patches as obsolete). Thanks!
Haven't heard back in a long time, so unassigning this.
Assignee: rohan.dalvi → nobody
Status: ASSIGNED → NEW
Whiteboard: [good first bug][mentor=mcote][lang=js]
I'm new to contributing to Mozilla and would love to try help out with this bug.
Attachment #608612 - Attachment is obsolete: true
Attachment #608661 - Attachment is obsolete: true
Great!  Since this probably requires changes just to the front end, you can check out the code (http://hg.mozilla.org/automation/orangefactor) and just load html/index.html.  See README.txt for more.

If you need help or advice, I and other OrangeFactor developers hang out in #ateam on irc.mozilla.org.
Thanks Mark!

I'll pull the code and work on it. Will keep you updated.
Thanks for the patch!  I committed a big code-formatting patch a couple days ago, which broke your patch, but I cleaned it up and am reattaching it (plus I believe you forgot a '</form>', which I added).

I tried it out and it works great.  It is an improvement in screen real estate, but, as I feared, it looks kind of squished.  I'm going to think about it a bit more, but if you're willing to keep at this bug, I'll use you to prototype some more ideas. :)
Attachment #731022 - Attachment is obsolete: true
Attachment #731022 - Flags: review?(mcote)
Attachment #738612 - Flags: review?(mcote)
Comment on attachment 738612 [details] [diff] [review]
Proposed patch for filter layout, with filters moved to the left of the graph. (unbitrotted)

Review of attachment 738612 [details] [diff] [review]:
-----------------------------------------------------------------

The patch looks great as it is, but one tiny change I'd like is to make the three different filter types (the dropdowns, the include filter, and the exclude filter) stand out a little.  Probably easiest to just put them in divs with small margins and change the background colour to something a bit lighter.  Hope that makes sense..  You can create a new patch for that on top of the old one.  Or I can just do it myself when I commit your patch, since it's simple.

With that change I'd be happy to deploy this.  We can continue to work on improvements if you're willing!  Thanks so much for your help!
Attachment #738612 - Flags: review?(mcote) → review+
Also hello@chenzihui.com, feel free to assign this bug to yourself.
Whiteboard: [good first bug][mentor=mcote][lang=js] → [mentor=mcote][lang=js]
What do you think of the new look, edmorley?
Flags: needinfo?(emorley)
Comment on attachment 738612 [details] [diff] [review]
Proposed patch for filter layout, with filters moved to the left of the graph. (unbitrotted)

lgtm :-)

The only additional change we could make is to move the "Exclude resolved bugs" and "Exclude disabled bugs" checkboxes away from the two filter fields, since they're actually independent of them. Don't mind whether that happens here or in another bug.
Attachment #738612 - Flags: feedback+
Flags: needinfo?(emorley)
Okay this changes the background of each set of filter controls (include, exclude, plus any view-specific ones).  I also noticed that some views weren't displaying properly, so I fixed that.  Please play around a bit and make sure I didn't miss anything else.

This should be applied on top of the other patch.
Attachment #744820 - Flags: review?(emorley)
Comment on attachment 744820 [details] [diff] [review]
Cleanup of some views, highlight background of individual filters

Like the style changes, really helps with the UX IMO.

Spotted a couple of things:
1) Switching from "quicksearch" to "ID" results in an input field that's a 'tad' wide.
2) Changing options in some of the dropdowns (eg testsuite) results in a full page reload, even before you'd set other options and clicked apply.
3) With the new style changes, I think we should definitely split out the unrelated checkboxes (comment 13), since the the new background shading emphasises the (incorrect) association even more than before.
Attachment #744820 - Flags: review?(emorley)
Okay, addressed all three issues in this patch.  Also cleaned up the crazy code that builds those platform/test suite/build type options. :)
Assignee: nobody → mcote
Attachment #744820 - Attachment is obsolete: true
Status: NEW → ASSIGNED
Attachment #746045 - Flags: review?(emorley)
Removing mentor flags, since we're just about done here.  Will still commit the original patch under the contributor's address.
Whiteboard: [mentor=mcote][lang=js]
Comment on attachment 746045 [details] [diff] [review]
Cleanup of some views, highlight background of individual filters

Unfortunately the platform/testsuite dropdowns no longer work. ie: choose item, hit apply, page reloads with same results table & dropdowns reset to 'All'.

Liking the rest of the changes though :-D
Attachment #746045 - Flags: review?(emorley) → review-
Sorry about that, must have had old stuff in my cache while I was testing.  Seems the problem was how we treat the default value of the "display" argument.  Another opportunity for cleanup, at least. :)
Attachment #746045 - Attachment is obsolete: true
Attachment #746406 - Flags: review?(emorley)
Comment on attachment 746406 [details] [diff] [review]
Cleanup of some views, highlight background of individual filters, v3

Looks great & works nicely from what I can tell from local testing :-)

Thank you for doing this!
Attachment #746406 - Flags: review?(emorley) → review+
Looks like, depending on font size, the text-entry boxes can bleed over onto the graph.  I believe the width definition for the filter box is unnecessary, and removing it fixes the problem while keeping it roughly the same on my display here.
Attachment #746522 - Flags: review?(emorley)
Attachment #746522 - Flags: review?(emorley) → review+
Status: ASSIGNED → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Product: Testing → Tree Management
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: