@allurereport/web-dashboard 3.0.0-beta.15 → 3.0.0-beta.16
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/multi/app-33844daf5ad7d412f29a.js +2 -0
- package/dist/multi/manifest.json +24 -24
- package/dist/multi/styles-4643751038bcdc01b7cd.css +7 -0
- package/dist/single/app-33e771d795875d688872.js +2 -0
- package/dist/single/manifest.json +1 -1
- package/package.json +14 -14
- package/src/components/Dashboard/index.tsx +3 -2
- package/src/stores/dashboard.ts +4 -13
- package/webpack.config.js +4 -4
- package/dist/multi/app-c035074b.js +0 -2
- package/dist/multi/styles-c035074b.css +0 -7
- package/dist/single/app-6589e136.js +0 -2
- /package/dist/multi/{173.app-c035074b.js → 173.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{174.app-c035074b.js → 174.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{252.app-c035074b.js → 252.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{282.app-c035074b.js → 282.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{29.app-c035074b.js → 29.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{416.app-c035074b.js → 416.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{527.app-c035074b.js → 527.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{600.app-c035074b.js → 600.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{605.app-c035074b.js → 605.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{638.app-c035074b.js → 638.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{672.app-c035074b.js → 672.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{686.app-c035074b.js → 686.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{725.app-c035074b.js → 725.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{741.app-c035074b.js → 741.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{755.app-c035074b.js → 755.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{894.app-c035074b.js → 894.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{943.app-c035074b.js → 943.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{980.app-c035074b.js → 980.app-33844daf5ad7d412f29a.js} +0 -0
- /package/dist/multi/{JetBrainsMono_vf-b9a9c326..woff → JetBrainsMono_vf.woff} +0 -0
- /package/dist/multi/{JetBrainsMono_vf-9e9649b6..woff2 → JetBrainsMono_vf.woff2} +0 -0
- /package/dist/multi/{app-c035074b.js.LICENSE.txt → app-33844daf5ad7d412f29a.js.LICENSE.txt} +0 -0
- /package/dist/multi/{pt-root-ui_vf-22fe60ca..woff → pt-root-ui_vf.woff} +0 -0
- /package/dist/multi/{pt-root-ui_vf-9d251e8b..woff2 → pt-root-ui_vf.woff2} +0 -0
- /package/dist/single/{app-6589e136.js.LICENSE.txt → app-33e771d795875d688872.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/web-dashboard",
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.16",
|
|
4
4
|
"description": "The static files for Allure Dashboard Report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -31,9 +31,9 @@
|
|
|
31
31
|
"IE 11"
|
|
32
32
|
],
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@allurereport/core-api": "3.0.0-beta.
|
|
35
|
-
"@allurereport/web-commons": "3.0.0-beta.
|
|
36
|
-
"@allurereport/web-components": "3.0.0-beta.
|
|
34
|
+
"@allurereport/core-api": "3.0.0-beta.16",
|
|
35
|
+
"@allurereport/web-commons": "3.0.0-beta.16",
|
|
36
|
+
"@allurereport/web-components": "3.0.0-beta.16",
|
|
37
37
|
"@preact/signals": "^1.3.0",
|
|
38
38
|
"clsx": "^2.1.1",
|
|
39
39
|
"i18next": "^24.0.2",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"reset.css": "^2.0.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@babel/core": "^7.
|
|
45
|
-
"@babel/plugin-transform-react-jsx": "^7.
|
|
46
|
-
"@babel/preset-env": "^7.
|
|
47
|
-
"@babel/preset-typescript": "^7.
|
|
44
|
+
"@babel/core": "^7.27.4",
|
|
45
|
+
"@babel/plugin-transform-react-jsx": "^7.27.1",
|
|
46
|
+
"@babel/preset-env": "^7.27.2",
|
|
47
|
+
"@babel/preset-typescript": "^7.27.1",
|
|
48
48
|
"@eslint/js": "^9.10.0",
|
|
49
49
|
"@floating-ui/dom": "^1.6.12",
|
|
50
50
|
"@preact/compat": "^18.3.1",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"@types/node": "^20.17.9",
|
|
57
57
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
58
58
|
"@typescript-eslint/parser": "^8.0.0",
|
|
59
|
-
"@vitest/runner": "^2.1.
|
|
60
|
-
"@vitest/snapshot": "^2.1.
|
|
59
|
+
"@vitest/runner": "^2.1.9",
|
|
60
|
+
"@vitest/snapshot": "^2.1.9",
|
|
61
61
|
"allure-vitest": "^3.0.9",
|
|
62
62
|
"autoprefixer": "^10.4.20",
|
|
63
63
|
"babel-loader": "^9.2.1",
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
"html-webpack-plugin": "^5.6.3",
|
|
82
82
|
"mini-css-extract-plugin": "^2.9.1",
|
|
83
83
|
"npm-run-all2": "^7.0.1",
|
|
84
|
-
"postcss": "^8.
|
|
84
|
+
"postcss": "^8.5.0",
|
|
85
85
|
"rimraf": "^6.0.1",
|
|
86
86
|
"sass": "^1.79.1",
|
|
87
87
|
"sass-loader": "^16.0.1",
|
|
@@ -89,10 +89,10 @@
|
|
|
89
89
|
"svg-sprite-loader": "^6.0.11",
|
|
90
90
|
"typescript": "^5.6.3",
|
|
91
91
|
"typescript-eslint": "^8.6.0",
|
|
92
|
-
"vitest": "^2.1.
|
|
93
|
-
"webpack": "^5.
|
|
92
|
+
"vitest": "^2.1.9",
|
|
93
|
+
"webpack": "^5.99.9",
|
|
94
94
|
"webpack-cli": "^5.1.4",
|
|
95
|
-
"webpack-dev-server": "^5.1
|
|
95
|
+
"webpack-dev-server": "^5.2.1",
|
|
96
96
|
"webpack-manifest-plugin": "^5.0.0"
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
2
|
-
import { capitalize } from "@allurereport/web-commons";
|
|
2
|
+
import { ChartType, capitalize } from "@allurereport/web-commons";
|
|
3
3
|
import {
|
|
4
4
|
Grid,
|
|
5
5
|
GridItem,
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
Widget,
|
|
11
11
|
} from "@allurereport/web-components";
|
|
12
12
|
import { useEffect } from "preact/hooks";
|
|
13
|
-
import { type ChartData,
|
|
13
|
+
import { type ChartData, dashboardStore, fetchDashboardData } from "@/stores/dashboard";
|
|
14
14
|
import { useI18n } from "@/stores/locale";
|
|
15
15
|
import * as styles from "./styles.scss";
|
|
16
16
|
|
|
@@ -26,6 +26,7 @@ const getChartWidgetByType = (
|
|
|
26
26
|
return (
|
|
27
27
|
<TrendChartWidget
|
|
28
28
|
title={title}
|
|
29
|
+
mode={chartData.mode}
|
|
29
30
|
items={chartData.items}
|
|
30
31
|
slices={chartData.slices}
|
|
31
32
|
min={chartData.min}
|
package/src/stores/dashboard.ts
CHANGED
|
@@ -1,21 +1,9 @@
|
|
|
1
1
|
import type { SeverityLevel, TestStatus } from "@allurereport/core-api";
|
|
2
2
|
import { severityLevels, statusesList } from "@allurereport/core-api";
|
|
3
|
-
import { fetchReportJsonData } from "@allurereport/web-commons";
|
|
3
|
+
import { ChartDataType, type ChartId, type ChartMode, ChartType, fetchReportJsonData } from "@allurereport/web-commons";
|
|
4
4
|
import { signal } from "@preact/signals";
|
|
5
5
|
import type { StoreSignalState } from "@/stores/types";
|
|
6
6
|
|
|
7
|
-
export enum ChartType {
|
|
8
|
-
Trend = "trend",
|
|
9
|
-
Pie = "pie",
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
enum ChartDataType {
|
|
13
|
-
Status = "status",
|
|
14
|
-
Severity = "severity",
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
type ChartId = string;
|
|
18
|
-
|
|
19
7
|
interface Point {
|
|
20
8
|
x: Date | string | number;
|
|
21
9
|
y: number;
|
|
@@ -30,6 +18,7 @@ interface Slice {
|
|
|
30
18
|
interface ResponseTrendChartData {
|
|
31
19
|
type: ChartType.Trend;
|
|
32
20
|
dataType: ChartDataType;
|
|
21
|
+
mode: ChartMode;
|
|
33
22
|
title?: string;
|
|
34
23
|
min: number;
|
|
35
24
|
max: number;
|
|
@@ -47,6 +36,7 @@ interface TrendChartItem {
|
|
|
47
36
|
export interface TrendChartData {
|
|
48
37
|
type: ChartType.Trend;
|
|
49
38
|
dataType: ChartDataType;
|
|
39
|
+
mode: ChartMode;
|
|
50
40
|
min: number;
|
|
51
41
|
max: number;
|
|
52
42
|
items: TrendChartItem[];
|
|
@@ -136,6 +126,7 @@ const createTrendChartData = <T extends TestStatus | SeverityLevel>(
|
|
|
136
126
|
return {
|
|
137
127
|
type: chart.type,
|
|
138
128
|
dataType: chart.dataType,
|
|
129
|
+
mode: chart.mode,
|
|
139
130
|
title: chart.title,
|
|
140
131
|
items,
|
|
141
132
|
slices: Object.values(chart.slices),
|
package/webpack.config.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";
|
|
1
2
|
import HtmlWebpackPlugin from "html-webpack-plugin";
|
|
2
3
|
import MiniCssExtractPlugin from "mini-css-extract-plugin";
|
|
3
4
|
import { dirname, join } from "node:path";
|
|
@@ -6,7 +7,6 @@ import { fileURLToPath } from "node:url";
|
|
|
6
7
|
import SpriteLoaderPlugin from "svg-sprite-loader/plugin.js";
|
|
7
8
|
import webpack from "webpack";
|
|
8
9
|
import { WebpackManifestPlugin } from "webpack-manifest-plugin";
|
|
9
|
-
import ForkTsCheckerPlugin from "fork-ts-checker-webpack-plugin";
|
|
10
10
|
|
|
11
11
|
const { SINGLE_FILE_MODE } = env;
|
|
12
12
|
const baseDir = dirname(fileURLToPath(import.meta.url));
|
|
@@ -17,8 +17,8 @@ export default (env, argv) => {
|
|
|
17
17
|
entry: "./src/index.tsx",
|
|
18
18
|
output: {
|
|
19
19
|
path: join(baseDir, SINGLE_FILE_MODE ? "dist/single" : "dist/multi"),
|
|
20
|
-
filename: devMode ? "app.js" : "app-[
|
|
21
|
-
assetModuleFilename:
|
|
20
|
+
filename: devMode ? "app.js" : "app-[fullhash].js",
|
|
21
|
+
assetModuleFilename: "[name][ext]",
|
|
22
22
|
},
|
|
23
23
|
devtool: devMode ? "inline-source-map" : false,
|
|
24
24
|
module: {
|
|
@@ -74,7 +74,7 @@ export default (env, argv) => {
|
|
|
74
74
|
DEVELOPMENT: devMode,
|
|
75
75
|
}),
|
|
76
76
|
new MiniCssExtractPlugin({
|
|
77
|
-
filename: devMode ? "styles.css" : "styles-[
|
|
77
|
+
filename: devMode ? "styles.css" : "styles-[contenthash].css",
|
|
78
78
|
}),
|
|
79
79
|
new SpriteLoaderPlugin(),
|
|
80
80
|
new WebpackManifestPlugin({
|