@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

[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

+32 -49
+5 -5
resources/celerity/map.php
··· 7 7 */ 8 8 return array( 9 9 'names' => array( 10 - 'core.pkg.css' => '651054ed', 10 + 'core.pkg.css' => '0df8c6bf', 11 11 'core.pkg.js' => 'e4f47dfd', 12 12 'darkconsole.pkg.js' => 'e7393ebb', 13 13 'differential.pkg.css' => 'bb338e4b', ··· 39 39 'rsrc/css/application/base/phabricator-application-launch-view.css' => '214e2510', 40 40 'rsrc/css/application/base/standard-page-view.css' => '43045fb4', 41 41 'rsrc/css/application/calendar/calendar-icon.css' => '98ce946d', 42 - 'rsrc/css/application/chatlog/chatlog.css' => '852140ff', 42 + 'rsrc/css/application/chatlog/chatlog.css' => 'f1971c1c', 43 43 'rsrc/css/application/conduit/conduit-api.css' => '7bc725c4', 44 44 'rsrc/css/application/config/config-options.css' => '7fedf08b', 45 45 'rsrc/css/application/config/config-template.css' => '8e6c6fcd', ··· 140 140 'rsrc/css/phui/phui-info-panel.css' => '27ea50a1', 141 141 'rsrc/css/phui/phui-info-view.css' => '33e54618', 142 142 'rsrc/css/phui/phui-list.css' => 'e448b6ba', 143 - 'rsrc/css/phui/phui-object-box.css' => '57b5b612', 143 + 'rsrc/css/phui/phui-object-box.css' => '8eacbeed', 144 144 'rsrc/css/phui/phui-object-item-list-view.css' => '24ed8d94', 145 145 'rsrc/css/phui/phui-pinboard-view.css' => '55b27bc3', 146 146 'rsrc/css/phui/phui-property-list-view.css' => '1baf23eb', ··· 697 697 'phabricator-action-list-view-css' => '32c388b3', 698 698 'phabricator-application-launch-view-css' => '214e2510', 699 699 'phabricator-busy' => '59a7976a', 700 - 'phabricator-chatlog-css' => '852140ff', 700 + 'phabricator-chatlog-css' => 'f1971c1c', 701 701 'phabricator-content-source-view-css' => '4b8b05d4', 702 702 'phabricator-core-css' => 'bbc7187b', 703 703 'phabricator-countdown-css' => '86b7b0a0', ··· 774 774 'phui-info-view-css' => '33e54618', 775 775 'phui-inline-comment-view-css' => '2174771a', 776 776 'phui-list-view-css' => 'e448b6ba', 777 - 'phui-object-box-css' => '57b5b612', 777 + 'phui-object-box-css' => '8eacbeed', 778 778 'phui-object-item-list-view-css' => '24ed8d94', 779 779 'phui-pinboard-view-css' => '55b27bc3', 780 780 'phui-property-list-view-css' => '1baf23eb',
+22 -25
src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
··· 179 179 pht('Older')." \xE2\x80\xBA"); 180 180 } 181 181 182 - $pager_top = phutil_tag( 183 - 'div', 184 - array('class' => 'phabricator-chat-log-pager-top'), 185 - $links); 186 - 187 182 $pager_bottom = phutil_tag( 188 183 'div', 189 184 array('class' => 'phabricator-chat-log-pager-bottom'), ··· 206 201 id(new AphrontFormSubmitControl()) 207 202 ->setValue(pht('Jump'))); 208 203 209 - $filter = new AphrontListFilterView(); 210 - $filter->appendChild($form); 211 - 212 204 $table = phutil_tag( 213 205 'table', 214 206 array( ··· 223 215 ), 224 216 $table); 225 217 226 - $jump_link = phutil_tag( 227 - 'a', 228 - array( 229 - 'href' => '#latest', 230 - ), 231 - pht('Jump to Bottom')." \xE2\x96\xBE"); 232 - 233 - $jump = phutil_tag( 234 - 'div', 235 - array( 236 - 'class' => 'phabricator-chat-log-jump', 237 - ), 238 - $jump_link); 218 + $jump_link = id(new PHUIButtonView()) 219 + ->setTag('a') 220 + ->setHref('#latest') 221 + ->setText(pht('Jump to Bottom')) 222 + ->setIconFont('fa-arrow-circle-down'); 239 223 240 224 $jump_target = phutil_tag( 241 225 'div', ··· 249 233 'class' => 'phabricator-chat-log-wrap', 250 234 ), 251 235 array( 252 - $jump, 253 - $pager_top, 254 236 $log, 255 237 $jump_target, 256 238 $pager_bottom, 257 239 )); 258 240 241 + $header = id(new PHUIHeaderView()) 242 + ->setHeader($channel->getChannelName()) 243 + ->setSubHeader($channel->getServiceName()) 244 + ->addActionLink($jump_link); 245 + 246 + $box = id(new PHUIObjectBoxView()) 247 + ->setHeader($header) 248 + ->setCollapsed(true) 249 + ->appendChild($content); 250 + 251 + $box->setShowHide( 252 + pht('Search Dates'), 253 + pht('Hide Dates'), 254 + $form, 255 + '#'); 256 + 259 257 return $this->buildApplicationPage( 260 258 array( 261 259 $crumbs, 262 - $filter, 263 - $content, 260 + $box, 264 261 ), 265 262 array( 266 263 'title' => pht('Channel Log'),
+1 -19
webroot/rsrc/css/application/chatlog/chatlog.css
··· 2 2 * @provides phabricator-chatlog-css 3 3 */ 4 4 5 - .phabricator-chat-log-wrap { 6 - padding: 0 16px; 7 - } 8 - 9 5 .device-phone .phabricator-chat-log-wrap { 10 6 padding: 0; 11 - } 12 - 13 - .phabricator-chat-log-pager-top { 14 - padding: 16px 4px 8px; 15 - font-weight: bold; 16 - float: right; 17 7 } 18 8 19 9 .phabricator-chat-log-pager-bottom { ··· 22 12 float: right; 23 13 } 24 14 25 - .phabricator-chat-log-pager-top a, .phabricator-chat-log-pager-bottom a { 15 + .phabricator-chat-log-pager-bottom a { 26 16 padding: 2px 3px; 27 17 } 28 18 29 - .phabricator-chat-log-jump { 30 - padding: 16px 4px 8px; 31 - font-weight: bold; 32 - float: left; 33 - } 34 - 35 19 .phabricator-chat-log-panel { 36 20 clear: both; 37 - border: 1px solid {$lightblueborder}; 38 - border-bottom: 1px solid {$blueborder}; 39 21 } 40 22 41 23 .phabricator-chat-log {
+4
webroot/rsrc/css/phui/phui-object-box.css
··· 96 96 margin-bottom: 4px; 97 97 } 98 98 99 + .phui-object-box.phui-object-box-collapsed .phui-object-box-hidden-content { 100 + margin: 0; 101 + } 102 + 99 103 /* - Double Object Box Override --------------------------------------------- */ 100 104 101 105 .phui-object-box .phui-object-box {