1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-23 22:10:55 +01:00

On workboards, put older milestone columns on the right

Summary:
Ref T10349. Instead of showing columns in "Backlog, Custom, Sprint 1, Sprint 2, Sprint 3" order, show the sprints in reverse order: 3, 2, 1.

This makes it easier to get to the new stuff, and you don't have to drag over older stuff or archive it immediately.

Trello's own meta-board for Trello development is a good example of this in the wild: older stuff goes out to the right, so you can get to the newer stuff easily:

https://trello.com/b/nC8QJJoZ/trello-development

Test Plan: Saw board in 3, 2, 1 order instead of 1, 2, 3.

Reviewers: chad

Reviewed By: chad

Maniphest Tasks: T10349

Differential Revision: https://secure.phabricator.com/D15267
This commit is contained in:
epriestley 2016-02-13 08:31:28 -08:00
parent 9bab3c25b8
commit 3f50ba90f1

View file

@ -169,14 +169,16 @@ final class PhabricatorProjectColumn
// Normal columns and subproject columns go first, in a user-controlled // Normal columns and subproject columns go first, in a user-controlled
// order. // order.
// All the milestone columns go last, in their sequential order. // All the milestone columns go last, in reverse order (newest on the
// left) so that you don't have to scroll across older milestones to get
// to the newest ones.
if (!$proxy || !$proxy->isMilestone()) { if (!$proxy || !$proxy->isMilestone()) {
$group = 'A'; $group = 'A';
$sequence = $this->getSequence(); $sequence = $this->getSequence();
} else { } else {
$group = 'B'; $group = 'B';
$sequence = $proxy->getMilestoneNumber(); $sequence = (10000000 - $proxy->getMilestoneNumber());
} }
return sprintf('%s%012d', $group, $sequence); return sprintf('%s%012d', $group, $sequence);