1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-20 12:30:56 +01:00

[Redesign] Remove AphrontTable restriction on Search Engine

Summary: Ref T8099, functionally I prefer to be able to set anything 'table-like' with `setTable` for design consistency. This looses the restriction and did some light grepping for other missed cases.

Test Plan: Test new UI, grep for other missing cases.

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: epriestley, Korvin

Maniphest Tasks: T8099

Differential Revision: https://secure.phabricator.com/D13471
This commit is contained in:
Chad Little 2015-06-29 12:28:55 -07:00
parent a3c8fcded2
commit 08ec0f1704
6 changed files with 8 additions and 9 deletions

View file

@ -303,7 +303,7 @@ final class HarbormasterBuildableViewController
$lint = id(new PHUIObjectBoxView())
->setHeader($lint_header)
->appendChild($lint_table);
->setTable($lint_table);
} else {
$lint = null;
}
@ -327,7 +327,7 @@ final class HarbormasterBuildableViewController
$unit = id(new PHUIObjectBoxView())
->setHeader($unit_header)
->appendChild($unit_table);
->setTable($unit_table);
} else {
$unit = null;
}

View file

@ -40,7 +40,7 @@ final class HarbormasterUnitMessagesController
$unit = id(new PHUIObjectBoxView())
->setHeaderText(pht('Unit Tests'))
->appendChild($unit_table);
->setTable($unit_table);
$crumbs = $this->buildApplicationCrumbs();
$this->addBuildableCrumb($crumbs, $buildable);

View file

@ -276,7 +276,7 @@ final class PhabricatorOwnersDetailController
$box = id(new PHUIObjectBoxView())
->setHeaderText(pht('Paths'))
->appendChild($table);
->setTable($table);
if ($info) {
$box->setInfoView($info);

View file

@ -187,8 +187,7 @@ final class PhabricatorPeopleLogSearchEngine
}
$result = new PhabricatorApplicationSearchResultView();
$result->setContent($table);
$result->setCollapsed(true);
$result->setTable($table);
return $result;
}

View file

@ -103,13 +103,13 @@ final class PhabricatorRepositoryPushLogSearchEngine
PhabricatorSavedQuery $query,
array $handles) {
$content = id(new DiffusionPushLogListView())
$table = id(new DiffusionPushLogListView())
->setUser($this->requireViewer())
->setHandles($handles)
->setLogs($logs);
return id(new PhabricatorApplicationSearchResultView())
->setContent($content);
->setTable($table);
}
}

View file

@ -34,7 +34,7 @@ final class PhabricatorApplicationSearchResultView extends Phobject {
return $list;
}
public function setTable(AphrontTableView $table) {
public function setTable($table) {
$this->table = $table;
return $this;
}