Skip to content

Commit

Permalink
feat(tagstatistics): add tooltips on column headers
Browse files Browse the repository at this point in the history
  • Loading branch information
lucashimpens committed Oct 21, 2024
1 parent ce7b7a3 commit ffd76a7
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2896,28 +2896,28 @@ public ArrayList<String> getSqlDocumentation() {
b.append(",('page_campaignstatistics','environment_col','','en','Environment','',NULL)");
b.append(",('page_campaignstatistics','country_col','','fr','Pays','',NULL)");
b.append(",('page_campaignstatistics','country_col','','en','Country','',NULL)");
b.append(",('page_campaignstatistics','systems_col','','fr','Systèmes','',NULL)");
b.append(",('page_campaignstatistics','systems_col','','en','Systems','',NULL)");
b.append(",('page_campaignstatistics','applications_col','','fr','Applications','',NULL)");
b.append(",('page_campaignstatistics','applications_col','','en','Applications','',NULL)");
b.append(",('page_campaignstatistics','group1_col','','fr','Groupe 1','',NULL)");
b.append(",('page_campaignstatistics','group1_col','','en','Group 1','',NULL)");
b.append(",('page_campaignstatistics','minDateStart_col','','fr','Date de première exécution','',NULL)");
b.append(",('page_campaignstatistics','minDateStart_col','','en','Date of first execution','',NULL)");
b.append(",('page_campaignstatistics','maxDateEnd_col','','fr','Date de dernière exécution','',NULL)");
b.append(",('page_campaignstatistics','maxDateEnd_col','','en','Date of last execution','',NULL)");
b.append(",('page_campaignstatistics','avgOK_col','','fr','% moyen de OK','',NULL)");
b.append(",('page_campaignstatistics','avgOK_col','','en','Average % of OK','',NULL)");
b.append(",('page_campaignstatistics','avgDuration_col','','fr','Durée moyenne','',NULL)");
b.append(",('page_campaignstatistics','avgDuration_col','','en','Average duration','',NULL)");
b.append(",('page_campaignstatistics','avgReliability_col','','fr','Fiabilité moyenne','',NULL)");
b.append(",('page_campaignstatistics','avgReliability_col','','en','Average reliability','',NULL)");
b.append(",('page_campaignstatistics','nbExeUseful_col','','fr','Test Exe Nb','',NULL)");
b.append(",('page_campaignstatistics','nbExeUseful_col','','en','TC Exe Nb','',NULL)");
b.append(",('page_campaignstatistics','nbExe_col','','fr','Test Exe Nb avec relances','',NULL)");
b.append(",('page_campaignstatistics','nbExe_col','','en','TC Exe Nb with retries','',NULL)");
b.append(",('page_campaignstatistics','nbCampaignExecutions_col','','fr','Nombre d\\'exécutions de campagne','',NULL)");
b.append(",('page_campaignstatistics','nbCampaignExecutions_col','','en','Campaign run count','',NULL)");
b.append(",('page_campaignstatistics','systems_col','','fr','Systèmes','Liste des systèmes couverts par la campagne.',NULL)");
b.append(",('page_campaignstatistics','systems_col','','en','Systems','List of the systems covered by the campaign.',NULL)");
b.append(",('page_campaignstatistics','applications_col','','fr','Applications','Liste des applications couvertes par la campagne.',NULL)");
b.append(",('page_campaignstatistics','applications_col','','en','Applications','List of the applications covered by the campaign.',NULL)");
b.append(",('page_campaignstatistics','group1_col','','fr','Groupe 1','Groupe 1 associé à la campagne.',NULL)");
b.append(",('page_campaignstatistics','group1_col','','en','Group 1','The group 1 associated to the campaign.',NULL)");
b.append(",('page_campaignstatistics','minDateStart_col','','fr','Date de première exécution','Cela correspond à la date de début du premier test exécuté dans la campagne.',NULL)");
b.append(",('page_campaignstatistics','minDateStart_col','','en','Date of first execution','It corresponds to the start date of the first test executed in the campaign.',NULL)");
b.append(",('page_campaignstatistics','maxDateEnd_col','','fr','Date de dernière exécution','Cela correspond à la date de fin du dernier test exécuté dans la campagne.',NULL)");
b.append(",('page_campaignstatistics','maxDateEnd_col','','en','Date of last execution','It corresponds to the end date of the last test executed in the campaign.',NULL)");
b.append(",('page_campaignstatistics','avgOK_col','','fr','% moyen de OK','Pourcentage moyen d\\'exécutions de test avec statut OK.',NULL)");
b.append(",('page_campaignstatistics','avgOK_col','','en','Average % of OK','Average percentage of test executions with OK status.',NULL)");
b.append(",('page_campaignstatistics','avgDuration_col','','fr','Durée moyenne','Durée moyenne de la campagne.',NULL)");
b.append(",('page_campaignstatistics','avgDuration_col','','en','Average duration','Average duration of the campaign.',NULL)");
b.append(",('page_campaignstatistics','avgReliability_col','','fr','Fiabilité moyenne','Fiabilité moyenne de la campagne sur la période. Plus le nombre de relances est elevé, plus la fiabilité sera faible.',NULL)");
b.append(",('page_campaignstatistics','avgReliability_col','','en','Average reliability','Average reliability of the campaign. The more the number of retries is high, the more the realiability will be small.',NULL)");
b.append(",('page_campaignstatistics','nbExeUseful_col','','fr','Test Exe Nb','Nombre d\\'exécutions de cas de test sans les relances.',NULL)");
b.append(",('page_campaignstatistics','nbExeUseful_col','','en','TC Exe Nb','Testcase executions number excluding retries.',NULL)");
b.append(",('page_campaignstatistics','nbExe_col','','fr','Test Exe Nb avec relances','Nombre d\\'exécutions de cas de test avec les relances.',NULL)");
b.append(",('page_campaignstatistics','nbExe_col','','en','TC Exe Nb with retries','Testcase executions number including retries.',NULL)");
b.append(",('page_campaignstatistics','nbCampaignExecutions_col','','fr','Nombre d\\'exécutions de campagne','Nombre de fois où la campagne a été exécutée sur la période choisie.',NULL)");
b.append(",('page_campaignstatistics','nbCampaignExecutions_col','','en','Campaign run count','Number of time the campaign was ran on the chosent iod.',NULL)");
b.append(",('page_robot','button_create','','en','Create new Robot','',NULL)");
b.append(",('page_robot','button_create','','fa','ایجاد ربات جدید','',NULL)");
b.append(",('page_robot','button_create','','fr','Créer un nouveau Robot','',NULL)");
Expand Down
44 changes: 22 additions & 22 deletions source/src/main/webapp/js/pages/ReportingCampaignStatistics.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,28 +315,28 @@ function aoColumnsFunc(tableId) {
"searchable": true,
"width": "120px",
"className": "center",
"title": doc.getDocLabel("page_campaignstatistics", "systems_col")
"title": doc.getDocOnline("page_campaignstatistics", "systems_col")
},
{
"data": "applicationList",
"name": "applications",
"searchable": true,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "applications_col")
"title": doc.getDocOnline("page_campaignstatistics", "applications_col")
},
{
"data": "campaignGroup1",
"name": "Campaign Group 1",
"searchable": true,
"width": "60px",
"title": doc.getDocLabel("page_campaignstatistics", "group1_col")
"title": doc.getDocOnline("page_campaignstatistics", "group1_col")
},
{
"data": "minDateStart",
"name": "minDateStart",
"searchable": false,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "minDateStart_col"),
"width": "125px",
"title": doc.getDocOnline("page_campaignstatistics", "minDateStart_col"),
"render": function (data, type, obj) {
return new Date(obj.minDateStart).toLocaleString();
}
Expand All @@ -345,8 +345,8 @@ function aoColumnsFunc(tableId) {
"data": "maxDateEnd",
"name": "maxDateEnd",
"searchable": false,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "maxDateEnd_col"),
"width": "125px",
"title": doc.getDocOnline("page_campaignstatistics", "maxDateEnd_col"),
"render": function (data, type, obj) {
return new Date(obj.maxDateEnd).toLocaleString();
}
Expand All @@ -356,7 +356,7 @@ function aoColumnsFunc(tableId) {
"name": "avgOK",
"searchable": false,
"width": "130px",
"title": doc.getDocLabel("page_campaignstatistics", "avgOK_col"),
"title": doc.getDocOnline("page_campaignstatistics", "avgOK_col"),
"render": function (data, type, obj) {
let roundedPercentage = Math.round(obj.avgOK * 10) / 10;
let color = getGreenToRed(obj.avgOK);
Expand All @@ -368,7 +368,7 @@ function aoColumnsFunc(tableId) {
"name": "avgDuration",
"searchable": false,
"width": "110px",
"title": doc.getDocLabel("page_campaignstatistics", "avgDuration_col"),
"title": doc.getDocOnline("page_campaignstatistics", "avgDuration_col"),
"render": function (data, type, obj) {
let roundedAvgDuration = Math.round(obj.avgDuration);
let hours = Math.floor(roundedAvgDuration / 3600);
Expand All @@ -382,7 +382,7 @@ function aoColumnsFunc(tableId) {
"name": "avgReliability",
"searchable": false,
"width": "130px",
"title": doc.getDocLabel("page_campaignstatistics", "avgReliability_col"),
"title": doc.getDocOnline("page_campaignstatistics", "avgReliability_col"),
"render": function (data, type, obj) {
let roundedPercentage = Math.round(obj.avgReliability * 10) / 10;
let color = getGreenToRed(roundedPercentage);
Expand All @@ -394,7 +394,7 @@ function aoColumnsFunc(tableId) {
"name": "nbCampaignExecutions",
"searchable": false,
"width": "130px",
"title": doc.getDocLabel("page_campaignstatistics", "nbCampaignExecutions_col")
"title": doc.getDocOnline("page_campaignstatistics", "nbCampaignExecutions_col")
},
];
return aoColumns;
Expand Down Expand Up @@ -425,21 +425,21 @@ function aoColumnsDetailFunc(tableId) {
"searchable": true,
"width": "120px",
"className": "center",
"title": doc.getDocLabel("page_campaignstatistics", "systems_col")
"title": doc.getDocOnline("page_campaignstatistics", "systems_col")
},
{
"data": "applicationList",
"name": "applications",
"searchable": true,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "applications_col")
"title": doc.getDocOnline("page_campaignstatistics", "applications_col")
},
{
"data": "minDateStart",
"name": "minDateStart",
"searchable": false,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "minDateStart_col"),
"width": "125px",
"title": doc.getDocOnline("page_campaignstatistics", "minDateStart_col"),
"render": function (data, type, obj) {
return new Date(obj.minDateStart).toLocaleString();
}
Expand All @@ -448,8 +448,8 @@ function aoColumnsDetailFunc(tableId) {
"data": "maxDateEnd",
"name": "maxDateEnd",
"searchable": false,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "maxDateEnd_col"),
"width": "125px",
"title": doc.getDocOnline("page_campaignstatistics", "maxDateEnd_col"),
"render": function (data, type, obj) {
return new Date(obj.maxDateEnd).toLocaleString();
}
Expand All @@ -459,7 +459,7 @@ function aoColumnsDetailFunc(tableId) {
"name": "avgOK",
"searchable": false,
"width": "130px",
"title": doc.getDocLabel("page_campaignstatistics", "avgOK_col"),
"title": doc.getDocOnline("page_campaignstatistics", "avgOK_col"),
"render": function (data, type, obj) {
let roundedPercentage = Math.round(obj.avgOK * 10) / 10;
let color = getGreenToRed(obj.avgOK);
Expand All @@ -471,7 +471,7 @@ function aoColumnsDetailFunc(tableId) {
"name": "avgDuration",
"searchable": false,
"width": "110px",
"title": doc.getDocLabel("page_campaignstatistics", "avgDuration_col"),
"title": doc.getDocOnline("page_campaignstatistics", "avgDuration_col"),
"render": function (data, type, obj) {
let roundedAvgDuration = Math.round(obj.avgDuration);
let hours = Math.floor(roundedAvgDuration / 3600);
Expand All @@ -485,7 +485,7 @@ function aoColumnsDetailFunc(tableId) {
"name": "avgReliability",
"searchable": false,
"width": "130px",
"title": doc.getDocLabel("page_campaignstatistics", "avgReliability_col"),
"title": doc.getDocOnline("page_campaignstatistics", "avgReliability_col"),
"render": function (data, type, obj) {
let roundedPercentage = Math.round(obj.avgReliability * 10) / 10;
let color = getGreenToRed(roundedPercentage);
Expand All @@ -497,14 +497,14 @@ function aoColumnsDetailFunc(tableId) {
"name": "nbExeUseful",
"searchable": false,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "nbExeUseful_col")
"title": doc.getDocOnline("page_campaignstatistics", "nbExeUseful_col")
},
{
"data": "nbExe",
"name": "nbExe",
"searchable": false,
"width": "120px",
"title": doc.getDocLabel("page_campaignstatistics", "nbExe_col")
"title": doc.getDocOnline("page_campaignstatistics", "nbExe_col")
},
];
return aoColumns;
Expand Down

0 comments on commit ffd76a7

Please sign in to comment.