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
Conversation
Since you're at it, fix my the other comment too, |
There was a problem hiding this 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.
frontend/src/index.jade
Outdated
@@ -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", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
%
is also an operator ._.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
mod also ah
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
haoba
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some nits
frontend/src/index.jade
Outdated
}" | ||
) | ||
|
||
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`", |
There was a problem hiding this comment.
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?
frontend/src/static/js/v_summary.js
Outdated
@@ -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; |
There was a problem hiding this comment.
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
There was a problem hiding this 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
There was a problem hiding this 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
frontend/src/index.jade
Outdated
zIndex: user.commits.length - j,\ | ||
borderLeftWidth: getWidth(commit) + 'em',\ | ||
right: ((getSlicePos(j, user.commits.length)\ | ||
+ (getSlicePos(k, slice.commitResults.length) / user.commits.length)) * 100) + '%'\ |
There was a problem hiding this comment.
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.
There was a problem hiding this 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
Done |
in response to comment on #500