@allurereport/plugin-api 3.0.0-beta.20 → 3.0.0-beta.22
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.
- package/dist/index.d.ts +0 -7
- package/dist/index.js +0 -7
- package/dist/plugin.d.ts +1 -0
- package/dist/store.d.ts +4 -1
- package/dist/store.js +1 -0
- package/package.json +2 -2
- package/dist/charts/accessors/coverageDiffTreeMapAccessor.d.ts +0 -17
- package/dist/charts/accessors/coverageDiffTreeMapAccessor.js +0 -181
- package/dist/charts/accessors/problemsDistributionHeatMap.d.ts +0 -2
- package/dist/charts/accessors/problemsDistributionHeatMap.js +0 -65
- package/dist/charts/accessors/severityTrendAccessor.d.ts +0 -3
- package/dist/charts/accessors/severityTrendAccessor.js +0 -21
- package/dist/charts/accessors/statusBySeverityBarAccessor.d.ts +0 -3
- package/dist/charts/accessors/statusBySeverityBarAccessor.js +0 -33
- package/dist/charts/accessors/statusChangeTrendBarAccessor.d.ts +0 -4
- package/dist/charts/accessors/statusChangeTrendBarAccessor.js +0 -92
- package/dist/charts/accessors/statusTrendAccessor.d.ts +0 -3
- package/dist/charts/accessors/statusTrendAccessor.js +0 -19
- package/dist/charts/accessors/statusTrendBarAccessor.d.ts +0 -5
- package/dist/charts/accessors/statusTrendBarAccessor.js +0 -63
- package/dist/charts/accessors/successRateDistributionTreeMapAccessor.d.ts +0 -14
- package/dist/charts/accessors/successRateDistributionTreeMapAccessor.js +0 -111
- package/dist/charts/accessors/utils/behavior.d.ts +0 -5
- package/dist/charts/accessors/utils/behavior.js +0 -4
- package/dist/charts/bar.d.ts +0 -3
- package/dist/charts/bar.js +0 -50
- package/dist/charts/comingSoon.d.ts +0 -2
- package/dist/charts/comingSoon.js +0 -7
- package/dist/charts/heatmap.d.ts +0 -3
- package/dist/charts/heatmap.js +0 -9
- package/dist/charts/line.d.ts +0 -8
- package/dist/charts/line.js +0 -140
- package/dist/charts/pie.d.ts +0 -6
- package/dist/charts/pie.js +0 -10
- package/dist/charts/treeMap.d.ts +0 -6
- package/dist/charts/treeMap.js +0 -88
- package/dist/charts.d.ts +0 -130
- package/dist/charts.js +0 -83
package/dist/charts.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
export const DEFAULT_CHART_HISTORY_LIMIT = 10;
|
|
2
|
-
export const limitHistoryDataPoints = (historyDataPoints, limit) => {
|
|
3
|
-
if (limit <= 0 || historyDataPoints.length === 0) {
|
|
4
|
-
return [];
|
|
5
|
-
}
|
|
6
|
-
const clampedLimit = Math.max(0, Math.floor(limit));
|
|
7
|
-
return historyDataPoints.slice(0, clampedLimit);
|
|
8
|
-
};
|
|
9
|
-
export const createEmptySeries = (items) => items.reduce((acc, item) => ({ ...acc, [item]: [] }), {});
|
|
10
|
-
export const createEmptyStats = (items) => items.reduce((acc, item) => ({ ...acc, [item]: 0 }), {});
|
|
11
|
-
export const normalizeStatistic = (statistic, itemType) => {
|
|
12
|
-
return itemType.reduce((acc, item) => {
|
|
13
|
-
acc[item] = statistic[item] ?? 0;
|
|
14
|
-
return acc;
|
|
15
|
-
}, {});
|
|
16
|
-
};
|
|
17
|
-
export const hasLabels = (test, labelHierarchy) => test.labels?.some((label) => {
|
|
18
|
-
const { name } = label;
|
|
19
|
-
return name && labelHierarchy.includes(name);
|
|
20
|
-
}) ?? false;
|
|
21
|
-
export const isChildrenLeavesOnly = (node) => {
|
|
22
|
-
return node.children ? node.children.every((child) => child.children === undefined) : false;
|
|
23
|
-
};
|
|
24
|
-
export const defaultChartsConfig = [
|
|
25
|
-
{
|
|
26
|
-
type: "pie",
|
|
27
|
-
title: "Current status",
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
type: "trend",
|
|
31
|
-
dataType: "status",
|
|
32
|
-
title: "Status dynamics",
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
type: "bar",
|
|
36
|
-
dataType: "statusBySeverity",
|
|
37
|
-
title: "Test result severities",
|
|
38
|
-
},
|
|
39
|
-
{
|
|
40
|
-
type: "bar",
|
|
41
|
-
dataType: "statusTrend",
|
|
42
|
-
title: "Status change dynamics",
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
type: "bar",
|
|
46
|
-
dataType: "statusChangeTrend",
|
|
47
|
-
title: "Test base growth dynamics",
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
type: "treemap",
|
|
51
|
-
dataType: "coverageDiff",
|
|
52
|
-
title: "Coverage diff map",
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
type: "treemap",
|
|
56
|
-
dataType: "successRateDistribution",
|
|
57
|
-
title: "Success rate disctribution",
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
type: "heatmap",
|
|
61
|
-
title: "Problems distribution by environment",
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: "bar",
|
|
65
|
-
title: "Stability rate disctribution",
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
type: "bar",
|
|
69
|
-
title: "Duration by layer histogram",
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
type: "bar",
|
|
73
|
-
title: "Performance dynamics",
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
type: "bar",
|
|
77
|
-
title: "FBSU age pyramid",
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
type: "funnel",
|
|
81
|
-
title: "Testing pyramid",
|
|
82
|
-
},
|
|
83
|
-
];
|