diff --git a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php index 76d98bda5c..1c627760b4 100644 --- a/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php +++ b/src/applications/daemon/controller/PhabricatorDaemonConsoleController.php @@ -120,7 +120,7 @@ final class PhabricatorDaemonConsoleController $completed_panel = new PHUIObjectBoxView(); $completed_panel->setHeaderText( pht('Recently Completed Tasks (Last 15m)')); - $completed_panel->appendChild($completed_table); + $completed_panel->setTable($completed_table); $daemon_table = new PhabricatorDaemonLogListView(); $daemon_table->setUser($viewer); @@ -128,7 +128,7 @@ final class PhabricatorDaemonConsoleController $daemon_panel = new PHUIObjectBoxView(); $daemon_panel->setHeaderText(pht('Active Daemons')); - $daemon_panel->appendChild($daemon_table); + $daemon_panel->setObjectList($daemon_table); $tasks = id(new PhabricatorWorkerLeaseQuery()) @@ -143,7 +143,7 @@ final class PhabricatorDaemonConsoleController $leased_panel = id(new PHUIObjectBoxView()) ->setHeaderText(pht('Leased Tasks')) - ->appendChild($tasks_table); + ->setTable($tasks_table); $task_table = new PhabricatorWorkerActiveTask(); $queued = queryfx_all( @@ -175,7 +175,7 @@ final class PhabricatorDaemonConsoleController $queued_panel = new PHUIObjectBoxView(); $queued_panel->setHeaderText(pht('Queued Tasks')); - $queued_panel->appendChild($queued_table); + $queued_panel->setTable($queued_table); $upcoming = id(new PhabricatorWorkerLeaseQuery()) ->setLimit(10) @@ -184,7 +184,7 @@ final class PhabricatorDaemonConsoleController $upcoming_panel = id(new PHUIObjectBoxView()) ->setHeaderText(pht('Next In Queue')) - ->appendChild( + ->setTable( id(new PhabricatorDaemonTasksTableView()) ->setTasks($upcoming) ->setNoDataString(pht('Task queue is empty.'))); @@ -200,7 +200,7 @@ final class PhabricatorDaemonConsoleController $triggers_panel = id(new PHUIObjectBoxView()) ->setHeaderText(pht('Upcoming Triggers')) - ->appendChild($triggers_table); + ->setTable($triggers_table); $crumbs = $this->buildApplicationCrumbs(); $crumbs->addTextCrumb(pht('Console')); diff --git a/src/applications/daemon/view/PhabricatorDaemonLogListView.php b/src/applications/daemon/view/PhabricatorDaemonLogListView.php index f45606e9e7..8be2743bd1 100644 --- a/src/applications/daemon/view/PhabricatorDaemonLogListView.php +++ b/src/applications/daemon/view/PhabricatorDaemonLogListView.php @@ -34,17 +34,17 @@ final class PhabricatorDaemonLogListView extends AphrontView { switch ($status) { case PhabricatorDaemonLog::STATUS_RUNNING: if ($env_hash != $log->getEnvHash()) { - $item->setBarColor('yellow'); + $item->setStatusIcon('fa-warning yellow'); $item->addAttribute(pht( 'This daemon is running with an out of date configuration and '. 'should be restarted.')); } else { - $item->setBarColor('green'); + $item->setStatusIcon('fa-rocket green'); $item->addAttribute(pht('This daemon is running.')); } break; case PhabricatorDaemonLog::STATUS_DEAD: - $item->setBarColor('red'); + $item->setStatusIcon('fa-warning red'); $item->addAttribute( pht( 'This daemon is lost or exited uncleanly, and is presumed '. @@ -61,7 +61,7 @@ final class PhabricatorDaemonLogListView extends AphrontView { $item->addIcon('fa-check grey', pht('Exited')); break; case PhabricatorDaemonLog::STATUS_WAIT: - $item->setBarColor('blue'); + $item->setStatusIcon('fa-clock-o blue'); $item->addAttribute( pht( 'This daemon encountered an error recently and is waiting a '. @@ -70,12 +70,12 @@ final class PhabricatorDaemonLogListView extends AphrontView { break; case PhabricatorDaemonLog::STATUS_UNKNOWN: default: - $item->setBarColor('orange'); + $item->setStatusIcon('fa-warning orange'); $item->addAttribute( pht( 'This daemon has not reported its status recently. It may '. 'have exited uncleanly.')); - $item->addIcon('fa-exclamation-circle', pht('Unknown')); + $item->addIcon('fa-warning', pht('Unknown')); break; }