refactor: implement dashboard UI enhancements, add health alert tooltips, and introduce modular JS application structure with Netlify data functions.
This commit is contained in:
@@ -248,9 +248,19 @@ function processIssues(issues, period = '90d') {
|
||||
|
||||
const timeQaMin = f[config.fields.qaTotalTimeQa] ?? 0;
|
||||
const timeRtqaMin = f[config.fields.qaTotalTimeRtqa] ?? 0;
|
||||
const timesRet = f[config.fields.timesReturned] ?? 0;
|
||||
let timesRet = f[config.fields.timesReturned] ?? 0;
|
||||
|
||||
// Ignorar valores erróneos acumulados por la automatización vieja
|
||||
const automationFixDate = new Date('2026-04-07T00:00:00-03:00');
|
||||
const issueCreated = f.created ? new Date(f.created) : null;
|
||||
if (issueCreated && issueCreated < automationFixDate) {
|
||||
timesRet = 1; // Lo forzamos a 1 (no devuelto) para que no rompa las métricas con data sucia
|
||||
}
|
||||
const qaMonth = resMonth || creMonth;
|
||||
|
||||
const timeCrMin = f[config.fields.crTotalTime] ?? 0;
|
||||
const timeDevMin = f[config.fields.enCursoTotalTime] ?? 0;
|
||||
|
||||
if (timeQaMin > 0) {
|
||||
qaData.tickets++;
|
||||
qaData.totalTimeQa += timeQaMin;
|
||||
@@ -262,7 +272,8 @@ function processIssues(issues, period = '90d') {
|
||||
}
|
||||
qaData.issues.push({
|
||||
key: issue.key, summary: f.summary, timeQa: minsToHrs(timeQaMin), timeRtqa: minsToHrs(timeRtqaMin),
|
||||
timesReturned: timesRet, status: statusKey, resMonth: qaMonth
|
||||
timesReturned: timesRet, status: statusKey, resMonth: qaMonth,
|
||||
timeCr: minsToHrs(timeCrMin), timeDev: minsToHrs(timeDevMin)
|
||||
});
|
||||
}
|
||||
|
||||
@@ -275,7 +286,6 @@ function processIssues(issues, period = '90d') {
|
||||
}
|
||||
}
|
||||
|
||||
const timeCrMin = f[config.fields.crTotalTime] ?? 0;
|
||||
if (timeCrMin > 0) {
|
||||
crData.tickets++;
|
||||
crData.totalTimeCr += timeCrMin;
|
||||
|
||||
Reference in New Issue
Block a user