@camunda/ccma-saas-frontend 0.18.4 → 0.18.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -77,8 +77,14 @@ function toUsageChartPoints(entries, clusterNames, orgName) {
|
|
|
77
77
|
? (clusterNames.get(entry.clusterId) ?? entry.clusterId)
|
|
78
78
|
: orgName;
|
|
79
79
|
const date = new Date(timestamp).toISOString().substring(0, 10);
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
// A negative day is a source glitch. A point there draws a dip below 0,
|
|
81
|
+
// so skip it and let the line join the days around it.
|
|
82
|
+
if (entry.processInstances >= 0) {
|
|
83
|
+
pi.push({ date, group, value: entry.processInstances });
|
|
84
|
+
}
|
|
85
|
+
if (entry.decisionInstances >= 0) {
|
|
86
|
+
di.push({ date, group, value: entry.decisionInstances });
|
|
87
|
+
}
|
|
82
88
|
if (timestamp > latestTimestamp) {
|
|
83
89
|
latestTimestamp = timestamp;
|
|
84
90
|
latestTaskUsers = 0;
|
|
@@ -1658,21 +1658,29 @@ export const C4ManagementApp = observer(({ orgId, embedded = false, environments
|
|
|
1658
1658
|
const group = typeof clusterId === 'string'
|
|
1659
1659
|
? (clusterIdToName.get(clusterId) ?? clusterId)
|
|
1660
1660
|
: orgName;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1661
|
+
// A negative day is a source glitch. Skip it so the chart does not
|
|
1662
|
+
// dip below 0.
|
|
1663
|
+
if (item.entry.processInstances >= 0) {
|
|
1664
|
+
pi.push({
|
|
1665
|
+
date: item.isoDate,
|
|
1666
|
+
group,
|
|
1667
|
+
value: item.entry.processInstances,
|
|
1668
|
+
});
|
|
1669
|
+
}
|
|
1670
|
+
if (item.entry.decisionInstances >= 0) {
|
|
1671
|
+
di.push({
|
|
1672
|
+
date: item.isoDate,
|
|
1673
|
+
group,
|
|
1674
|
+
value: item.entry.decisionInstances,
|
|
1675
|
+
});
|
|
1676
|
+
}
|
|
1677
|
+
if (item.entry.taskUsers >= 0) {
|
|
1678
|
+
tu.push({
|
|
1679
|
+
date: item.isoDate,
|
|
1680
|
+
group,
|
|
1681
|
+
value: item.entry.taskUsers,
|
|
1682
|
+
});
|
|
1683
|
+
}
|
|
1676
1684
|
}
|
|
1677
1685
|
const otherLabelFor = (otherClusterCount) => safeTranslate(t, 'orgmanagement:tabs.billing.usageTracking.usageHistory.charts.otherClusters', `Other (${otherClusterCount} cluster${otherClusterCount === 1 ? '' : 's'})`, { count: otherClusterCount });
|
|
1678
1686
|
// Cap each chart's series to the top-N clusters (+ an aggregated "Other"
|