@allurereport/web-awesome 3.8.2 → 3.10.0
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/README.md +112 -0
- package/allurerc-dev.mjs +10 -0
- package/dist/multi/121.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/173.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/174.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/252.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/282.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/29.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/310.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/416.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/507.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/527.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/600.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/605.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/638.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/672.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/686.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/725.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/741.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/749.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/755.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/779.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/894.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/943.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/980.app-b18cce138691927e8759.js +1 -0
- package/dist/multi/app-b18cce138691927e8759.js +2 -0
- package/dist/multi/manifest.json +26 -23
- package/dist/multi/styles-212da6c68fa0beb4c6c5.css +1 -0
- package/dist/multi/styles-5c882b14b6f3112e40c4.css +1 -0
- package/dist/multi/styles-a4f65de86208f79dd2be.css +58 -0
- package/dist/single/app-733f473da7b51f98876d.js +2 -0
- package/dist/single/manifest.json +1 -1
- package/package.json +19 -14
- package/src/assets/scss/_common.scss +2 -2
- package/src/assets/scss/index.scss +8 -6
- package/src/components/BaseLayout/index.tsx +14 -2
- package/src/components/BaseLayout/styles.scss +5 -5
- package/src/components/Categories/CategoryHeaderItem/styles.scss +2 -2
- package/src/components/Categories/CategoryTreeItem/styles.scss +2 -2
- package/src/components/Categories/GroupTreeItem/styles.scss +4 -5
- package/src/components/Categories/HistoryTreeItem/styles.scss +2 -2
- package/src/components/Categories/LabelTreeItem/styles.scss +2 -2
- package/src/components/Categories/MessageTreeItem/index.tsx +1 -1
- package/src/components/Categories/MessageTreeItem/styles.scss +18 -18
- package/src/components/Categories/sticky.ts +1 -1
- package/src/components/Footer/FooterVersion.tsx +5 -10
- package/src/components/Footer/index.tsx +7 -1
- package/src/components/Footer/styles.scss +8 -2
- package/src/components/Header/CiInfo/index.tsx +17 -13
- package/src/components/Header/CiInfo/styles.scss +1 -1
- package/src/components/Header/styles.scss +2 -2
- package/src/components/HeaderControls/index.tsx +1 -3
- package/src/components/HotkeysProvider/index.tsx +556 -0
- package/src/components/KeyboardShortcuts/index.tsx +73 -0
- package/src/components/KeyboardShortcuts/shortcutsConfig.ts +91 -0
- package/src/components/KeyboardShortcuts/styles.scss +69 -0
- package/src/components/MainReport/index.tsx +89 -72
- package/src/components/MainReport/styles.scss +20 -5
- package/src/components/Metadata/index.tsx +27 -6
- package/src/components/Metadata/styles.scss +21 -9
- package/src/components/MetadataButton/index.tsx +2 -0
- package/src/components/MetadataButton/styles.scss +1 -1
- package/src/components/NavTabs/styles.scss +8 -8
- package/src/components/ReportBody/styles.scss +3 -4
- package/src/components/ReportCategories/styles.scss +1 -1
- package/src/components/ReportFilters/styles.scss +1 -1
- package/src/components/ReportGlobalAttachments/styles.scss +1 -1
- package/src/components/ReportGlobalErrors/styles.scss +1 -1
- package/src/components/ReportHeader/index.tsx +25 -13
- package/src/components/ReportHeader/styles.scss +2 -2
- package/src/components/ReportMetadata/index.tsx +44 -15
- package/src/components/ReportMetadata/styles.scss +6 -6
- package/src/components/ReportQualityGateResults/styles.scss +2 -2
- package/src/components/ReportSearch/index.tsx +1 -5
- package/src/components/ReportTabs/styles.scss +9 -9
- package/src/components/SectionSwitcher/index.tsx +87 -10
- package/src/components/SideBySide/index.tsx +20 -2
- package/src/components/SideBySide/styles.scss +9 -1
- package/src/components/SplitLayout/index.tsx +11 -2
- package/src/components/SplitLayout/styles.scss +23 -4
- package/src/components/TestResult/TestStepsEmpty/styles.scss +1 -1
- package/src/components/TestResult/TrDescription/styles.scss +1 -1
- package/src/components/TestResult/TrDropdown/index.tsx +2 -2
- package/src/components/TestResult/TrDropdown/styles.scss +1 -1
- package/src/components/TestResult/TrEmpty/styles.scss +1 -1
- package/src/components/TestResult/TrEnvironmentItem/styles.scss +4 -4
- package/src/components/TestResult/TrError/index.tsx +32 -7
- package/src/components/TestResult/TrError/styles.scss +23 -23
- package/src/components/TestResult/TrHeader/styles.scss +2 -2
- package/src/components/TestResult/TrHistory/styles.scss +6 -6
- package/src/components/TestResult/TrInfo/styles.scss +8 -8
- package/src/components/TestResult/TrLinks/index.tsx +2 -2
- package/src/components/TestResult/TrLinks/styles.scss +2 -2
- package/src/components/TestResult/TrMetadata/index.tsx +1 -1
- package/src/components/TestResult/TrMetadata/styles.scss +1 -1
- package/src/components/TestResult/TrNavigation/index.tsx +1 -1
- package/src/components/TestResult/TrNavigation/styles.scss +2 -2
- package/src/components/TestResult/TrOverview.tsx +2 -0
- package/src/components/TestResult/TrParameters/index.tsx +1 -1
- package/src/components/TestResult/TrParameters/styles.scss +1 -1
- package/src/components/TestResult/TrPrevStatuses/styles.scss +8 -8
- package/src/components/TestResult/TrPwTraces/styles.scss +1 -1
- package/src/components/TestResult/TrRetriesView/TrRetriesItem.tsx +27 -1
- package/src/components/TestResult/TrRetriesView/styles.scss +20 -10
- package/src/components/TestResult/TrSetup/index.tsx +10 -4
- package/src/components/TestResult/TrSeverity/styles.scss +7 -7
- package/src/components/TestResult/TrStatus/styles.scss +2 -35
- package/src/components/TestResult/TrSteps/TrAttachment.tsx +79 -43
- package/src/components/TestResult/TrSteps/TrAttachmentInfo.tsx +44 -17
- package/src/components/TestResult/TrSteps/TrBodyItems.tsx +5 -2
- package/src/components/TestResult/TrSteps/TrErrorStep.tsx +3 -0
- package/src/components/TestResult/TrSteps/TrStep.tsx +15 -6
- package/src/components/TestResult/TrSteps/TrStepHeader.tsx +8 -5
- package/src/components/TestResult/TrSteps/index.tsx +7 -5
- package/src/components/TestResult/TrSteps/stepTreeExpansion.ts +27 -9
- package/src/components/TestResult/TrSteps/styles.scss +80 -20
- package/src/components/TestResult/TrTeardown/index.tsx +10 -4
- package/src/components/TestResult/bodyItems.ts +1 -1
- package/src/components/TestResult/index.tsx +8 -2
- package/src/components/TestResult/styles.scss +10 -1
- package/src/components/TestResult/trOverviewFocus.scss +4 -0
- package/src/components/Timeline/styles.scss +6 -6
- package/src/components/Tree/index.tsx +79 -5
- package/src/components/Tree/styles.scss +55 -35
- package/src/hooks/useTestResultOverviewFocusScroll.ts +23 -0
- package/src/index.html +30 -33
- package/src/index.tsx +12 -6
- package/src/locales/ar.json +62 -1
- package/src/locales/az.json +62 -1
- package/src/locales/de.json +62 -1
- package/src/locales/en.json +62 -1
- package/src/locales/es.json +62 -1
- package/src/locales/fr.json +62 -1
- package/src/locales/he.json +62 -1
- package/src/locales/hy.json +62 -1
- package/src/locales/it.json +62 -1
- package/src/locales/ja.json +62 -1
- package/src/locales/ka.json +62 -1
- package/src/locales/kr.json +62 -1
- package/src/locales/nl.json +62 -1
- package/src/locales/pl.json +62 -1
- package/src/locales/pt.json +62 -1
- package/src/locales/ru.json +62 -1
- package/src/locales/sv.json +62 -1
- package/src/locales/tr.json +62 -1
- package/src/locales/uk.json +62 -1
- package/src/locales/zh-TW.json +62 -1
- package/src/locales/zh.json +62 -1
- package/src/stores/keyboard.ts +371 -0
- package/src/stores/keyboardActions.ts +769 -0
- package/src/stores/locale.ts +5 -2
- package/src/stores/reportEnvSections.ts +6 -0
- package/src/stores/reportRootTabs.ts +95 -0
- package/src/stores/search.ts +147 -0
- package/src/stores/testResultOverviewNav.ts +119 -0
- package/src/stores/testResultTabs.ts +62 -0
- package/src/stores/timeline.ts +1 -1
- package/src/stores/tree.ts +42 -4
- package/src/stores/treeFilters/store.ts +3 -36
- package/src/stores/treeSort.ts +7 -1
- package/src/styles/_pane-active.scss +8 -0
- package/src/styles.scss +1 -1
- package/src/utils/atSeparator.ts +4 -0
- package/src/utils/flattenTestResultOverview.ts +182 -0
- package/src/utils/time.ts +2 -1
- package/src/utils/trOverviewFocus.ts +18 -0
- package/src/utils/treeFilters.ts +15 -4
- package/test/components/EnvironmentPicker.test.tsx +21 -3
- package/test/components/Footer.test.tsx +26 -0
- package/test/components/Header/CiInfo.test.tsx +56 -0
- package/test/components/Header.test.tsx +8 -0
- package/test/components/HeaderControls.test.tsx +28 -0
- package/test/components/ReportGlobals.test.tsx +9 -1
- package/test/components/ReportHeader.test.tsx +77 -0
- package/test/components/ReportMetadata.test.tsx +131 -0
- package/test/components/TestResult/PwTraceButton.test.tsx +8 -0
- package/test/components/TestResult/TrErrorStep.test.tsx +8 -0
- package/test/components/TestResult/TrOverview.test.tsx +30 -10
- package/test/components/TestResult/TrRetriesItem.test.tsx +163 -0
- package/test/components/TestResult/TrSteps.test.tsx +108 -0
- package/test/components/TestResult/bodyItems.test.ts +9 -1
- package/test/components/TestResult/openPwTraceInNewTab.test.ts +8 -0
- package/test/components/TestResult/stepTreeExpansion.test.ts +10 -2
- package/test/components/Timeline.test.tsx +15 -7
- package/test/stores/keyboard/keyboardActions.test.ts +615 -0
- package/test/stores/search.test.ts +143 -0
- package/test/stores/treeFilters/actions.test.ts +8 -0
- package/test/stores/treeSort.test.ts +58 -0
- package/test/utils/flattenTestResultOverview.test.ts +57 -0
- package/test/utils/ownerAddress.test.ts +9 -1
- package/test/utils/time.test.ts +52 -0
- package/test/utils/treeFilters.test.ts +113 -1
- package/types.d.ts +39 -0
- package/webpack.config.js +12 -7
- package/CONTRIBUTING.md +0 -34
- package/dist/multi/173.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/174.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/252.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/282.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/29.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/310.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/416.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/507.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/527.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/600.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/605.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/638.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/672.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/686.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/725.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/741.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/749.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/755.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/894.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/943.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/980.app-f008fb8342025f2b1ace.js +0 -1
- package/dist/multi/app-f008fb8342025f2b1ace.js +0 -2
- package/dist/multi/styles-9f7a23a0c8b79fa76981.css +0 -58
- package/dist/single/app-07332238da9897064301.js +0 -2
- package/src/assets/scss/day.scss +0 -53
- package/src/assets/scss/fonts.scss +0 -3
- package/src/assets/scss/night.scss +0 -63
- package/src/assets/scss/palette.scss +0 -393
- package/src/assets/scss/theme.scss +0 -330
- package/src/assets/scss/vars.scss +0 -11
- /package/dist/multi/{app-f008fb8342025f2b1ace.js.LICENSE.txt → app-b18cce138691927e8759.js.LICENSE.txt} +0 -0
- /package/dist/single/{app-07332238da9897064301.js.LICENSE.txt → app-733f473da7b51f98876d.js.LICENSE.txt} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@allurereport/web-awesome",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.0",
|
|
4
4
|
"description": "The static files for Allure Awesome Report",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"allure",
|
|
@@ -15,7 +15,10 @@
|
|
|
15
15
|
"types": "./types.d.ts",
|
|
16
16
|
"scripts": {
|
|
17
17
|
"clean": "rimraf dist",
|
|
18
|
-
"dev": "
|
|
18
|
+
"dev": "run-s dev:demo dev:copy dev:serve",
|
|
19
|
+
"dev:demo": "rimraf out/demo && yarn run -T allure generate ${ALLURE_RESULTS_DIR:-../sandbox/allure-results} --config=./allurerc-dev.mjs --output=./out/demo",
|
|
20
|
+
"dev:copy": "rimraf out/dev/data out/dev/widgets && mkdir -p out/dev && cp -R out/demo/data out/dev/data && cp -R out/demo/widgets out/dev/widgets",
|
|
21
|
+
"dev:serve": "webpack serve --mode development",
|
|
19
22
|
"build": "run-s clean 'build:prod:*'",
|
|
20
23
|
"build:dev": "run-s clean 'build:dev:*'",
|
|
21
24
|
"build:prod:single": "SINGLE_FILE_MODE=1 webpack --mode production",
|
|
@@ -27,16 +30,17 @@
|
|
|
27
30
|
"lint:fix": "oxlint --import-plugin --fix src test features stories"
|
|
28
31
|
},
|
|
29
32
|
"dependencies": {
|
|
30
|
-
"@allurereport/charts-api": "3.
|
|
31
|
-
"@allurereport/core-api": "3.
|
|
32
|
-
"@allurereport/plugin-api": "3.
|
|
33
|
-
"@allurereport/web-commons": "3.
|
|
34
|
-
"@allurereport/web-components": "3.
|
|
33
|
+
"@allurereport/charts-api": "3.10.0",
|
|
34
|
+
"@allurereport/core-api": "3.10.0",
|
|
35
|
+
"@allurereport/plugin-api": "3.10.0",
|
|
36
|
+
"@allurereport/web-commons": "3.10.0",
|
|
37
|
+
"@allurereport/web-components": "3.10.0",
|
|
35
38
|
"@preact/signals": "^2.6.1",
|
|
36
39
|
"clsx": "^2.1.1",
|
|
37
40
|
"d3-shape": "^3.2.0",
|
|
38
41
|
"i18next": "^24.0.2",
|
|
39
42
|
"md5": "^2.3.0",
|
|
43
|
+
"minisearch": "^7.2.0",
|
|
40
44
|
"preact": "^10.28.2",
|
|
41
45
|
"prismjs": "^1.30.0"
|
|
42
46
|
},
|
|
@@ -54,11 +58,12 @@
|
|
|
54
58
|
"@types/babel__core": "^7.20.5",
|
|
55
59
|
"@types/d3-shape": "^3.1.6",
|
|
56
60
|
"@types/md5": "^2.3.5",
|
|
57
|
-
"@types/node": "^20
|
|
61
|
+
"@types/node": "^20",
|
|
58
62
|
"@types/prismjs": "^1.26.5",
|
|
59
63
|
"@vitest/runner": "^3.2.4",
|
|
60
64
|
"@vitest/snapshot": "^3.2.4",
|
|
61
|
-
"allure-
|
|
65
|
+
"allure-js-commons": "^3",
|
|
66
|
+
"allure-vitest": "^3",
|
|
62
67
|
"autoprefixer": "^10.4.20",
|
|
63
68
|
"babel-loader": "^9.2.1",
|
|
64
69
|
"babel-plugin-prismjs": "^2.1.0",
|
|
@@ -71,20 +76,20 @@
|
|
|
71
76
|
"jsdom": "^26.1.0",
|
|
72
77
|
"mini-css-extract-plugin": "^2.9.1",
|
|
73
78
|
"npm-run-all2": "^7.0.1",
|
|
74
|
-
"postcss": "^8.5.
|
|
75
|
-
"rimraf": "^6
|
|
79
|
+
"postcss": "^8.5.10",
|
|
80
|
+
"rimraf": "^6",
|
|
76
81
|
"sass": "^1.79.1",
|
|
77
82
|
"sass-loader": "^16.0.1",
|
|
78
83
|
"split.js": "^1.6.5",
|
|
79
84
|
"style-loader": "^4.0.0",
|
|
80
85
|
"svg-sprite-loader": "^6.0.11",
|
|
81
86
|
"terser-webpack-plugin": "^5.3.14",
|
|
82
|
-
"typescript": "^5
|
|
87
|
+
"typescript": "^5",
|
|
83
88
|
"vite": "^8.0.9",
|
|
84
|
-
"vitest": "^
|
|
89
|
+
"vitest": "^4.1.0",
|
|
85
90
|
"webpack": "^5.99.9",
|
|
86
91
|
"webpack-cli": "^5.1.4",
|
|
87
|
-
"webpack-dev-server": "^5.2.
|
|
92
|
+
"webpack-dev-server": "^5.2.4",
|
|
88
93
|
"webpack-manifest-plugin": "^5.0.0"
|
|
89
94
|
},
|
|
90
95
|
"browserslist": [
|
|
@@ -136,8 +136,8 @@ table {
|
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
body {
|
|
139
|
-
color: var(--
|
|
140
|
-
background: var(--bg-
|
|
139
|
+
color: var(--color-text-primary);
|
|
140
|
+
background: var(--color-bg-canvas);
|
|
141
141
|
font-family: var(--font-family);
|
|
142
142
|
-webkit-text-size-adjust: 100%;
|
|
143
143
|
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
@import "
|
|
2
|
-
@import "
|
|
3
|
-
@import "
|
|
4
|
-
@import "
|
|
5
|
-
@import "
|
|
6
|
-
@import "
|
|
1
|
+
@import "../../../../web-components/src/assets/scss/fonts.scss";
|
|
2
|
+
@import "../../../../web-components/src/assets/scss/typography.scss";
|
|
3
|
+
@import "../../../../web-components/src/assets/scss/palette.scss";
|
|
4
|
+
@import "../../../../web-components/src/assets/scss/semantic.scss";
|
|
5
|
+
@import "../../../../web-components/src/assets/scss/spacing.scss";
|
|
6
|
+
@import "../../../../web-components/src/assets/scss/radius.scss";
|
|
7
|
+
@import "../../../../web-components/src/assets/scss/effects.scss";
|
|
8
|
+
@import "../../../../web-components/src/assets/scss/motion.scss";
|
|
7
9
|
@import "common.scss";
|
|
@@ -2,6 +2,7 @@ import { Loadable, PageLoader } from "@allurereport/web-components";
|
|
|
2
2
|
|
|
3
3
|
import MainReport from "@/components/MainReport";
|
|
4
4
|
import TestResult from "@/components/TestResult";
|
|
5
|
+
import { focusTestResultPane, focusTreePane } from "@/stores/keyboard";
|
|
5
6
|
import { rootTabRoute, testResultRoute } from "@/stores/router";
|
|
6
7
|
import { testResultStore } from "@/stores/testResults";
|
|
7
8
|
import { treeStore } from "@/stores/tree";
|
|
@@ -20,7 +21,13 @@ export const BaseLayout = () => {
|
|
|
20
21
|
|
|
21
22
|
if (matches) {
|
|
22
23
|
return (
|
|
23
|
-
<div
|
|
24
|
+
<div
|
|
25
|
+
className={styles.layout}
|
|
26
|
+
data-testid="base-layout"
|
|
27
|
+
data-tree-scroll-container
|
|
28
|
+
data-tr-scroll-container
|
|
29
|
+
onMouseDown={() => focusTestResultPane()}
|
|
30
|
+
>
|
|
24
31
|
<Loadable
|
|
25
32
|
source={testResultStore}
|
|
26
33
|
renderLoader={() => <PageLoader />}
|
|
@@ -38,7 +45,12 @@ export const BaseLayout = () => {
|
|
|
38
45
|
}
|
|
39
46
|
|
|
40
47
|
return (
|
|
41
|
-
<div
|
|
48
|
+
<div
|
|
49
|
+
className={styles.layout}
|
|
50
|
+
data-testid="base-layout"
|
|
51
|
+
data-tree-scroll-container
|
|
52
|
+
onMouseDown={() => focusTreePane()}
|
|
53
|
+
>
|
|
42
54
|
<div className={styles.wrapper}>
|
|
43
55
|
<Loadable source={treeStore} renderLoader={() => <PageLoader />} renderData={() => <MainReport />} />
|
|
44
56
|
</div>
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
.layout {
|
|
2
2
|
margin: auto;
|
|
3
3
|
padding: 0 32px;
|
|
4
|
-
background: var(--bg-
|
|
5
|
-
color: var(--
|
|
4
|
+
background: var(--color-bg-canvas);
|
|
5
|
+
color: var(--color-text-primary);
|
|
6
6
|
font-size: 14px;
|
|
7
7
|
height: 100%;
|
|
8
8
|
overflow: auto;
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
|
|
19
19
|
.content {
|
|
20
20
|
box-shadow: var(--shadow-small);
|
|
21
|
-
background: var(--bg-
|
|
21
|
+
background: var(--color-bg-primary);
|
|
22
22
|
border-radius: 12px;
|
|
23
23
|
width: 100%;
|
|
24
24
|
}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
.title {
|
|
38
38
|
font-size: 14px;
|
|
39
39
|
line-height: 1.25;
|
|
40
|
-
color: var(--
|
|
40
|
+
color: var(--color-text-primary);
|
|
41
41
|
margin-bottom: 8px;
|
|
42
42
|
}
|
|
43
43
|
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
display: flex;
|
|
54
54
|
justify-content: space-between;
|
|
55
55
|
align-items: center;
|
|
56
|
-
padding: 8px 24px;
|
|
56
|
+
padding: 8px 60px 8px 24px;
|
|
57
57
|
width: 100%;
|
|
58
58
|
}
|
|
59
59
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
font-size: 24px;
|
|
3
3
|
margin-bottom: 16px;
|
|
4
4
|
&:not(:first-child) {
|
|
5
|
-
border-top: 1px solid var(--
|
|
5
|
+
border-top: 1px solid var(--color-border-subtle);
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
8
|
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
.tree-item-category-name {
|
|
25
|
-
color: var(--
|
|
25
|
+
color: var(--color-text-primary);
|
|
26
26
|
flex: 1 1 auto;
|
|
27
27
|
min-width: 0;
|
|
28
28
|
overflow: hidden;
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
bottom: 0;
|
|
10
10
|
left: 12px;
|
|
11
11
|
width: 1px;
|
|
12
|
-
background: var(--
|
|
12
|
+
background: var(--color-border-subtle);
|
|
13
13
|
opacity: 0;
|
|
14
14
|
transition: opacity 200ms;
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.tree-item {
|
|
19
|
-
border-top: 1px solid var(--
|
|
19
|
+
border-top: 1px solid var(--color-border-subtle);
|
|
20
20
|
// padding-left: 24px;
|
|
21
21
|
|
|
22
22
|
}
|
|
@@ -30,18 +30,17 @@
|
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
.tree-item-group[data-group-key="flaky"] :global(.styles_tree-section-title) {
|
|
33
|
-
color: var(--
|
|
33
|
+
color: var(--color-intent-warning-text);
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
.tree-item-group[data-group-key="transition"] :global(.styles_tree-section-title) {
|
|
37
|
-
color: var(--
|
|
37
|
+
color: var(--color-intent-primary-text);
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
.tree-item-group[data-group-key="owner"] :global(.styles_tree-section-title) {
|
|
41
|
-
color: var(--
|
|
41
|
+
color: var(--color-intent-info-text);
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
.tree-item-group[data-group-key="layer"] :global(.styles_tree-section-title) {
|
|
45
|
-
color: var(--
|
|
45
|
+
color: var(--color-intent-success-text);
|
|
46
46
|
}
|
|
47
|
-
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
.tree-item-history {
|
|
6
6
|
padding: 0;
|
|
7
|
-
background: var(--bg-
|
|
7
|
+
background: var(--color-bg-primary);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
.tree-item-history :global(.styles_tree-section-title) {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.tree-item-history-name {
|
|
35
|
-
color: var(--
|
|
35
|
+
color: var(--color-text-primary);
|
|
36
36
|
flex: 1 1 auto;
|
|
37
37
|
min-width: 0;
|
|
38
38
|
overflow: hidden;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
.tree-item-label {
|
|
2
2
|
padding: 0;
|
|
3
|
-
border-top: 1px solid var(--
|
|
3
|
+
border-top: 1px solid var(--color-border-subtle);
|
|
4
4
|
}
|
|
5
5
|
|
|
6
6
|
.tree-item-label-status {
|
|
@@ -73,7 +73,7 @@
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
.tree-item-label-bubble {
|
|
76
|
-
background: var(--
|
|
76
|
+
background: var(--color-border-default);
|
|
77
77
|
border-radius: 4px;
|
|
78
78
|
padding: 2px 4px;
|
|
79
79
|
line-height: 16px;
|
|
@@ -57,7 +57,7 @@ export const MessageTreeItem: FC<MessageTreeItemProps> = ({
|
|
|
57
57
|
}) => {
|
|
58
58
|
const { t } = useI18n("ui");
|
|
59
59
|
const status = statusFromStatistic(node.statistic);
|
|
60
|
-
const sanitizedMessage = ansiToHTML(node.name ?? "", { fg: "var(--
|
|
60
|
+
const sanitizedMessage = ansiToHTML(node.name ?? "", { fg: "var(--color-text-primary)", colors: {} });
|
|
61
61
|
const stickyStyle = createCategoriesStickyStyle(depth);
|
|
62
62
|
const hasLongMessage = (node.name ?? "").length > 80;
|
|
63
63
|
const [isMessageExpanded, setIsMessageExpanded] = useState(false);
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
gap: 8px;
|
|
12
12
|
align-items: center;
|
|
13
13
|
flex: 1 1 auto;
|
|
14
|
-
background: var(--bg-
|
|
14
|
+
background: var(--color-bg-primary);
|
|
15
15
|
min-height: var(--tree-section-min-height, auto);
|
|
16
16
|
padding: 4px 0;
|
|
17
17
|
position: var(--tree-section-position, relative);
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
width: 100%;
|
|
25
25
|
padding: 4px 8px 4px 16px;
|
|
26
26
|
border-radius: 4px;
|
|
27
|
-
background-color: var(--bg-
|
|
27
|
+
background-color: var(--color-status-failed-bg-subtle);
|
|
28
28
|
position: relative;
|
|
29
29
|
overflow: hidden;
|
|
30
30
|
text-overflow: ellipsis;
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
position: absolute;
|
|
40
40
|
left: 0;
|
|
41
41
|
top: 0;
|
|
42
|
-
background-color: var(--
|
|
42
|
+
background-color: var(--color-status-failed-chart);
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
|
|
@@ -123,56 +123,56 @@
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
.message-status-failed {
|
|
126
|
-
background-color: var(--bg-
|
|
126
|
+
background-color: var(--color-status-failed-bg-subtle);
|
|
127
127
|
&:before {
|
|
128
|
-
background-color: var(--
|
|
128
|
+
background-color: var(--color-status-failed-chart);
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
.message-status-broken {
|
|
133
|
-
background-color: var(--bg-
|
|
133
|
+
background-color: var(--color-status-broken-bg-subtle);
|
|
134
134
|
&:before {
|
|
135
|
-
background-color: var(--
|
|
135
|
+
background-color: var(--color-status-broken-chart);
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
|
|
139
139
|
.message-status-skipped {
|
|
140
|
-
background-color: var(--bg-
|
|
140
|
+
background-color: var(--color-status-skipped-bg-subtle);
|
|
141
141
|
&:before {
|
|
142
|
-
background-color: var(--
|
|
142
|
+
background-color: var(--color-status-skipped-chart);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
.message-status-unknown {
|
|
147
|
-
background-color: var(--bg-
|
|
147
|
+
background-color: var(--color-status-unknown-bg-subtle);
|
|
148
148
|
&:before {
|
|
149
|
-
background-color: var(--
|
|
149
|
+
background-color: var(--color-status-unknown-chart);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
153
|
.message-status-passed {
|
|
154
|
-
background-color: var(--bg-
|
|
154
|
+
background-color: var(--color-status-passed-bg-subtle);
|
|
155
155
|
&:before {
|
|
156
|
-
background-color: var(--
|
|
156
|
+
background-color: var(--color-status-passed-chart);
|
|
157
157
|
}
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
.message-color-failed {
|
|
161
|
-
color: var(--
|
|
161
|
+
color: var(--color-status-failed-text);
|
|
162
162
|
}
|
|
163
163
|
|
|
164
164
|
.message-color-broken {
|
|
165
|
-
color: var(--
|
|
165
|
+
color: var(--color-status-broken-text);
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
.message-color-skipped {
|
|
169
|
-
color: var(--
|
|
169
|
+
color: var(--color-status-skipped-text);
|
|
170
170
|
}
|
|
171
171
|
|
|
172
172
|
.message-color-passed {
|
|
173
|
-
color: var(--
|
|
173
|
+
color: var(--color-status-passed-text);
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
.message-color-unknown {
|
|
177
|
-
color: var(--
|
|
177
|
+
color: var(--color-status-unknown-text);
|
|
178
178
|
}
|
|
@@ -6,7 +6,7 @@ export const createCategoriesStickyStyle = (depth: number, overrides: StickyOver
|
|
|
6
6
|
"--tree-section-position": "sticky",
|
|
7
7
|
"--tree-section-top": `calc(${depth} * var(--categories-sticky-step))`,
|
|
8
8
|
"--tree-section-z": `${100 - depth}`,
|
|
9
|
-
"--tree-section-bg": "var(--bg-
|
|
9
|
+
"--tree-section-bg": "var(--color-bg-primary)",
|
|
10
10
|
"--tree-section-min-height": "var(--categories-sticky-step)",
|
|
11
11
|
...overrides,
|
|
12
12
|
}) as Record<string, string>;
|
|
@@ -3,11 +3,13 @@ import { Text } from "@allurereport/web-components";
|
|
|
3
3
|
import { useState } from "preact/hooks";
|
|
4
4
|
import type { AwesomeReportOptions } from "types";
|
|
5
5
|
|
|
6
|
-
import {
|
|
6
|
+
import { useI18n } from "@/stores";
|
|
7
|
+
import { timestampToDate } from "@/utils/time";
|
|
7
8
|
|
|
8
9
|
import * as styles from "./styles.scss";
|
|
9
10
|
|
|
10
11
|
export const FooterVersion = () => {
|
|
12
|
+
const { t } = useI18n("ui");
|
|
11
13
|
const [createdAt] = useState(() => {
|
|
12
14
|
const reportOptions = getReportOptions<AwesomeReportOptions>();
|
|
13
15
|
if (reportOptions?.createdAt) {
|
|
@@ -27,18 +29,11 @@ export const FooterVersion = () => {
|
|
|
27
29
|
return undefined;
|
|
28
30
|
});
|
|
29
31
|
|
|
30
|
-
const formattedCreatedAt =
|
|
31
|
-
month: "numeric",
|
|
32
|
-
day: "numeric",
|
|
33
|
-
year: "numeric",
|
|
34
|
-
hour: "numeric",
|
|
35
|
-
minute: "numeric",
|
|
36
|
-
second: "numeric",
|
|
37
|
-
});
|
|
32
|
+
const formattedCreatedAt = timestampToDate(createdAt as number);
|
|
38
33
|
|
|
39
34
|
return (
|
|
40
35
|
<Text type="paragraph" size="m" className={styles.version}>
|
|
41
|
-
{formattedCreatedAt}
|
|
36
|
+
{t("generated")} {formattedCreatedAt}
|
|
42
37
|
{currentVersion && <span> Ver: {currentVersion}</span>}
|
|
43
38
|
</Text>
|
|
44
39
|
);
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { LanguagePicker } from "@allurereport/web-components";
|
|
1
2
|
import type { ClassValue } from "clsx";
|
|
2
3
|
import { clsx } from "clsx";
|
|
3
4
|
|
|
4
5
|
import { FooterLogo } from "@/components/Footer/FooterLogo";
|
|
5
6
|
import { FooterVersion } from "@/components/Footer/FooterVersion";
|
|
7
|
+
import { currentLocale, setLocale } from "@/stores/locale";
|
|
6
8
|
|
|
7
9
|
import * as styles from "@/components/BaseLayout/styles.scss";
|
|
10
|
+
import * as footerStyles from "@/components/Footer/styles.scss";
|
|
8
11
|
|
|
9
12
|
interface FooterProps {
|
|
10
13
|
className?: ClassValue;
|
|
@@ -13,7 +16,10 @@ export const Footer = ({ className }: FooterProps) => {
|
|
|
13
16
|
return (
|
|
14
17
|
<div className={clsx(styles.below, className)}>
|
|
15
18
|
<FooterLogo />
|
|
16
|
-
<
|
|
19
|
+
<div className={footerStyles["footer-controls"]}>
|
|
20
|
+
<LanguagePicker locale={currentLocale.value} setLocale={setLocale} />
|
|
21
|
+
<FooterVersion />
|
|
22
|
+
</div>
|
|
17
23
|
</div>
|
|
18
24
|
);
|
|
19
25
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.footer-logo {
|
|
2
|
-
color: var(--
|
|
2
|
+
color: var(--color-text-secondary);
|
|
3
3
|
a {
|
|
4
4
|
text-decoration: none;
|
|
5
5
|
}
|
|
@@ -10,5 +10,11 @@
|
|
|
10
10
|
}
|
|
11
11
|
|
|
12
12
|
.version {
|
|
13
|
-
color: var(--
|
|
13
|
+
color: var(--color-text-muted);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.footer-controls {
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
gap: 8px;
|
|
14
20
|
}
|
|
@@ -13,7 +13,7 @@ interface CiInfoProps {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
interface CiIconProps {
|
|
16
|
-
type
|
|
16
|
+
type?: CiDescriptor["type"];
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export const CiIcon = ({ type }: CiIconProps) => {
|
|
@@ -47,24 +47,20 @@ export const CiIcon = ({ type }: CiIconProps) => {
|
|
|
47
47
|
export const CiInfo = ({ className }: CiInfoProps) => {
|
|
48
48
|
const { ci } = getReportOptions<AwesomeReportOptions>();
|
|
49
49
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
50
|
+
const ciLink = ci ? ci.pullRequestUrl || ci.jobRunUrl || ci.jobUrl : undefined;
|
|
51
|
+
const ciLabel = getCiLabel(ci, ciLink);
|
|
52
|
+
const safeLink = sanitizeExternalUrl(ciLink);
|
|
53
53
|
|
|
54
|
-
|
|
55
|
-
const safeLink = sanitizeExternalUrl(link);
|
|
56
|
-
const label = ci.pullRequestName || ci.jobRunName || ci.jobName || link;
|
|
57
|
-
|
|
58
|
-
if (!link) {
|
|
54
|
+
if (!ciLabel) {
|
|
59
55
|
return null;
|
|
60
56
|
}
|
|
61
57
|
|
|
62
58
|
if (!safeLink) {
|
|
63
59
|
return (
|
|
64
60
|
<span className={clsx(styles["ci-info"], className)}>
|
|
65
|
-
<CiIcon type={ci
|
|
61
|
+
<CiIcon type={ci?.type} />
|
|
66
62
|
<Text type="paragraph" size="m" bold>
|
|
67
|
-
{
|
|
63
|
+
{ciLabel}
|
|
68
64
|
</Text>
|
|
69
65
|
</span>
|
|
70
66
|
);
|
|
@@ -72,10 +68,18 @@ export const CiInfo = ({ className }: CiInfoProps) => {
|
|
|
72
68
|
|
|
73
69
|
return (
|
|
74
70
|
<a className={clsx(styles["ci-info"], className)} href={safeLink} target="_blank" rel="noopener noreferrer">
|
|
75
|
-
<CiIcon type={ci
|
|
71
|
+
<CiIcon type={ci?.type} />
|
|
76
72
|
<Text type="paragraph" size="m" bold>
|
|
77
|
-
{
|
|
73
|
+
{ciLabel}
|
|
78
74
|
</Text>
|
|
79
75
|
</a>
|
|
80
76
|
);
|
|
81
77
|
};
|
|
78
|
+
|
|
79
|
+
const getCiLabel = (ci?: CiDescriptor, link?: string) => {
|
|
80
|
+
if (!ci) {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
return ci.pullRequestName || ci.jobRunName || ci.jobName || link;
|
|
85
|
+
};
|
|
@@ -10,12 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
.logoWrapper {
|
|
12
12
|
margin-right: auto;
|
|
13
|
-
color: var(--
|
|
13
|
+
color: var(--color-text-secondary);
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
.logo {
|
|
17
17
|
margin-right: 8px;
|
|
18
|
-
color: var(--
|
|
18
|
+
color: var(--color-icon-secondary);
|
|
19
19
|
top: -2px;
|
|
20
20
|
}
|
|
21
21
|
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { themeStore, toggleUserTheme } from "@allurereport/web-commons";
|
|
2
|
-
import {
|
|
2
|
+
import { ThemeButton } from "@allurereport/web-components";
|
|
3
3
|
import { computed } from "@preact/signals";
|
|
4
4
|
|
|
5
5
|
import { EnvironmentPicker } from "@/components/EnvironmentPicker";
|
|
6
6
|
import ToggleLayout from "@/components/ToggleLayout";
|
|
7
|
-
import { currentLocale, setLocale } from "@/stores/locale";
|
|
8
7
|
|
|
9
8
|
interface HeaderControlsProps {
|
|
10
9
|
className?: string;
|
|
@@ -16,7 +15,6 @@ export const HeaderControls = ({ className }: HeaderControlsProps) => {
|
|
|
16
15
|
return (
|
|
17
16
|
<div className={className}>
|
|
18
17
|
<EnvironmentPicker />
|
|
19
|
-
<LanguagePicker locale={currentLocale.value} setLocale={setLocale} />
|
|
20
18
|
<ToggleLayout />
|
|
21
19
|
<ThemeButton theme={selectedTheme.value} toggleTheme={toggleUserTheme} />
|
|
22
20
|
</div>
|