1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2025-01-03 19:31:02 +01:00

differential - lazy man's attempt at updated design

Summary: basically made the header elements for the individual panes and cleaned up the panes to make it look okay. tried to copy colors from @chad 's mocks.

Test Plan: looks good to me

Reviewers: epriestley, chad

Reviewed By: chad

CC: aran, Korvin

Maniphest Tasks: T2004

Differential Revision: https://secure.phabricator.com/D4174
This commit is contained in:
Bob Trahan 2012-12-12 21:00:35 -08:00
parent e7bcdcdb94
commit 2f82210e46
12 changed files with 133 additions and 101 deletions

View file

@ -734,7 +734,7 @@ celerity_register_resource_map(array(
), ),
'differential-changeset-view-css' => 'differential-changeset-view-css' =>
array( array(
'uri' => '/res/90efe4ec/rsrc/css/application/differential/changeset-view.css', 'uri' => '/res/ffd0559c/rsrc/css/application/differential/changeset-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -743,7 +743,7 @@ celerity_register_resource_map(array(
), ),
'differential-core-view-css' => 'differential-core-view-css' =>
array( array(
'uri' => '/res/7901260e/rsrc/css/application/differential/core.css', 'uri' => '/res/587d8eeb/rsrc/css/application/differential/core.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -767,7 +767,7 @@ celerity_register_resource_map(array(
), ),
'differential-local-commits-view-css' => 'differential-local-commits-view-css' =>
array( array(
'uri' => '/res/8cdacd82/rsrc/css/application/differential/local-commits-view.css', 'uri' => '/res/da84a7c9/rsrc/css/application/differential/local-commits-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -794,7 +794,7 @@ celerity_register_resource_map(array(
), ),
'differential-revision-comment-css' => 'differential-revision-comment-css' =>
array( array(
'uri' => '/res/a477fad0/rsrc/css/application/differential/revision-comment.css', 'uri' => '/res/baad4547/rsrc/css/application/differential/revision-comment.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -812,7 +812,7 @@ celerity_register_resource_map(array(
), ),
'differential-revision-history-css' => 'differential-revision-history-css' =>
array( array(
'uri' => '/res/0d7d515d/rsrc/css/application/differential/revision-history.css', 'uri' => '/res/6699b0ef/rsrc/css/application/differential/revision-history.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -2622,7 +2622,7 @@ celerity_register_resource_map(array(
), ),
'phabricator-nav-view-css' => 'phabricator-nav-view-css' =>
array( array(
'uri' => '/res/31a0bdf5/rsrc/css/aphront/phabricator-nav-view.css', 'uri' => '/res/7be2ad5c/rsrc/css/aphront/phabricator-nav-view.css',
'type' => 'css', 'type' => 'css',
'requires' => 'requires' =>
array( array(
@ -3208,7 +3208,7 @@ celerity_register_resource_map(array(
), array( ), array(
'packages' => 'packages' =>
array( array(
'c40ccdf9' => 'ba5cb698' =>
array( array(
'name' => 'core.pkg.css', 'name' => 'core.pkg.css',
'symbols' => 'symbols' =>
@ -3252,7 +3252,7 @@ celerity_register_resource_map(array(
36 => 'phabricator-crumbs-view-css', 36 => 'phabricator-crumbs-view-css',
37 => 'phabricator-object-item-list-view-css', 37 => 'phabricator-object-item-list-view-css',
), ),
'uri' => '/res/pkg/c40ccdf9/core.pkg.css', 'uri' => '/res/pkg/ba5cb698/core.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
'8243143a' => '8243143a' =>
@ -3307,7 +3307,7 @@ celerity_register_resource_map(array(
'uri' => '/res/pkg/3c5efda9/darkconsole.pkg.js', 'uri' => '/res/pkg/3c5efda9/darkconsole.pkg.js',
'type' => 'js', 'type' => 'js',
), ),
'79ddb29a' => '7cf15508' =>
array( array(
'name' => 'differential.pkg.css', 'name' => 'differential.pkg.css',
'symbols' => 'symbols' =>
@ -3327,7 +3327,7 @@ celerity_register_resource_map(array(
12 => 'differential-local-commits-view-css', 12 => 'differential-local-commits-view-css',
13 => 'inline-comment-summary-css', 13 => 'inline-comment-summary-css',
), ),
'uri' => '/res/pkg/79ddb29a/differential.pkg.css', 'uri' => '/res/pkg/7cf15508/differential.pkg.css',
'type' => 'css', 'type' => 'css',
), ),
'7ecd31fa' => '7ecd31fa' =>
@ -3440,34 +3440,34 @@ celerity_register_resource_map(array(
'reverse' => 'reverse' =>
array( array(
'aphront-attached-file-view-css' => '7839ae2d', 'aphront-attached-file-view-css' => '7839ae2d',
'aphront-crumbs-view-css' => 'c40ccdf9', 'aphront-crumbs-view-css' => 'ba5cb698',
'aphront-dialog-view-css' => 'c40ccdf9', 'aphront-dialog-view-css' => 'ba5cb698',
'aphront-error-view-css' => 'c40ccdf9', 'aphront-error-view-css' => 'ba5cb698',
'aphront-form-view-css' => 'c40ccdf9', 'aphront-form-view-css' => 'ba5cb698',
'aphront-headsup-action-list-view-css' => '79ddb29a', 'aphront-headsup-action-list-view-css' => '7cf15508',
'aphront-headsup-view-css' => 'c40ccdf9', 'aphront-headsup-view-css' => 'ba5cb698',
'aphront-list-filter-view-css' => 'c40ccdf9', 'aphront-list-filter-view-css' => 'ba5cb698',
'aphront-pager-view-css' => 'c40ccdf9', 'aphront-pager-view-css' => 'ba5cb698',
'aphront-panel-view-css' => 'c40ccdf9', 'aphront-panel-view-css' => 'ba5cb698',
'aphront-side-nav-view-css' => 'c40ccdf9', 'aphront-side-nav-view-css' => 'ba5cb698',
'aphront-table-view-css' => 'c40ccdf9', 'aphront-table-view-css' => 'ba5cb698',
'aphront-tokenizer-control-css' => 'c40ccdf9', 'aphront-tokenizer-control-css' => 'ba5cb698',
'aphront-tooltip-css' => 'c40ccdf9', 'aphront-tooltip-css' => 'ba5cb698',
'aphront-typeahead-control-css' => 'c40ccdf9', 'aphront-typeahead-control-css' => 'ba5cb698',
'differential-changeset-view-css' => '79ddb29a', 'differential-changeset-view-css' => '7cf15508',
'differential-core-view-css' => '79ddb29a', 'differential-core-view-css' => '7cf15508',
'differential-inline-comment-editor' => '7ecd31fa', 'differential-inline-comment-editor' => '7ecd31fa',
'differential-local-commits-view-css' => '79ddb29a', 'differential-local-commits-view-css' => '7cf15508',
'differential-results-table-css' => '79ddb29a', 'differential-results-table-css' => '7cf15508',
'differential-revision-add-comment-css' => '79ddb29a', 'differential-revision-add-comment-css' => '7cf15508',
'differential-revision-comment-css' => '79ddb29a', 'differential-revision-comment-css' => '7cf15508',
'differential-revision-comment-list-css' => '79ddb29a', 'differential-revision-comment-list-css' => '7cf15508',
'differential-revision-history-css' => '79ddb29a', 'differential-revision-history-css' => '7cf15508',
'differential-revision-list-css' => '79ddb29a', 'differential-revision-list-css' => '7cf15508',
'differential-table-of-contents-css' => '79ddb29a', 'differential-table-of-contents-css' => '7cf15508',
'diffusion-commit-view-css' => 'c8ce2d88', 'diffusion-commit-view-css' => 'c8ce2d88',
'diffusion-icons-css' => 'c8ce2d88', 'diffusion-icons-css' => 'c8ce2d88',
'inline-comment-summary-css' => '79ddb29a', 'inline-comment-summary-css' => '7cf15508',
'javelin-aphlict' => '8243143a', 'javelin-aphlict' => '8243143a',
'javelin-behavior' => 'db6d724d', 'javelin-behavior' => 'db6d724d',
'javelin-behavior-aphlict-dropdown' => '8243143a', 'javelin-behavior-aphlict-dropdown' => '8243143a',
@ -3534,48 +3534,48 @@ celerity_register_resource_map(array(
'javelin-util' => 'db6d724d', 'javelin-util' => 'db6d724d',
'javelin-vector' => 'db6d724d', 'javelin-vector' => 'db6d724d',
'javelin-workflow' => 'db6d724d', 'javelin-workflow' => 'db6d724d',
'lightbox-attachment-css' => 'c40ccdf9', 'lightbox-attachment-css' => 'ba5cb698',
'maniphest-task-summary-css' => '7839ae2d', 'maniphest-task-summary-css' => '7839ae2d',
'maniphest-transaction-detail-css' => '7839ae2d', 'maniphest-transaction-detail-css' => '7839ae2d',
'phabricator-app-buttons-css' => 'c40ccdf9', 'phabricator-app-buttons-css' => 'ba5cb698',
'phabricator-busy' => '8243143a', 'phabricator-busy' => '8243143a',
'phabricator-content-source-view-css' => '79ddb29a', 'phabricator-content-source-view-css' => '7cf15508',
'phabricator-core-buttons-css' => 'c40ccdf9', 'phabricator-core-buttons-css' => 'ba5cb698',
'phabricator-core-css' => 'c40ccdf9', 'phabricator-core-css' => 'ba5cb698',
'phabricator-crumbs-view-css' => 'c40ccdf9', 'phabricator-crumbs-view-css' => 'ba5cb698',
'phabricator-directory-css' => 'c40ccdf9', 'phabricator-directory-css' => 'ba5cb698',
'phabricator-drag-and-drop-file-upload' => '7ecd31fa', 'phabricator-drag-and-drop-file-upload' => '7ecd31fa',
'phabricator-dropdown-menu' => '8243143a', 'phabricator-dropdown-menu' => '8243143a',
'phabricator-file-upload' => '8243143a', 'phabricator-file-upload' => '8243143a',
'phabricator-filetree-view-css' => 'c40ccdf9', 'phabricator-filetree-view-css' => 'ba5cb698',
'phabricator-flag-css' => 'c40ccdf9', 'phabricator-flag-css' => 'ba5cb698',
'phabricator-form-view-css' => 'c40ccdf9', 'phabricator-form-view-css' => 'ba5cb698',
'phabricator-header-view-css' => 'c40ccdf9', 'phabricator-header-view-css' => 'ba5cb698',
'phabricator-jump-nav' => 'c40ccdf9', 'phabricator-jump-nav' => 'ba5cb698',
'phabricator-keyboard-shortcut' => '8243143a', 'phabricator-keyboard-shortcut' => '8243143a',
'phabricator-keyboard-shortcut-manager' => '8243143a', 'phabricator-keyboard-shortcut-manager' => '8243143a',
'phabricator-main-menu-view' => 'c40ccdf9', 'phabricator-main-menu-view' => 'ba5cb698',
'phabricator-menu-item' => '8243143a', 'phabricator-menu-item' => '8243143a',
'phabricator-nav-view-css' => 'c40ccdf9', 'phabricator-nav-view-css' => 'ba5cb698',
'phabricator-notification' => '8243143a', 'phabricator-notification' => '8243143a',
'phabricator-notification-css' => 'c40ccdf9', 'phabricator-notification-css' => 'ba5cb698',
'phabricator-notification-menu-css' => 'c40ccdf9', 'phabricator-notification-menu-css' => 'ba5cb698',
'phabricator-object-item-list-view-css' => 'c40ccdf9', 'phabricator-object-item-list-view-css' => 'ba5cb698',
'phabricator-object-selector-css' => '79ddb29a', 'phabricator-object-selector-css' => '7cf15508',
'phabricator-paste-file-upload' => '8243143a', 'phabricator-paste-file-upload' => '8243143a',
'phabricator-prefab' => '8243143a', 'phabricator-prefab' => '8243143a',
'phabricator-project-tag-css' => '7839ae2d', 'phabricator-project-tag-css' => '7839ae2d',
'phabricator-remarkup-css' => 'c40ccdf9', 'phabricator-remarkup-css' => 'ba5cb698',
'phabricator-shaped-request' => '7ecd31fa', 'phabricator-shaped-request' => '7ecd31fa',
'phabricator-side-menu-view-css' => 'c40ccdf9', 'phabricator-side-menu-view-css' => 'ba5cb698',
'phabricator-standard-page-view' => 'c40ccdf9', 'phabricator-standard-page-view' => 'ba5cb698',
'phabricator-textareautils' => '8243143a', 'phabricator-textareautils' => '8243143a',
'phabricator-tooltip' => '8243143a', 'phabricator-tooltip' => '8243143a',
'phabricator-transaction-view-css' => 'c40ccdf9', 'phabricator-transaction-view-css' => 'ba5cb698',
'sprite-apps-large-css' => 'c40ccdf9', 'sprite-apps-large-css' => 'ba5cb698',
'sprite-gradient-css' => 'c40ccdf9', 'sprite-gradient-css' => 'ba5cb698',
'sprite-icon-css' => 'c40ccdf9', 'sprite-icon-css' => 'ba5cb698',
'sprite-menu-css' => 'c40ccdf9', 'sprite-menu-css' => 'ba5cb698',
'syntax-highlighting-css' => 'c40ccdf9', 'syntax-highlighting-css' => 'ba5cb698',
), ),
)); ));

View file

@ -838,8 +838,10 @@ final class DifferentialRevisionViewController extends DifferentialController {
$view->setHandles($handles); $view->setHandles($handles);
return return
id(new PhabricatorHeaderView())
->setHeader(pht('Open Revisions Affecting These Files'))
->render().
'<div class="differential-panel">'. '<div class="differential-panel">'.
'<h1>Open Revisions Affecting These Files</h1>'.
$view->render(). $view->render().
'</div>'; '</div>';
} }

View file

@ -188,7 +188,11 @@ final class DifferentialChangesetListView extends AphrontView {
)); ));
} }
return phutil_render_tag( return
id(new PhabricatorHeaderView())
->setHeader('D'.$this->diff->getID())
->render().
phutil_render_tag(
'div', 'div',
array( array(
'class' => 'differential-review-stage', 'class' => 'differential-review-stage',

View file

@ -185,35 +185,42 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
1, // line number 1, // line number
$this->repository->getCallsign()); $this->repository->getCallsign());
if ($editor_link) { if ($editor_link) {
$editor_link = phutil_render_tag( $editor_link =
'a', phutil_render_tag(
array( 'a',
'href' => $editor_link, array(
'class' => 'button differential-toc-edit-all', 'href' => $editor_link,
), 'class' => 'button differential-toc-edit-all',
'Open All in Editor'); ),
'Open All in Editor');
} }
} }
$reveal_link = javelin_render_tag( $reveal_link =
'a', javelin_render_tag(
array( 'a',
'sigil' => 'differential-reveal-all', array(
'mustcapture' => true, 'sigil' => 'differential-reveal-all',
'class' => 'button differential-toc-reveal-all', 'mustcapture' => true,
), 'class' => 'button differential-toc-reveal-all',
'Show All Context' ),
); 'Show All Context'
);
$buttons =
'<tr><td colspan="7">'.
$editor_link.$reveal_link.
'</td></tr>';
return return
id(new PhabricatorAnchorView()) id(new PhabricatorAnchorView())
->setAnchorName('toc') ->setAnchorName('toc')
->setNavigationMarker(true) ->setNavigationMarker(true)
->render(). ->render().
id(new PhabricatorHeaderView())
->setHeader(pht('Table of Contents'))
->render().
'<div class="differential-toc differential-panel">'. '<div class="differential-toc differential-panel">'.
$editor_link.
$reveal_link.
'<h1>Table of Contents</h1>'.
'<table>'. '<table>'.
'<tr>'. '<tr>'.
'<th></th>'. '<th></th>'.
@ -224,6 +231,7 @@ final class DifferentialDiffTableOfContentsView extends AphrontView {
'<th class="differential-toc-mcov">Coverage (Touched)</th>'. '<th class="differential-toc-mcov">Coverage (Touched)</th>'.
'</tr>'. '</tr>'.
implode("\n", $rows). implode("\n", $rows).
$buttons.
'</table>'. '</table>'.
'</div>'; '</div>';
} }

View file

@ -126,8 +126,10 @@ final class DifferentialLocalCommitsView extends AphrontView {
$headers = '<tr>'.implode('', $headers).'</tr>'; $headers = '<tr>'.implode('', $headers).'</tr>';
return return
id(new PhabricatorHeaderView())
->setHeader(pht('Local Commits'))
->render().
'<div class="differential-panel">'. '<div class="differential-panel">'.
'<h1>Local Commits</h1>'.
'<table class="differential-local-commits-table">'. '<table class="differential-local-commits-table">'.
$headers. $headers.
implode("\n", $rows). implode("\n", $rows).

View file

@ -202,8 +202,10 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
$select .= '</select>'; $select .= '</select>';
return return
id(new PhabricatorHeaderView())
->setHeader(pht('Revision Update History'))
->render() .
'<div class="differential-revision-history differential-panel">'. '<div class="differential-revision-history differential-panel">'.
'<h1>Revision Update History</h1>'.
'<form action="#toc">'. '<form action="#toc">'.
'<table class="differential-revision-history-table">'. '<table class="differential-revision-history-table">'.
'<tr>'. '<tr>'.
@ -217,7 +219,7 @@ final class DifferentialRevisionUpdateHistoryView extends AphrontView {
'</tr>'. '</tr>'.
implode("\n", $rows). implode("\n", $rows).
'<tr>'. '<tr>'.
'<td colspan="8" class="diff-differ-submit">'. '<td colspan="9" class="diff-differ-submit">'.
'<label>Whitespace Changes: '.$select.'</label>'. '<label>Whitespace Changes: '.$select.'</label>'.
'<button>Show Diff</button>'. '<button>Show Diff</button>'.
'</td>'. '</td>'.

View file

@ -3,14 +3,18 @@
*/ */
.differential-review-stage { .differential-review-stage {
margin: 0 2em 0 2em; background: #FFFFFF;
padding: 0em 1.25em 0em 0em;
} }
.differential-changeset { .differential-changeset {
z-index: 2; z-index: 2;
position: relative; position: relative;
margin: 0;
padding: 10px 0% 20px 2%;
} }
.differential-diff { .differential-diff {
background: transparent; background: transparent;
width: 100%; width: 100%;
@ -220,11 +224,6 @@ td.cov-X {
padding: 2px 0 8px; padding: 2px 0 8px;
} }
.differential-changeset {
margin: 0.5em 0;
padding: 10px 0px 20px;
}
.differential-reticle { .differential-reticle {
background: #ffeeaa; background: #ffeeaa;
border: 1px solid #ffcc00; border: 1px solid #ffcc00;

View file

@ -3,15 +3,20 @@
*/ */
.differential-primary-pane { .differential-primary-pane {
padding-bottom: 2em; background: #edecef;
padding: 1em 0em 0em 0em;
margin: 0em 0em 4em 0em;
} }
.differential-panel { .differential-panel {
margin: 25px 2em 0 2em; margin: -1px 0px 3.6em 0px;
border: 1px solid #666622; padding: 15px 2%;
background: #efefdf;
padding: 15px 20px;
font-size: 13px; font-size: 13px;
background: #F6F6F6;
border-color: #c0c5d1;
border-style: solid;
border-width: 1px 0 1px 0;
box-shadow: 0 0 1px 1px rgba(192, 197, 209, 0.3);
} }
.differential-panel h1 { .differential-panel h1 {
@ -27,3 +32,4 @@
-ms-user-select: none; -ms-user-select: none;
user-select: none; user-select: none;
} }

View file

@ -15,7 +15,7 @@
} }
.differential-local-commits-table tr td { .differential-local-commits-table tr td {
background: #dcdeca; background: #dcdcdc;
} }
.differential-local-commits-table td { .differential-local-commits-table td {

View file

@ -3,7 +3,11 @@
*/ */
.differential-comment-list { .differential-comment-list {
margin: 0 2em 0 2em; margin: 0 2em 3.6em 2em;
}
.differential-comment-list .phabricator-transaction-content {
background: #ffffff;
} }
/* Spooky haunted panel which floats on the bottom of the screen. /* Spooky haunted panel which floats on the bottom of the screen.

View file

@ -14,7 +14,7 @@
} }
.differential-revision-history-table td { .differential-revision-history-table td {
padding: 4px; padding: 4px 0px 4px 0px;
} }
.differential-revision-history-table td { .differential-revision-history-table td {
@ -22,7 +22,7 @@
} }
.differential-revision-history-table tr.alt { .differential-revision-history-table tr.alt {
background: #ddddcc; background: #dcdcdc;
} }
@ -74,6 +74,7 @@
.differential-revision-history-table td.diff-differ-submit { .differential-revision-history-table td.diff-differ-submit {
text-align: right; text-align: right;
border-bottom: none; border-bottom: none;
padding: 8px 0px 4px 0px;
} }
.differential-revision-history-table td.diff-differ-submit button { .differential-revision-history-table td.diff-differ-submit button {

View file

@ -79,6 +79,10 @@
color: #666666; color: #666666;
} }
.differential-toc .button {
margin: 8px 0px 0px 8px;
}
.differential-mcoverage-loading { .differential-mcoverage-loading {
color: #888888; color: #888888;
} }