Merge lp:~jcsackett/launchpad/branch-collection-links-652126 into lp:launchpad
Status: | Merged |
---|---|
Approved by: | j.c.sackett |
Approved revision: | no longer in the source branch. |
Merged at revision: | 11751 |
Proposed branch: | lp:~jcsackett/launchpad/branch-collection-links-652126 |
Merge into: | lp:launchpad |
Diff against target: |
258 lines (+70/-85) 7 files modified
lib/lp/code/browser/configure.zcml (+0/-6) lib/lp/code/browser/tests/test_product.py (+2/-1) lib/lp/code/stories/branches/xx-branchmergeproposal-listings.txt (+3/-3) lib/lp/code/stories/branches/xx-product-branches.txt (+6/-13) lib/lp/code/templates/product-branches.pt (+4/-1) lib/lp/code/templates/product-portlet-codestatistics-content.pt (+0/-55) lib/lp/code/templates/product-portlet-codestatistics.pt (+55/-6) |
To merge this branch: | bzr merge lp:~jcsackett/launchpad/branch-collection-links-652126 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Paul Hummer (community) | code ui | Approve | |
Guilherme Salgado | ui | Pending | |
Review via email: mp+38456@code.launchpad.net |
Commit message
Moves statistic information on the product branches view into the main page and out of the sidebar, where it didn't really fit.
Description of the change
Summary
=======
This branch deals with bad expectations on product branches. There's a set of statistical information in a side portlet that has some links, but not all links. Given the side portlets tend to be for actions, it seems odd that the remaining statistics aren't actionable.
To deal with this, the branch moves the stats into text on the main page, keeping the useful information, but avoiding breaking the expectations.
There is still one link to active-reviews in the new inline text; I'm open to the suggestion that active reviews still belong in a side portlet.
Proposed fix
============
Move the information in the sidebar into the main page, and eliminate the problematic part of the sidebar.
Preimplementation talk
=======
Spoke with Paul Hummer. Discussed intent of the statistics portlet and concluded it could be moved out of the sidebar portlet and into the main page. Additionally discussed not linking to active reviews if there are no active reviews.
Implementation details
=======
As in proposed. In the process of moving the portlet out of the side bar and into the main page, the two portlets showing the statistics were merged into one, since the existance of two portlets used *only* to present that data seemed unnecessary at best.
Tests
=====
bin/test -vvcm lp.code.
bin/test -t product-branches
Right now product-branches isn't passing b/c the want and received text are disagreeing on line breaks; I will fix this before submitting, but wanted to get this moving forward on review. If you run product-branches, you will see the text agrees, but the line breaks are failing. I'm investigating clean ways to improve the test.
Screenshots
===========
The original appearance is here: http://
The new appearance is here: http://
Lint
====
make lint output:
= Launchpad lint =
Checking for conflicts and issues in changed files.
Linting changed files:
lib/lp/
lib/lp/
./lib/lp/
41: want exceeds 78 characters.
There doesn't seem to be a clean way to shorten the want in this test.
<rockstar> jcsackett, the code looks fine.
<rockstar> jcsackett, as far as UI though, I think you should put the commit count, branch count, and user count on the same line.
<rockstar> Active reviews should be its own little section.
<jcsackett> rockstar: i tried that, but you end up with either a really weird block of text, or it looks like the branches and users *also* occured in the commit time period.
<jcsackett> rockstar: you think move active reviews back into its own side thing?
<rockstar> jcsackett, X branches, owned by X people. There were X commits in the last X period.
<rockstar> jcsackett, the intention of the X commits in the last X period is to show how active the project is.
<jcsackett> rockstar: yeah, that just looked wierd to me, but i'll deal with the text block instead of dividing it up as it is.
<rockstar> It doesn't do a good job, but I think laying it out that way would be better.
<jcsackett> rockstar: regarding active reviews; side thingy, or just a separate line?
<rockstar> Active reviews need to be obvious. Putting text near it makes it hard to identify.
<rockstar> jcsackett, separate line should be fine.
<jcsackett> rockstar: dig.
<rockstar> jcsackett, for bonus points, it doesn't show if there are now active reviews.
<jcsackett> i'll make those changes.
<jcsackett> rockstar: i'll look into it. didn't want this growing beyond the scope of bridging the gap, but if it's easy to throw in (and it should be) i'll hit it.
<rockstar> jcsackett, yeah. UI reviews often cause feature creep. Truthfully though, I think it stays in line with the original purpose of the bug.
<jcsackett> rockstar: dig.
<jcsackett> i'll switch that up and then ping you when i've made the changes, rockstar.
<rockstar> jcsackett, great, thanks.