Skip to content

Commit 4d0a03e

Browse files
author
epriestley
committedJan 13, 2017
Improve commit audit status icons
Summary: Ref T9482. These may need a little more work (feel free to shoot me a counter-diff) but try to: - Never use only color to distinguish between states (for colorblind, etc users). - Give the "nothing needs to be done" state a more obvious "okay" icon (instead of a question mark). Test Plan: Looked at some linked commits in Maniphest, the icons made a bit more sense? Reviewers: chad Reviewed By: chad Maniphest Tasks: T9482 Differential Revision: https://secure.phabricator.com/D17203
1 parent 103d8c4 commit 4d0a03e

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed
 

‎src/applications/audit/constants/PhabricatorAuditCommitStatusConstants.php

+11-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ final class PhabricatorAuditCommitStatusConstants extends Phobject {
1010

1111
public static function getStatusNameMap() {
1212
$map = array(
13-
self::NONE => pht('None'),
13+
self::NONE => pht('No Audits'),
1414
self::NEEDS_AUDIT => pht('Audit Required'),
1515
self::CONCERN_RAISED => pht('Concern Raised'),
1616
self::PARTIALLY_AUDITED => pht('Partially Audited'),
@@ -46,6 +46,9 @@ public static function getStatusColor($code) {
4646
case self::FULLY_AUDITED:
4747
$color = 'green';
4848
break;
49+
case self::NONE:
50+
$color = 'bluegrey';
51+
break;
4952
default:
5053
$color = null;
5154
break;
@@ -56,13 +59,18 @@ public static function getStatusColor($code) {
5659
public static function getStatusIcon($code) {
5760
switch ($code) {
5861
case self::CONCERN_RAISED:
59-
$icon = 'fa-exclamation-circle';
62+
$icon = 'fa-times-circle';
6063
break;
6164
case self::NEEDS_AUDIT:
62-
case self::PARTIALLY_AUDITED:
6365
$icon = 'fa-exclamation-circle';
6466
break;
67+
case self::PARTIALLY_AUDITED:
68+
$icon = 'fa-check-circle-o';
69+
break;
6570
case self::FULLY_AUDITED:
71+
$icon = 'fa-check-circle';
72+
break;
73+
case self::NONE:
6674
$icon = 'fa-check';
6775
break;
6876
default:

0 commit comments

Comments
 (0)
Failed to load comments.