-
Notifications
You must be signed in to change notification settings - Fork 8
Conversation
|
||
<div class="row"> | ||
<div class="col-md-10 col-md-offset-2"> | ||
<h4 style="line-height:34px; margin-top:0;">Nice graphs 😍</h4> |
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 you please replace all "Nice graphs" occurrences with a property within our localisation file? (so ${i18n.translate("header.graphs")}
and then in devhub_en.properties
you add: header.graphs = ...
. We may reconsider to change the title too. I would keep the emoji.
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.
I did, but it killed the emoji :'(
return getGoogleChartDataForCommits(commitEntities); | ||
} | ||
|
||
private static List<List<Object>> getGoogleChartDataForCommits(List<Commit> commitEntities) { |
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.
I don't see any mention or communication with Google in this method. Should it be called getGoogleChartDataForCommits
?
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.
It doesn't call Google but it represents a data format specifically for Google Charts. So the naming is fine.
vAxis: {minValue: 0, gridlines: {count : -1}} | ||
}; | ||
|
||
var mijnMagischeElement = $('<div>') |
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.
Dutch?
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.
¯_(ツ)_/¯ maybe to make the magic even more magic? :')
|
||
google.charts.load('current', {'packages':['corechart']}); | ||
google.charts.setOnLoadCallback(function() { | ||
$.get('http://localhost:50001/courses/ti1705/TI1705/groups/1/person-commit') |
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.
Should be the production url, or relative from the current url.
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.
It should be relative indeed. (/courses...
)
var randomcolor = getRandColor(4); | ||
google.charts.load('current', {'packages':['corechart']}); | ||
google.charts.setOnLoadCallback(function() { | ||
$.get('http://localhost:50001/courses/ti1705/TI1705/groups/1/magical-chart-data') |
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.
Should be the production url, or relative from the current url.
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.
It should be relative indeed. (/courses...
)
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.
And it should dynamically get the group and course numbers
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.
Good catch 😉
<script type="text/javascript" src="http://code.stephenmorley.org/javascript/colour-handling-and-processing/Colour.js"></script> | ||
<script type="text/javascript"> | ||
|
||
function getRandColor(brightness){ |
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.
Did you copy this from an external resource? Would be better to include a link to it, maybe StackOverflow?
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.
I think I did yes, you want a link for reference?
|
||
<!-- Graph for all commits --> | ||
<div class="col-md-10"> | ||
<div id="allcommits_div" style="width: 100%; height: 500px; "></div> |
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.
Include styling in a <style>
instead, not in-line
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.
Or in the sass
files perhaps.
Yes, because it is complex code and not immediately clear how it works.
…On Sun, 2 Jul 2017, 01:17 asylunatic, ***@***.***> wrote:
***@***.**** commented on this pull request.
------------------------------
In src/main/resources/templates/project-commit-graph.ftl
<#486 (comment)>:
> + <div id="allcommits_div" style="width: 100%; height: 500px; "></div>
+ </div>
+ </div>
+
+ <!-- Graph for a person for a commit -->
+ <div class="row" id="personcommit_divs">
+ </div>
+
+</div> <!-- closes div class="container" -->
+
***@***.*** /]
+<script type="text/javascript" src="https://www.gstatic.com/charts/loader.js"></script>
+<script type="text/javascript" src="http://code.stephenmorley.org/javascript/colour-handling-and-processing/Colour.js"></script>
+<script type="text/javascript">
+
+ function getRandColor(brightness){
I think I did yes, you want a link for reference?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#486 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AFrDb3rCN3-qXYvU0uWAHDAvmjVE4DPAks5sJtN1gaJpZM4OHwBL>
.
|
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.
Please remove the localhost:5001
lines. Other than that everything that has not got comments looks good!
|
||
<!-- Graph for all commits --> | ||
<div class="col-md-10"> | ||
<div id="allcommits_div" style="width: 100%; height: 500px; "></div> |
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.
Or in the sass
files perhaps.
|
||
google.charts.load('current', {'packages':['corechart']}); | ||
google.charts.setOnLoadCallback(function() { | ||
$.get('/courses/ti1705/TI1705/groups/1/person-commit') |
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.
Also this should dynamically load, haven't figured that out though
4f52d38
to
497c068
Compare
I've pushed changes that make the path truly relative.
No description provided.