]> khamidou — GitHub mirrors - arcanist.git/commit
Changed the rendering of the `priority` column color based on the `priorityColor...
authorepriestley <git@epriestley.com>
Wed, 9 Apr 2014 19:13:34 +0000 (12:13 -0700)
committerepriestley <git@epriestley.com>
Wed, 9 Apr 2014 19:13:40 +0000 (12:13 -0700)
commitac528ab3a83b3c7f0400f073f883135e40cdcdcc
tree8718dfd3e2423007f98ac2e8b881baf2129fcdc2
parent7e394dcf11ebc7c731ba4885f9a24c8759162027
Changed the rendering of the `priority` column color based on the `priorityColor` property

Summary:
I changed the rendering of the bar color for the `priority` column when running `arc tasks` to match the `priorityColor` property.

If the `priorityColor` property is one of the basic colors already supported by ansi, then the bar is set to that color, otherwise it is set to white.

This will allow the user to customize maniphest priorities and then set their own colors and have those colors display correctly when running `arc tasks`

Fixed some linting errors

Test Plan:
Run `arc tasks` and ensure that:
 * the priority column is displayed with a colored bar
 * the priority column bar is the correct color (or white if it is an unsupported color)

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D8735
src/workflow/ArcanistTasksWorkflow.php