1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-18 19:40:55 +01:00

[Redesign] Rebuild Chatlog

Summary: Ref T8099. I use this app daily, so 30 minutes of love is good enough for me.

Test Plan:
Tested with a fake chat.

{F443522}

Reviewers: btrahan, epriestley

Reviewed By: epriestley

Subscribers: Korvin, epriestley

Maniphest Tasks: T8099

Differential Revision: https://secure.phabricator.com/D13046
This commit is contained in:
Chad Little 2015-05-28 11:33:41 -07:00
parent c0d780543c
commit 624b16c4c9
4 changed files with 32 additions and 49 deletions

View file

@ -7,7 +7,7 @@
*/ */
return array( return array(
'names' => array( 'names' => array(
'core.pkg.css' => '651054ed', 'core.pkg.css' => '0df8c6bf',
'core.pkg.js' => 'e4f47dfd', 'core.pkg.js' => 'e4f47dfd',
'darkconsole.pkg.js' => 'e7393ebb', 'darkconsole.pkg.js' => 'e7393ebb',
'differential.pkg.css' => 'bb338e4b', 'differential.pkg.css' => 'bb338e4b',
@ -39,7 +39,7 @@ return array(
'rsrc/css/application/base/phabricator-application-launch-view.css' => '214e2510', 'rsrc/css/application/base/phabricator-application-launch-view.css' => '214e2510',
'rsrc/css/application/base/standard-page-view.css' => '43045fb4', 'rsrc/css/application/base/standard-page-view.css' => '43045fb4',
'rsrc/css/application/calendar/calendar-icon.css' => '98ce946d', 'rsrc/css/application/calendar/calendar-icon.css' => '98ce946d',
'rsrc/css/application/chatlog/chatlog.css' => '852140ff', 'rsrc/css/application/chatlog/chatlog.css' => 'f1971c1c',
'rsrc/css/application/conduit/conduit-api.css' => '7bc725c4', 'rsrc/css/application/conduit/conduit-api.css' => '7bc725c4',
'rsrc/css/application/config/config-options.css' => '7fedf08b', 'rsrc/css/application/config/config-options.css' => '7fedf08b',
'rsrc/css/application/config/config-template.css' => '8e6c6fcd', 'rsrc/css/application/config/config-template.css' => '8e6c6fcd',
@ -140,7 +140,7 @@ return array(
'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1',
'rsrc/css/phui/phui-info-view.css' => '33e54618', 'rsrc/css/phui/phui-info-view.css' => '33e54618',
'rsrc/css/phui/phui-list.css' => 'e448b6ba', 'rsrc/css/phui/phui-list.css' => 'e448b6ba',
'rsrc/css/phui/phui-object-box.css' => '57b5b612', 'rsrc/css/phui/phui-object-box.css' => '8eacbeed',
'rsrc/css/phui/phui-object-item-list-view.css' => '24ed8d94', 'rsrc/css/phui/phui-object-item-list-view.css' => '24ed8d94',
'rsrc/css/phui/phui-pinboard-view.css' => '55b27bc3', 'rsrc/css/phui/phui-pinboard-view.css' => '55b27bc3',
'rsrc/css/phui/phui-property-list-view.css' => '1baf23eb', 'rsrc/css/phui/phui-property-list-view.css' => '1baf23eb',
@ -697,7 +697,7 @@ return array(
'phabricator-action-list-view-css' => '32c388b3', 'phabricator-action-list-view-css' => '32c388b3',
'phabricator-application-launch-view-css' => '214e2510', 'phabricator-application-launch-view-css' => '214e2510',
'phabricator-busy' => '59a7976a', 'phabricator-busy' => '59a7976a',
'phabricator-chatlog-css' => '852140ff', 'phabricator-chatlog-css' => 'f1971c1c',
'phabricator-content-source-view-css' => '4b8b05d4', 'phabricator-content-source-view-css' => '4b8b05d4',
'phabricator-core-css' => 'bbc7187b', 'phabricator-core-css' => 'bbc7187b',
'phabricator-countdown-css' => '86b7b0a0', 'phabricator-countdown-css' => '86b7b0a0',
@ -774,7 +774,7 @@ return array(
'phui-info-view-css' => '33e54618', 'phui-info-view-css' => '33e54618',
'phui-inline-comment-view-css' => '2174771a', 'phui-inline-comment-view-css' => '2174771a',
'phui-list-view-css' => 'e448b6ba', 'phui-list-view-css' => 'e448b6ba',
'phui-object-box-css' => '57b5b612', 'phui-object-box-css' => '8eacbeed',
'phui-object-item-list-view-css' => '24ed8d94', 'phui-object-item-list-view-css' => '24ed8d94',
'phui-pinboard-view-css' => '55b27bc3', 'phui-pinboard-view-css' => '55b27bc3',
'phui-property-list-view-css' => '1baf23eb', 'phui-property-list-view-css' => '1baf23eb',

View file

@ -179,11 +179,6 @@ final class PhabricatorChatLogChannelLogController
pht('Older')." \xE2\x80\xBA"); pht('Older')." \xE2\x80\xBA");
} }
$pager_top = phutil_tag(
'div',
array('class' => 'phabricator-chat-log-pager-top'),
$links);
$pager_bottom = phutil_tag( $pager_bottom = phutil_tag(
'div', 'div',
array('class' => 'phabricator-chat-log-pager-bottom'), array('class' => 'phabricator-chat-log-pager-bottom'),
@ -206,9 +201,6 @@ final class PhabricatorChatLogChannelLogController
id(new AphrontFormSubmitControl()) id(new AphrontFormSubmitControl())
->setValue(pht('Jump'))); ->setValue(pht('Jump')));
$filter = new AphrontListFilterView();
$filter->appendChild($form);
$table = phutil_tag( $table = phutil_tag(
'table', 'table',
array( array(
@ -223,19 +215,11 @@ final class PhabricatorChatLogChannelLogController
), ),
$table); $table);
$jump_link = phutil_tag( $jump_link = id(new PHUIButtonView())
'a', ->setTag('a')
array( ->setHref('#latest')
'href' => '#latest', ->setText(pht('Jump to Bottom'))
), ->setIconFont('fa-arrow-circle-down');
pht('Jump to Bottom')." \xE2\x96\xBE");
$jump = phutil_tag(
'div',
array(
'class' => 'phabricator-chat-log-jump',
),
$jump_link);
$jump_target = phutil_tag( $jump_target = phutil_tag(
'div', 'div',
@ -249,18 +233,31 @@ final class PhabricatorChatLogChannelLogController
'class' => 'phabricator-chat-log-wrap', 'class' => 'phabricator-chat-log-wrap',
), ),
array( array(
$jump,
$pager_top,
$log, $log,
$jump_target, $jump_target,
$pager_bottom, $pager_bottom,
)); ));
$header = id(new PHUIHeaderView())
->setHeader($channel->getChannelName())
->setSubHeader($channel->getServiceName())
->addActionLink($jump_link);
$box = id(new PHUIObjectBoxView())
->setHeader($header)
->setCollapsed(true)
->appendChild($content);
$box->setShowHide(
pht('Search Dates'),
pht('Hide Dates'),
$form,
'#');
return $this->buildApplicationPage( return $this->buildApplicationPage(
array( array(
$crumbs, $crumbs,
$filter, $box,
$content,
), ),
array( array(
'title' => pht('Channel Log'), 'title' => pht('Channel Log'),

View file

@ -2,40 +2,22 @@
* @provides phabricator-chatlog-css * @provides phabricator-chatlog-css
*/ */
.phabricator-chat-log-wrap {
padding: 0 16px;
}
.device-phone .phabricator-chat-log-wrap { .device-phone .phabricator-chat-log-wrap {
padding: 0; padding: 0;
} }
.phabricator-chat-log-pager-top {
padding: 16px 4px 8px;
font-weight: bold;
float: right;
}
.phabricator-chat-log-pager-bottom { .phabricator-chat-log-pager-bottom {
padding: 8px 4px 16px; padding: 8px 4px 16px;
font-weight: bold; font-weight: bold;
float: right; float: right;
} }
.phabricator-chat-log-pager-top a, .phabricator-chat-log-pager-bottom a { .phabricator-chat-log-pager-bottom a {
padding: 2px 3px; padding: 2px 3px;
} }
.phabricator-chat-log-jump {
padding: 16px 4px 8px;
font-weight: bold;
float: left;
}
.phabricator-chat-log-panel { .phabricator-chat-log-panel {
clear: both; clear: both;
border: 1px solid {$lightblueborder};
border-bottom: 1px solid {$blueborder};
} }
.phabricator-chat-log { .phabricator-chat-log {

View file

@ -96,6 +96,10 @@ div.phui-object-box.phui-object-box-flush {
margin-bottom: 4px; margin-bottom: 4px;
} }
.phui-object-box.phui-object-box-collapsed .phui-object-box-hidden-content {
margin: 0;
}
/* - Double Object Box Override --------------------------------------------- */ /* - Double Object Box Override --------------------------------------------- */
.phui-object-box .phui-object-box { .phui-object-box .phui-object-box {