From 3f50ba90f1d0d30008ea13457dd90f8ea83f25b7 Mon Sep 17 00:00:00 2001 From: epriestley Date: Sat, 13 Feb 2016 08:31:28 -0800 Subject: [PATCH] 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 --- .../project/storage/PhabricatorProjectColumn.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/applications/project/storage/PhabricatorProjectColumn.php b/src/applications/project/storage/PhabricatorProjectColumn.php index 4092ca7fa8..683039fe99 100644 --- a/src/applications/project/storage/PhabricatorProjectColumn.php +++ b/src/applications/project/storage/PhabricatorProjectColumn.php @@ -169,14 +169,16 @@ final class PhabricatorProjectColumn // Normal columns and subproject columns go first, in a user-controlled // 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()) { $group = 'A'; $sequence = $this->getSequence(); } else { $group = 'B'; - $sequence = $proxy->getMilestoneNumber(); + $sequence = (10000000 - $proxy->getMilestoneNumber()); } return sprintf('%s%012d', $group, $sequence);