Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update message on per commit view #516

Merged
merged 13 commits into from Feb 1, 2019

Conversation

ongspxm
Copy link
Contributor

@ongspxm ongspxm commented Jan 27, 2019

in response to comment on #500

@eugenepeh
Copy link
Member

Since you're at it, fix my the other comment too,
#500 (review)

@yamidark yamidark requested review from eugenepeh and removed request for eugenepeh January 29, 2019 04:16
Copy link
Member

@eugenepeh eugenepeh left a comment

Choose a reason for hiding this comment

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

there are more needed fixing, e.g. L125. Didn't list them all cause too many.

@@ -110,11 +110,12 @@ html
v-for="(commit, k) in slice.commitResults",
v-if="commit.insertions>0",
v-bind:title="`[${slice.date}] ${commit.message}: ${commit.insertions} lines`",
v-bind:class="'summary-chart__ramp__slice--color'+j%5",
v-bind:class="'summary-chart__ramp__slice--color' + j%5",
Copy link
Member

Choose a reason for hiding this comment

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

% is also an operator ._.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

mod also ah

Copy link
Contributor Author

Choose a reason for hiding this comment

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

haoba

Copy link
Contributor

@yamidark yamidark left a comment

Choose a reason for hiding this comment

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

Some nits

}"
)

template(v-else)
a.summary-chart__ramp__slice(
v-for="(slice, j) in user.commits",
v-if="slice.insertions>0",
v-bind:title="`contribution on ${slice.date}: ${slice.insertions} lines`",
v-bind:title="`[${slice.date}] ${filterTimeFrame==='day' ? 'Daily' : 'Weekly'} contribution: ${slice.insertions} lines`",
Copy link
Contributor

Choose a reason for hiding this comment

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

Space around the === operator as well?

@@ -132,7 +132,7 @@ window.vSummary = {
const newSize = 100 * (slice.insertions / this.avgCommitSize);
return Math.max(newSize * this.rampSize, 0.5);
},
getSlicePos(i, total){
getSlicePos(i, total) {
return (total-i-1) / total;
Copy link
Contributor

Choose a reason for hiding this comment

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

The - operators here as well

Copy link
Member

@eugenepeh eugenepeh left a comment

Choose a reason for hiding this comment

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

132 (entire chunk should double indent), 134 (the + operator should be on next line), 142, 143

@ongspxm ongspxm requested a review from yamidark January 31, 2019 09:06
Copy link
Member

@eugenepeh eugenepeh left a comment

Choose a reason for hiding this comment

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

can merge after fix

zIndex: user.commits.length - j,\
borderLeftWidth: getWidth(commit) + 'em',\
right: ((getSlicePos(j, user.commits.length)\
+ (getSlicePos(k, slice.commitResults.length) / user.commits.length)) * 100) + '%'\
Copy link
Member

Choose a reason for hiding this comment

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

here should be double indent too.

Copy link
Contributor

@yamidark yamidark left a comment

Choose a reason for hiding this comment

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

@eugenepeh May need to update Codacy, seems to have some conflicts with our ESLint settings

@eugenepeh
Copy link
Member

@eugenepeh May need to update Codacy, seems to have some conflicts with our ESLint settings

Done

@yamidark yamidark merged commit 76f2790 into reposense:per-commit-view Feb 1, 2019
@ongspxm ongspxm deleted the per-commit-view branch February 1, 2019 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants