Fix the user page and filter-related UI issues on mobile.

Review Request #7545 — Created July 25, 2015 and submitted

Information

Review Board
release-2.5.x

Reviewers

The user page's tabs weren't flush with the datagrid, due to the filter
wrapping below it on mobile. This created a pretty nasty look, and it
wasn't the only place the filters were messing up the display on mobile
(depending on the mobile device).

A couple things were done to address this:

1. The tabs for the user page no longer include the username in the
   tab title (since that can be inferred from the page), saving
   precious room, especially with long usernames.

2. The filters are now kept in a menu, activated when clicking a filter
   icon. This icon docks to the right of the datagrid title area. When
   clicking, a menu pops up with a little fade-in animation, offering
   the possible filters on the page. (We may want to move to this
   later for desktop as well.)

While fixing this, I ended up creating a base template for datagrids
that handled tabs and filters in a consistent manner.

Tested in iPhone 4/6 screen sizes, and on desktop. The filters all worked,
and the user page was viewable at all screen sizes.


Description From Last Updated

Alphabetize.

brenniebrennie

alphabetize

brenniebrennie
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/datagrids/grids.py
        reviewboard/datagrids/views.py
    
    Ignored Files:
        reviewboard/static/rb/css/ui/datagrids.less
        reviewboard/templates/datagrids/hideable_listview.html
        reviewboard/static/rb/css/defs.less
        reviewboard/templates/datagrids/review_request_listview.html
        reviewboard/templates/datagrids/listview.html
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/datagrids/grids.py
        reviewboard/datagrids/views.py
    
    Ignored Files:
        reviewboard/static/rb/css/ui/datagrids.less
        reviewboard/templates/datagrids/hideable_listview.html
        reviewboard/static/rb/css/defs.less
        reviewboard/templates/datagrids/review_request_listview.html
        reviewboard/templates/datagrids/listview.html
    
    
  2. 
      
david
  1. I hate that filter icon. Since the only thing in here is "show archived", could we use the archive icon from the review request page?

    1. I don't love it either.

      There's also Show/Hide Closed, and I don't think having an icon for these states is going to do a good enough job.

      I'd like to keep the menu (really, I'd like to eventually add additional filtering options). Thinking a gear would work in place of the filter icon.

    2. Sure. Or a hammer!

    3. You mean a wrench?

    4. Are you planning on doing this in this change or later?

    5. I could go either way. Shouldn't be hard to change it.

    6. OK, I'll wait for it in this change, then.

  2. 
      
brennie
  1. 
      
  2. Show all issues

    Alphabetize.

    1. Alphabetizing is a good general rule, but it also makes a lot of sense to keep related properties togther. So, things like width/height, or position/top/left/right/bottom are often grouped.

  3. Show all issues

    alphabetize

  4. 
      
chipx86
reviewbot
  1. Tool: Pyflakes
    Processed Files:
        reviewboard/datagrids/grids.py
        reviewboard/datagrids/views.py
    
    Ignored Files:
        reviewboard/static/rb/css/ui/datagrids.less
        reviewboard/templates/datagrids/hideable_listview.html
        reviewboard/static/rb/css/defs.less
        reviewboard/templates/datagrids/review_request_listview.html
        reviewboard/templates/datagrids/listview.html
    
    
    
    Tool: PEP8 Style Checker
    Processed Files:
        reviewboard/datagrids/grids.py
        reviewboard/datagrids/views.py
    
    Ignored Files:
        reviewboard/static/rb/css/ui/datagrids.less
        reviewboard/templates/datagrids/hideable_listview.html
        reviewboard/static/rb/css/defs.less
        reviewboard/templates/datagrids/review_request_listview.html
        reviewboard/templates/datagrids/listview.html
    
    
  2. 
      
chipx86
  1. Ping

  2. 
      
david
  1. Ship It!
  2. 
      
chipx86
Review request changed

Status: Closed (submitted)

Change Summary:

Pushed to release-2.5.x (8b86f24)
Loading...