Skip to content

Show pull request info in "Current Branch" - #2871

Merged
niik merged 34 commits into
masterfrom
current-pr
Sep 29, 2017
Merged

niik merged 34 commits into
masterfrom
current-pr

Conversation

@joshaber

@joshaber joshaber commented Sep 25, 2017 •

Copy link
Copy Markdown
Contributor

Fixes #2820

Builds on top of #2823.

screen shot 2017-09-28 at 1 19 37 pm

screen shot 2017-09-28 at 1 19 42 pm

@joshaber
joshaber changed the base branch from master to pull-request-list September 25, 2017 20:07
@joshaber joshaber added the ready-for-review Pull Requests that are ready to be reviewed by the maintainers label Sep 25, 2017
@joshaber

Copy link
Copy Markdown
Contributor Author

This is ready but it builds on top of #2823 so go review that first 🙏

@joshaber

joshaber commented Sep 25, 2017 •

Copy link
Copy Markdown
Contributor Author

@niik FYI that I'm using $gray-800 for the badge background, as per #2642 (comment), but it looks less contrast-y than your mock.

@j-f1

j-f1 commented Sep 25, 2017

Copy link
Copy Markdown
Contributor

Does it look better with the same color as the “Current Branch” text?

@joshaber
joshaber changed the base branch from pull-request-list to master September 26, 2017 16:56
@joshaber

Copy link
Copy Markdown
Contributor Author

This is ready now that #2823 has landed ✈️

@niik

niik commented Sep 27, 2017

Copy link
Copy Markdown
Member

@niik FYI that I'm using $gray-800 for the badge background, as per #2642 (comment), but it looks less contrast-y than your mock.

Hmm, that's odd. Could you drop me a screenshot and I'll take a look?

@niik niik left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey, this is looking good @joshaber. A few color tweaks that are my bad and due to us using an old version of the color system in our sketch templates.

The paddings seems to be a little bit off though.

screen shot 2017-09-28 at 16 09 01

We should have uniform 5px margins around the whole thing.

screen shot 2017-09-28 at 16 09 13

Comment thread app/styles/ui/_pull-request-badge.scss Outdated
}

.toolbar-dropdown:not(.open) .pr-badge {
background: $gray-800;

This comment was marked as spam.

Comment thread app/styles/ui/ci-status.scss Outdated
}

.ci-status-failure {
color: $red-600;

This comment was marked as spam.

Comment thread app/styles/ui/_pull-request-badge.scss Outdated
@@ -0,0 +1,28 @@
.toolbar-dropdown.open .pr-badge {
background: $gray-200;

This comment was marked as spam.

}

.ci-status-success {
color: $green-500;

This comment was marked as spam.

}

.ci-status-pending {
color: $orange-700;

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor Author

Screenshots updated in the body 🐗

Comment thread app/styles/ui/_pull-request-badge.scss Outdated

align-items: center;

border: var(--base-border);

This comment was marked as spam.

Comment thread app/styles/ui/_pull-request-badge.scss Outdated
border-width: 0;

margin-right: var(--spacing);
margin-left: var(--spacing);

This comment was marked as spam.

Comment thread app/styles/ui/_pull-request-badge.scss Outdated

.number {
font-size: var(--font-size-sm);
line-height: 12px;

This comment was marked as spam.

@@ -128,23 +130,24 @@ export class BranchDropdown extends React.Component<

const pullRequestsWithStatus: Array<IPullRequest> = []
for (const pr of pullRequests) {

This comment was marked as spam.

This comment was marked as spam.

this.setState({ pullRequests })
}

private get currentPullRequest(): IPullRequest | null {

This comment was marked as spam.

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor Author

🇻🇦

}

.pr-badge {
--height: 18px;

This comment was marked as spam.

@niik
niik merged commit 7c35afc into master Sep 29, 2017
@niik
niik deleted the current-pr branch September 29, 2017 13:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-review Pull Requests that are ready to be reviewed by the maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants