Use modern UI elements to show daemons in Daemons
Summary:
Ref T3557. Slightly improves display of daemons:
- Makes status more clear (through colors, explanatory text, icons, and explicit descriptions instead of symbols).
- Particularly, the "wait" status is now communicated as a normal status ("waiting a moment...") with a calm blue color.
- Uses modern responsive elements.
Test Plan: {F51232}
Reviewers: btrahan
Reviewed By: btrahan
CC: aran
Maniphest Tasks: T3557
Differential Revision: https://secure.phabricator.com/D6539
This commit is contained in:
@@ -61,15 +61,14 @@ final class PhabricatorDaemonConsoleController
|
||||
'`status` = %s ORDER BY id DESC',
|
||||
'run');
|
||||
|
||||
|
||||
$daemon_header = id(new PhabricatorHeaderView())
|
||||
->setHeader(pht('Recent Daemons'));
|
||||
|
||||
$daemon_table = new PhabricatorDaemonLogListView();
|
||||
$daemon_table->setUser($user);
|
||||
$daemon_table->setDaemonLogs($logs);
|
||||
|
||||
$daemon_panel = new AphrontPanelView();
|
||||
$daemon_panel->setHeader(pht('Active Daemons'));
|
||||
$daemon_panel->appendChild($daemon_table);
|
||||
$daemon_panel->setNoBackground();
|
||||
|
||||
$tasks = id(new PhabricatorWorkerActiveTask())->loadAllWhere(
|
||||
'leaseOwner IS NOT NULL');
|
||||
|
||||
@@ -155,7 +154,8 @@ final class PhabricatorDaemonConsoleController
|
||||
$nav->appendChild(
|
||||
array(
|
||||
$completed_panel,
|
||||
$daemon_panel,
|
||||
$daemon_header,
|
||||
$daemon_table,
|
||||
$queued_panel,
|
||||
$leased_panel,
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user