@allurereport/web-awesome 3.0.0-beta.9 → 3.0.1

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.
Files changed (290) hide show
  1. package/dist/multi/173.app-bae2a0fe5738d77cd976.js +1 -0
  2. package/dist/multi/174.app-bae2a0fe5738d77cd976.js +1 -0
  3. package/dist/multi/252.app-bae2a0fe5738d77cd976.js +1 -0
  4. package/dist/multi/282.app-bae2a0fe5738d77cd976.js +1 -0
  5. package/dist/multi/29.app-bae2a0fe5738d77cd976.js +1 -0
  6. package/dist/multi/416.app-bae2a0fe5738d77cd976.js +1 -0
  7. package/dist/multi/527.app-bae2a0fe5738d77cd976.js +1 -0
  8. package/dist/multi/600.app-bae2a0fe5738d77cd976.js +1 -0
  9. package/dist/multi/605.app-bae2a0fe5738d77cd976.js +1 -0
  10. package/dist/multi/638.app-bae2a0fe5738d77cd976.js +1 -0
  11. package/dist/multi/672.app-bae2a0fe5738d77cd976.js +1 -0
  12. package/dist/multi/686.app-bae2a0fe5738d77cd976.js +1 -0
  13. package/dist/multi/725.app-bae2a0fe5738d77cd976.js +1 -0
  14. package/dist/multi/741.app-bae2a0fe5738d77cd976.js +1 -0
  15. package/dist/multi/755.app-bae2a0fe5738d77cd976.js +1 -0
  16. package/dist/multi/894.app-bae2a0fe5738d77cd976.js +1 -0
  17. package/dist/multi/91.app-bae2a0fe5738d77cd976.js +1 -0
  18. package/dist/multi/943.app-bae2a0fe5738d77cd976.js +1 -0
  19. package/dist/multi/980.app-bae2a0fe5738d77cd976.js +1 -0
  20. package/dist/multi/app-bae2a0fe5738d77cd976.js +2 -0
  21. package/dist/multi/app-bae2a0fe5738d77cd976.js.LICENSE.txt +10 -0
  22. package/dist/multi/manifest.json +25 -24
  23. package/dist/multi/styles-bbf68b2ba63c38b53c38.css +48 -0
  24. package/dist/single/app-996d3b5869f8fc942b66.js +2 -0
  25. package/dist/single/app-996d3b5869f8fc942b66.js.LICENSE.txt +10 -0
  26. package/dist/single/manifest.json +1 -1
  27. package/package.json +31 -19
  28. package/src/assets/scss/day.scss +2 -0
  29. package/src/assets/scss/index.scss +1 -3
  30. package/src/assets/scss/night.scss +2 -0
  31. package/src/assets/scss/palette.scss +391 -391
  32. package/src/assets/scss/theme.scss +292 -79
  33. package/src/components/BaseLayout/index.tsx +10 -32
  34. package/src/components/BaseLayout/styles.scss +14 -4
  35. package/src/components/Charts/index.tsx +245 -0
  36. package/src/components/Charts/styles.scss +27 -0
  37. package/src/components/EnvironmentPicker/index.tsx +60 -0
  38. package/src/components/EnvironmentPicker/styles.scss +9 -0
  39. package/src/components/Footer/FooterLogo.tsx +1 -2
  40. package/src/components/Footer/FooterVersion.tsx +7 -3
  41. package/src/components/Footer/index.tsx +6 -2
  42. package/src/components/Header/CiInfo/index.tsx +67 -0
  43. package/src/components/Header/CiInfo/styles.scss +7 -0
  44. package/src/components/Header/index.tsx +21 -8
  45. package/src/components/Header/styles.scss +9 -1
  46. package/src/components/HeaderControls/index.tsx +20 -0
  47. package/src/components/MainReport/index.tsx +84 -6
  48. package/src/components/MainReport/styles.scss +20 -0
  49. package/src/components/Metadata/index.tsx +6 -4
  50. package/src/components/MetadataButton/index.tsx +14 -6
  51. package/src/components/MetadataButton/styles.scss +3 -0
  52. package/src/components/Modal/index.tsx +15 -167
  53. package/src/components/NavTabs/index.tsx +70 -0
  54. package/src/components/{TestResult/TestResultTabs → NavTabs}/styles.scss +0 -3
  55. package/src/components/Report/index.tsx +7 -0
  56. package/src/components/ReportBody/Filters.tsx +96 -64
  57. package/src/components/ReportBody/HeaderActions.tsx +2 -2
  58. package/src/components/ReportBody/SortBy.tsx +4 -7
  59. package/src/components/ReportBody/index.tsx +30 -24
  60. package/src/components/ReportBody/styles.scss +9 -3
  61. package/src/components/ReportGlobalAttachments/index.tsx +34 -0
  62. package/src/components/ReportGlobalAttachments/styles.scss +11 -0
  63. package/src/components/ReportGlobalErrors/index.tsx +30 -0
  64. package/src/components/ReportGlobalErrors/styles.scss +12 -0
  65. package/src/components/ReportHeader/ReportHeaderLogo.tsx +6 -2
  66. package/src/components/ReportHeader/ReportHeaderPie.tsx +1 -2
  67. package/src/components/ReportHeader/index.tsx +38 -12
  68. package/src/components/ReportHeader/styles.scss +9 -1
  69. package/src/components/ReportMetadata/MetadataSummary.tsx +57 -65
  70. package/src/components/ReportMetadata/MetadataWithIcon.tsx +11 -13
  71. package/src/components/ReportMetadata/index.tsx +50 -3
  72. package/src/components/ReportMetadata/styles.scss +0 -2
  73. package/src/components/ReportQualityGateResults/index.tsx +42 -0
  74. package/src/components/ReportQualityGateResults/styles.scss +44 -0
  75. package/src/components/ReportTabs/index.tsx +37 -0
  76. package/src/components/SectionPicker/index.tsx +55 -0
  77. package/src/components/SectionPicker/styles.scss +5 -0
  78. package/src/components/SectionSwitcher/index.tsx +16 -0
  79. package/src/components/SectionSwitcher/styles.scss +4 -0
  80. package/src/components/SectionTabs/index.tsx +0 -0
  81. package/src/components/SideBySide/index.tsx +52 -0
  82. package/src/components/SideBySide/styles.scss +64 -0
  83. package/src/components/SplitLayout/index.tsx +71 -0
  84. package/src/components/SplitLayout/styles.scss +84 -0
  85. package/src/components/TestResult/TestStepsEmpty/index.tsx +3 -9
  86. package/src/components/TestResult/TrAttachmentsView/index.tsx +29 -0
  87. package/src/components/TestResult/{TestResultDescription → TrDescription}/index.tsx +5 -5
  88. package/src/components/TestResult/{TestResultDropdown → TrDropdown}/index.tsx +7 -5
  89. package/src/components/TestResult/{TestResultEmpty → TrEmpty}/index.tsx +7 -13
  90. package/src/components/TestResult/TrEnvironmentItem/index.tsx +82 -0
  91. package/src/components/TestResult/TrEnvironmentItem/styles.scss +60 -0
  92. package/src/components/TestResult/TrEnvironmentsView/index.tsx +64 -0
  93. package/src/components/TestResult/TrEnvironmentsView/styles.scss +11 -0
  94. package/src/components/TestResult/TrError/TrDiff.tsx +121 -0
  95. package/src/components/TestResult/TrError/index.tsx +111 -0
  96. package/src/components/TestResult/TrError/styles.scss +223 -0
  97. package/src/components/TestResult/TrHeader/TrBreadcrumbs.tsx +44 -0
  98. package/src/components/TestResult/TrHeader/index.tsx +15 -0
  99. package/src/components/TestResult/{TestResultHeader → TrHeader}/styles.scss +7 -2
  100. package/src/components/TestResult/TrHistory/TrHistoryItem.tsx +94 -0
  101. package/src/components/TestResult/TrHistory/index.tsx +26 -0
  102. package/src/components/TestResult/{TestResultHistory → TrHistory}/styles.scss +2 -1
  103. package/src/components/TestResult/{TestResultInfo/TestResultInfoStatuses.tsx → TrInfo/TrInfoStatuses.tsx} +6 -4
  104. package/src/components/TestResult/TrInfo/index.tsx +99 -0
  105. package/src/components/TestResult/{TestResultInfo → TrInfo}/styles.scss +18 -0
  106. package/src/components/TestResult/{TestResultLinks → TrLinks}/index.tsx +8 -8
  107. package/src/components/TestResult/{TestResultMetadata → TrMetadata}/index.tsx +6 -6
  108. package/src/components/TestResult/{TestResultNavigation → TrNavigation}/index.tsx +7 -9
  109. package/src/components/TestResult/TrOverview.tsx +46 -0
  110. package/src/components/TestResult/{TestResultParameters → TrParameters}/index.tsx +4 -4
  111. package/src/components/TestResult/TrPrevStatuses/index.tsx +63 -0
  112. package/src/components/TestResult/TrPwTraces/PwTrace.tsx +34 -0
  113. package/src/components/TestResult/TrPwTraces/PwTraceButton.tsx +32 -0
  114. package/src/components/TestResult/TrPwTraces/index.tsx +32 -0
  115. package/src/components/TestResult/TrPwTraces/styles.scss +20 -0
  116. package/src/components/TestResult/TrRetriesView/TrRetriesItem.tsx +70 -0
  117. package/src/components/TestResult/TrRetriesView/index.tsx +29 -0
  118. package/src/components/TestResult/{TestResultSetup → TrSetup}/index.tsx +13 -13
  119. package/src/components/TestResult/{TestResultSeverity → TrSeverity}/index.tsx +2 -2
  120. package/src/components/TestResult/{TestResultStatus → TrStatus}/index.tsx +5 -5
  121. package/src/components/TestResult/TrSteps/TrAttachment.tsx +118 -0
  122. package/src/components/TestResult/{TestResultSteps/testResultAttachmentInfo.tsx → TrSteps/TrAttachmentInfo.tsx} +11 -11
  123. package/src/components/TestResult/TrSteps/TrStep.tsx +98 -0
  124. package/src/components/TestResult/TrSteps/TrStepInfo.tsx +90 -0
  125. package/src/components/TestResult/{TestResultSteps → TrSteps}/index.tsx +12 -12
  126. package/src/components/TestResult/{TestResultSteps → TrSteps}/styles.scss +49 -10
  127. package/src/components/TestResult/{TestResultSteps → TrSteps}/wrongAttachment.tsx +1 -1
  128. package/src/components/TestResult/TrTabs/index.tsx +42 -0
  129. package/src/components/TestResult/{TestResultTeardown → TrTeardown}/index.tsx +13 -13
  130. package/src/components/TestResult/index.tsx +54 -38
  131. package/src/components/TestResult/styles.scss +12 -0
  132. package/src/components/Timeline/index.tsx +100 -0
  133. package/src/components/Timeline/styles.scss +45 -0
  134. package/src/components/ToggleLayout/index.tsx +17 -0
  135. package/src/components/Tree/index.tsx +117 -11
  136. package/src/components/Tree/styles.scss +23 -5
  137. package/src/index.html +22 -6
  138. package/src/index.tsx +90 -20
  139. package/src/locales/az.json +378 -0
  140. package/src/locales/de.json +378 -0
  141. package/src/locales/en.json +378 -0
  142. package/src/locales/es.json +378 -0
  143. package/src/locales/fr.json +378 -0
  144. package/src/locales/he.json +378 -0
  145. package/src/locales/hy.json +378 -0
  146. package/src/locales/it.json +378 -0
  147. package/src/locales/ja.json +378 -0
  148. package/src/locales/ka.json +378 -0
  149. package/src/locales/kr.json +378 -0
  150. package/src/locales/nl.json +378 -0
  151. package/src/locales/pl.json +386 -0
  152. package/src/locales/pt.json +378 -0
  153. package/src/locales/ru.json +386 -0
  154. package/src/locales/sv.json +378 -0
  155. package/src/locales/tr.json +378 -0
  156. package/src/locales/ua.json +329 -0
  157. package/src/locales/zh.json +378 -0
  158. package/src/stores/chart.ts +41 -6
  159. package/src/stores/env.ts +88 -0
  160. package/src/stores/envInfo.ts +2 -2
  161. package/src/stores/globals.ts +28 -0
  162. package/src/stores/layout.ts +36 -0
  163. package/src/stores/locale.ts +77 -29
  164. package/src/stores/modal.ts +22 -0
  165. package/src/stores/qualityGate.ts +28 -0
  166. package/src/stores/router.ts +108 -0
  167. package/src/stores/sections.ts +63 -0
  168. package/src/stores/stats.ts +52 -7
  169. package/src/stores/testResults.ts +13 -9
  170. package/src/stores/theme.ts +15 -18
  171. package/src/stores/timeline.ts +39 -0
  172. package/src/stores/tree.ts +65 -110
  173. package/src/stores/treeFilters/actions.ts +67 -0
  174. package/src/stores/treeFilters/constants.ts +7 -0
  175. package/src/stores/treeFilters/index.ts +3 -0
  176. package/src/stores/treeFilters/store.ts +73 -0
  177. package/src/stores/treeFilters/types.ts +12 -0
  178. package/src/stores/variables.ts +40 -0
  179. package/src/styles.scss +66 -0
  180. package/src/utils/persist.ts +23 -0
  181. package/src/utils/time.ts +1 -0
  182. package/src/utils/tree.ts +30 -0
  183. package/src/utils/treeFilters.ts +42 -24
  184. package/test/components/Header/CiInfo.test.tsx +177 -0
  185. package/test/components/Header.test.tsx +122 -0
  186. package/test/stores/treeFilters.test.ts +302 -0
  187. package/test/utils/treeFilters.test.ts +189 -44
  188. package/tsconfig.json +7 -2
  189. package/tsconfig.node.json +8 -0
  190. package/types.d.ts +45 -24
  191. package/vitest.config.ts +15 -2
  192. package/vitest.setup.ts +1 -0
  193. package/webpack.config.js +35 -5
  194. package/dist/multi/141.app-f32e4213.js +0 -1
  195. package/dist/multi/222.app-f32e4213.js +0 -1
  196. package/dist/multi/335.app-f32e4213.js +0 -1
  197. package/dist/multi/34.app-f32e4213.js +0 -1
  198. package/dist/multi/349.app-f32e4213.js +0 -1
  199. package/dist/multi/378.app-f32e4213.js +0 -1
  200. package/dist/multi/406.app-f32e4213.js +0 -1
  201. package/dist/multi/476.app-f32e4213.js +0 -1
  202. package/dist/multi/53.app-f32e4213.js +0 -1
  203. package/dist/multi/584.app-f32e4213.js +0 -1
  204. package/dist/multi/690.app-f32e4213.js +0 -1
  205. package/dist/multi/747.app-f32e4213.js +0 -1
  206. package/dist/multi/767.app-f32e4213.js +0 -1
  207. package/dist/multi/816.app-f32e4213.js +0 -1
  208. package/dist/multi/83.app-f32e4213.js +0 -1
  209. package/dist/multi/873.app-f32e4213.js +0 -1
  210. package/dist/multi/920.app-f32e4213.js +0 -1
  211. package/dist/multi/991.app-f32e4213.js +0 -1
  212. package/dist/multi/app-f32e4213.js +0 -2
  213. package/dist/multi/app-f32e4213.js.LICENSE.txt +0 -16
  214. package/dist/multi/styles-f32e4213.css +0 -284
  215. package/dist/single/app-7fa8e43f.js +0 -2
  216. package/dist/single/app-7fa8e43f.js.LICENSE.txt +0 -16
  217. package/src/assets/scss/code.scss +0 -71
  218. package/src/assets/scss/typography.scss +0 -218
  219. package/src/components/ArrowButton/index.tsx +0 -36
  220. package/src/components/ArrowButton/styles.scss +0 -35
  221. package/src/components/LanguagePicker/index.tsx +0 -40
  222. package/src/components/Modal/styles.scss +0 -126
  223. package/src/components/ReportLogo/index.tsx +0 -16
  224. package/src/components/ReportLogo/styles.scss +0 -20
  225. package/src/components/ReportLogoFull/index.tsx +0 -20
  226. package/src/components/ReportLogoFull/styles.scss +0 -7
  227. package/src/components/Tabs/index.tsx +0 -62
  228. package/src/components/TestResult/TestResultAttachmentsView/index.tsx +0 -27
  229. package/src/components/TestResult/TestResultError/index.tsx +0 -59
  230. package/src/components/TestResult/TestResultError/styles.scss +0 -51
  231. package/src/components/TestResult/TestResultHeader/index.tsx +0 -55
  232. package/src/components/TestResult/TestResultHistory/TestResultHistoryItem.tsx +0 -67
  233. package/src/components/TestResult/TestResultHistory/index.tsx +0 -26
  234. package/src/components/TestResult/TestResultInfo/index.tsx +0 -79
  235. package/src/components/TestResult/TestResultOverview.tsx +0 -43
  236. package/src/components/TestResult/TestResultPrevStatuses/index.tsx +0 -49
  237. package/src/components/TestResult/TestResultRetriesView/TestResultRetriesItem.tsx +0 -52
  238. package/src/components/TestResult/TestResultRetriesView/index.tsx +0 -24
  239. package/src/components/TestResult/TestResultSteps/HtmlAttachmentPreview.tsx +0 -12
  240. package/src/components/TestResult/TestResultSteps/attachment.tsx +0 -68
  241. package/src/components/TestResult/TestResultSteps/attachmentCode.tsx +0 -20
  242. package/src/components/TestResult/TestResultSteps/attachmentImage.tsx +0 -32
  243. package/src/components/TestResult/TestResultSteps/attachmentVideo.tsx +0 -15
  244. package/src/components/TestResult/TestResultSteps/testResultAttachment.tsx +0 -77
  245. package/src/components/TestResult/TestResultSteps/testResultStep.tsx +0 -85
  246. package/src/components/TestResult/TestResultSteps/testResultStepInfo.tsx +0 -30
  247. package/src/components/TestResult/TestResultTabs/index.tsx +0 -59
  248. package/src/components/ThemeButton/ThemeButton.tsx +0 -20
  249. package/src/components/Tree/Tree.tsx +0 -75
  250. package/src/components/Tree/TreeHeader.tsx +0 -82
  251. package/src/components/Tree/TreeItem.tsx +0 -35
  252. package/src/components/Tree/TreeItemIcon.tsx +0 -32
  253. package/src/i18n/constants.ts +0 -124
  254. package/src/i18n/locales/am.json +0 -120
  255. package/src/i18n/locales/az.json +0 -120
  256. package/src/i18n/locales/de.json +0 -120
  257. package/src/i18n/locales/en.json +0 -121
  258. package/src/i18n/locales/es.json +0 -120
  259. package/src/i18n/locales/fr.json +0 -120
  260. package/src/i18n/locales/he.json +0 -120
  261. package/src/i18n/locales/it.json +0 -120
  262. package/src/i18n/locales/ja.json +0 -120
  263. package/src/i18n/locales/ka.json +0 -120
  264. package/src/i18n/locales/kr.json +0 -120
  265. package/src/i18n/locales/nl.json +0 -120
  266. package/src/i18n/locales/pl.json +0 -118
  267. package/src/i18n/locales/pt.json +0 -120
  268. package/src/i18n/locales/ru.json +0 -118
  269. package/src/i18n/locales/sv.json +0 -120
  270. package/src/i18n/locales/tr.json +0 -120
  271. package/src/i18n/locales/zh.json +0 -120
  272. package/src/utils/attachments.ts +0 -156
  273. package/src/utils/capitalize.ts +0 -6
  274. /package/dist/multi/{JetBrainsMono_vf-b9a9c326..woff → JetBrainsMono_vf.woff} +0 -0
  275. /package/dist/multi/{JetBrainsMono_vf-9e9649b6..woff2 → JetBrainsMono_vf.woff2} +0 -0
  276. /package/dist/multi/{pt-root-ui_vf-22fe60ca..woff → pt-root-ui_vf.woff} +0 -0
  277. /package/dist/multi/{pt-root-ui_vf-9d251e8b..woff2 → pt-root-ui_vf.woff2} +0 -0
  278. /package/src/components/{Tabs → ReportTabs}/styles.scss +0 -0
  279. /package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/styles.scss +0 -0
  280. /package/src/components/TestResult/{TestResultDescription → TrDescription}/styles.scss +0 -0
  281. /package/src/components/TestResult/{TestResultDropdown → TrDropdown}/styles.scss +0 -0
  282. /package/src/components/TestResult/{TestResultEmpty → TrEmpty}/styles.scss +0 -0
  283. /package/src/components/TestResult/{TestResultLinks → TrLinks}/styles.scss +0 -0
  284. /package/src/components/TestResult/{TestResultMetadata → TrMetadata}/styles.scss +0 -0
  285. /package/src/components/TestResult/{TestResultNavigation → TrNavigation}/styles.scss +0 -0
  286. /package/src/components/TestResult/{TestResultParameters → TrParameters}/styles.scss +0 -0
  287. /package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/styles.scss +0 -0
  288. /package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/styles.scss +0 -0
  289. /package/src/components/TestResult/{TestResultSeverity → TrSeverity}/styles.scss +0 -0
  290. /package/src/components/TestResult/{TestResultStatus → TrStatus}/styles.scss +0 -0
@@ -1,16 +0,0 @@
1
- /**
2
- * Prism: Lightweight, robust, elegant syntax highlighting
3
- *
4
- * @license MIT <https://opensource.org/licenses/MIT>
5
- * @author Lea Verou <https://lea.verou.me>
6
- * @namespace
7
- * @public
8
- */
9
-
10
- /**
11
- * filesize
12
- *
13
- * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
14
- * @license BSD-3-Clause
15
- * @version 10.1.6
16
- */
@@ -1,71 +0,0 @@
1
- pre[class*="language-"],
2
- code[class*="language-"] {
3
- background: var(--bg-base-secondary);
4
- font-size: 12px;
5
- font-family: "JetBrains Mono", monospace;
6
- color: var(--on-text-primary);
7
- text-shadow: none !important;
8
- margin: 0;
9
- }
10
-
11
- .toolbar {
12
- display: none;
13
- }
14
-
15
- .token.number {
16
- color: var(--on-support-aldebaran);
17
- }
18
-
19
- .token.property,
20
- .token.tag,
21
- .token.boolean,
22
- .token.constant,
23
- .token.symbol,
24
- .token.deleted {
25
- color: var(--on-support-atlas);
26
- }
27
-
28
- .token.selector,
29
- .token.attr-name,
30
- .token.string,
31
- .token.char,
32
- .token.builtin,
33
- .token.inserted {
34
- color: var(--on-support-castor);
35
- }
36
-
37
- .token.atrule,
38
- .token.attr-value,
39
- .token.keyword {
40
- color: var(--on-support-sirius);
41
- }
42
-
43
- .token.function,
44
- .token.class-name {
45
- color: var(--on-support-capella);
46
- }
47
-
48
- .token.punctuation {
49
- color: var(--on-text-primary);
50
- }
51
-
52
- .token.regex,
53
- .token.important,
54
- .token.variable {
55
- color: var(--on-support-atlas);
56
- }
57
-
58
- .line-numbers,
59
- .line-numbers-rows {
60
- border-right: none;
61
- color: var(--on-text-hint);
62
- }
63
-
64
- .token.operator,
65
- .token.entity,
66
- .token.url,
67
- .language-css .token.string,
68
- .style .token.string {
69
- color: var(--on-text-primary);
70
- background: none;
71
- }
@@ -1,218 +0,0 @@
1
- :root {
2
- --font-family: "PTRootUIWebVF", ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
3
- "Segoe UI Symbol", "Noto Color Emoji";
4
- --font-family-mono: "JetBrainsMonoVF", ui-monospace, monospace;
5
-
6
- /* line-heights */
7
- --line-height-xxl: 40px;
8
- --line-height-xl: 32px;
9
- --line-height-l: 24px;
10
- --line-height-m: 20px;
11
- --line-height-s: 16px;
12
-
13
- /* font-sizes */
14
- --font-size-3xl: 36px;
15
- --font-size-2xl: 24px;
16
- --font-size-xl: 18px;
17
- --font-size-l: 16px;
18
- --font-size-m: 14px;
19
- --font-size-m-code: 13px;
20
- --font-size-s: 12px;
21
- --font-size-xs: 11px;
22
- }
23
-
24
- :root[data-os="mac"] {
25
- -webkit-font-smoothing: antialiased;
26
- -moz-osx-font-smoothing: grayscale;
27
-
28
- --font-weight-normal: 425;
29
- --font-weight-bold: 625;
30
- --font-weight-extra-bold: 700;
31
- }
32
-
33
- /* For non macos users font weights are different and nor antialiased */
34
- :root:not([data-os="mac"]) {
35
- -webkit-font-smoothing: auto;
36
- -moz-osx-font-smoothing: auto;
37
-
38
- --font-weight-normal: 400;
39
- --font-weight-bold: 600;
40
- --font-weight-extra-bold: 700;
41
- }
42
-
43
- body {
44
- /* paragraphs-text-m */
45
- font-size: var(--font-size-m);
46
- line-height: var(--line-height-m);
47
- font-weight: var(--font-weight-normal);
48
- letter-spacing: 0;
49
- font-family: var(--font-family);
50
- }
51
-
52
- :global(.headings-head-l) {
53
- font-size: var(--font-size-3xl);
54
- line-height: var(--line-height-xxl);
55
- font-weight: var(--font-weight-extra-bold);
56
- letter-spacing: -0.016em; // -1.6%
57
- font-family: var(--font-family);
58
- }
59
-
60
- :global(.headings-head-m) {
61
- font-size: var(--font-size-2xl);
62
- line-height: var(--line-height-xl);
63
- font-weight: var(--font-weight-extra-bold);
64
- letter-spacing: -0.016em; // -1.6%
65
- font-family: var(--font-family);
66
- }
67
-
68
- :global(.headings-head-s) {
69
- font-size: var(--font-size-xl);
70
- line-height: var(--line-height-l);
71
- font-weight: var(--font-weight-extra-bold);
72
- letter-spacing: -0.01em; // -1%
73
- font-family: var(--font-family);
74
- }
75
-
76
- :global(.paragraphs-text-l-bold) {
77
- font-size: var(--font-size-l);
78
- line-height: var(--line-height-l);
79
- font-weight: var(--font-weight-bold);
80
- letter-spacing: 0;
81
- font-family: var(--font-family);
82
- }
83
-
84
- :global(.paragraphs-text-l) {
85
- font-size: var(--font-size-l);
86
- line-height: var(--line-height-l);
87
- font-weight: var(--font-weight-normal);
88
- letter-spacing: 0;
89
- font-family: var(--font-family);
90
- }
91
-
92
- :global(.paragraphs-text-m-bold) {
93
- font-size: var(--font-size-m);
94
- line-height: var(--line-height-m);
95
- font-weight: var(--font-weight-bold);
96
- letter-spacing: 0;
97
- font-family: var(--font-family);
98
- }
99
-
100
- :global(.paragraphs-text-m) {
101
- font-size: var(--font-size-m);
102
- line-height: var(--line-height-m);
103
- font-weight: var(--font-weight-normal);
104
- letter-spacing: 0;
105
- font-family: var(--font-family);
106
- }
107
-
108
- :global(.paragraphs-text-s-bold) {
109
- font-size: var(--font-size-s);
110
- line-height: var(--line-height-m);
111
- font-weight: var(--font-weight-bold);
112
- letter-spacing: 0;
113
- font-family: var(--font-family);
114
- }
115
-
116
- :global(.paragraphs-text-s) {
117
- font-size: var(--font-size-s);
118
- line-height: var(--line-height-m);
119
- font-weight: var(--font-weight-normal);
120
- letter-spacing: 0;
121
- font-family: var(--font-family);
122
- }
123
-
124
- :global(.paragraphs-code-m) {
125
- font-size: var(--font-size-m-code);
126
- line-height: var(--line-height-m);
127
- font-weight: var(--font-weight-normal);
128
- letter-spacing: 0;
129
- font-family: var(--font-family-mono);
130
- }
131
-
132
- :global(.paragraphs-code-s) {
133
- font-size: var(--font-size-s);
134
- line-height: var(--line-height-m);
135
- font-weight: var(--font-weight-normal);
136
- letter-spacing: 0;
137
- font-family: var(--font-family-mono);
138
- }
139
-
140
- :global(.ui-text-l-ui-bold) {
141
- font-size: var(--font-size-l);
142
- line-height: var(--line-height-m);
143
- font-weight: var(--font-weight-bold);
144
- letter-spacing: 0;
145
- font-family: var(--font-family);
146
- }
147
-
148
- :global(.ui-text-l-ui) {
149
- font-size: var(--font-size-l);
150
- line-height: var(--line-height-m);
151
- font-weight: var(--font-weight-normal);
152
- letter-spacing: 0;
153
- font-family: var(--font-family);
154
- }
155
-
156
- :global(.ui-text-m-ui-bold) {
157
- font-size: var(--font-size-m);
158
- line-height: var(--line-height-s);
159
- font-weight: var(--font-weight-bold);
160
- letter-spacing: 0;
161
- font-family: var(--font-family);
162
- }
163
-
164
- :global(.ui-text-m-ui) {
165
- font-size: var(--font-size-m);
166
- line-height: var(--line-height-s);
167
- font-weight: var(--font-weight-normal);
168
- letter-spacing: 0;
169
- font-family: var(--font-family);
170
- }
171
-
172
- :global(.ui-text-s-ui-bold) {
173
- font-size: var(--font-size-s);
174
- line-height: var(--line-height-s);
175
- font-weight: var(--font-weight-bold);
176
- letter-spacing: 0;
177
- font-family: var(--font-family);
178
- }
179
-
180
- :global(.ui-text-s-ui) {
181
- font-size: var(--font-size-s);
182
- line-height: var(--line-height-s);
183
- font-weight: var(--font-weight-normal);
184
- letter-spacing: 0;
185
- font-family: var(--font-family);
186
- }
187
-
188
- :global(.ui-text-xs-ui-bold) {
189
- font-size: var(--font-size-xs);
190
- line-height: var(--line-height-s);
191
- font-weight: var(--font-weight-bold);
192
- letter-spacing: 0;
193
- font-family: var(--font-family);
194
- }
195
-
196
- :global(.ui-text-xs-ui) {
197
- font-size: var(--font-size-xs);
198
- line-height: var(--line-height-s);
199
- font-weight: var(--font-weight-normal);
200
- letter-spacing: 0;
201
- font-family: var(--font-family);
202
- }
203
-
204
- :global(.ui-code-m-ui) {
205
- font-size: var(--font-size-m-code);
206
- line-height: var(--line-height-s);
207
- font-weight: var(--font-weight-normal);
208
- letter-spacing: 0;
209
- font-family: var(--font-family-mono);
210
- }
211
-
212
- :global(.ui-code-s-ui) {
213
- font-size: var(--font-size-s);
214
- line-height: var(--line-height-s);
215
- font-weight: var(--font-weight-normal);
216
- letter-spacing: 0;
217
- font-family: var(--font-family-mono);
218
- }
@@ -1,36 +0,0 @@
1
- import { SvgIcon, allureIcons } from "@allurereport/web-components";
2
- import { clsx } from "clsx";
3
- import type { FunctionalComponent } from "preact";
4
- import * as styles from "./styles.scss";
5
-
6
- export interface ArrowButtonProps {
7
- isOpened?: boolean;
8
- iconSize?: "m" | "xs" | "s";
9
- buttonSize?: "m" | "xs" | "s";
10
- className?: string;
11
- icon?: string;
12
- }
13
-
14
- export const ArrowButton: FunctionalComponent<ArrowButtonProps> = ({
15
- isOpened,
16
- buttonSize = "m",
17
- iconSize = "xs",
18
- className,
19
- icon = allureIcons.lineArrowsChevronDown,
20
- ...rest
21
- }) => {
22
- return (
23
- <button className={clsx(styles["arrow-button"], styles[`arrow-button-${buttonSize}`])} {...rest}>
24
- <SvgIcon
25
- id={icon}
26
- size={iconSize}
27
- className={clsx(
28
- styles["arrow-button-icon"],
29
- isOpened && styles["arrow-button-icon--opened"],
30
- styles[`icon-size-${iconSize}`],
31
- className,
32
- )}
33
- />
34
- </button>
35
- );
36
- };
@@ -1,35 +0,0 @@
1
- .arrow-button {
2
- background: transparent;
3
- border: none;
4
- padding: 8px 4px;
5
- border-radius: 4px;
6
- cursor: pointer;
7
- color: var(--on-icon-secondary);
8
-
9
- &:hover {
10
- background: var(--bg-control-flat-medium);
11
- color: var(--on-icon-primary);
12
- }
13
- }
14
-
15
- .arrow-button-s {
16
- padding: 0 4px;
17
- }
18
-
19
- .arrow-button-m {
20
- padding: 6px 6px;
21
- }
22
-
23
- .icon-size-m {
24
- width: 15px;
25
- height: 15px;
26
- }
27
-
28
- .arrow-button-icon {
29
- transform: rotate(-90deg);
30
- transition: transform 200ms;
31
- }
32
-
33
- .arrow-button-icon--opened {
34
- transform: rotate(0);
35
- }
@@ -1,40 +0,0 @@
1
- import { DropdownButton, Menu } from "@allurereport/web-components";
2
- import { LANG_LOCALE, type LangLocale } from "@/i18n/constants";
3
- import { currentLocale } from "@/stores";
4
- import { setLocale } from "@/stores/locale";
5
-
6
- // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
7
- const langPickerOptions = Object.entries(LANG_LOCALE).map(([key, { full }]) => ({
8
- key: key as LangLocale,
9
- value: full,
10
- }));
11
-
12
- export const LanguagePicker = () => {
13
- const locale = currentLocale.value;
14
- const handleSelect = (selectedOption: LangLocale) => {
15
- setLocale(selectedOption);
16
- };
17
-
18
- return (
19
- <Menu
20
- size="s"
21
- menuTrigger={({ isOpened, onClick }) => (
22
- <DropdownButton
23
- style="ghost"
24
- size="s"
25
- text={LANG_LOCALE[locale || "en"].short}
26
- isExpanded={isOpened}
27
- onClick={onClick}
28
- />
29
- )}
30
- >
31
- <Menu.Section>
32
- {langPickerOptions.map(({ key, value }) => (
33
- <Menu.ItemWithCheckmark onClick={() => handleSelect(key)} key={key} isChecked={locale === key}>
34
- {value}
35
- </Menu.ItemWithCheckmark>
36
- ))}
37
- </Menu.Section>
38
- </Menu>
39
- );
40
- };
@@ -1,126 +0,0 @@
1
- .modal-overlay {
2
- position: fixed;
3
- top: 0;
4
- left: 0;
5
- right: 0;
6
- bottom: 0;
7
- background: var(--ad-other-modal-overlay);
8
- display: flex;
9
- align-items: center;
10
- justify-content: center;
11
- z-index: 1000;
12
- }
13
-
14
- .modal-content {
15
- position: relative;
16
- display: flex;
17
- flex-direction: column;
18
- justify-content: center;
19
- align-items: center;
20
- gap: 16px;
21
- max-width: 90%;
22
- max-height: 90%;
23
- }
24
-
25
- .modal-wrapper {
26
- position: relative;
27
- background: var(--bg-base-primary);
28
- max-width: 90%;
29
- max-height: 80vh;
30
- width: 90vw;
31
- min-width: 320px;
32
- min-height: 320px;
33
- display: flex;
34
- border-radius: 16px;
35
- align-items: center;
36
- flex-direction: column;
37
- justify-content: center;
38
- overflow: hidden;
39
- z-index: 1;
40
- overflow-y: auto;
41
- }
42
-
43
- .modal-data-component {
44
- flex: 1 1 auto;
45
- overflow-y: auto;
46
- pointer-events: all;
47
- padding-top: 56px;
48
- }
49
-
50
- .modal-image {
51
- max-width: 100%;
52
- max-height: 100%;
53
- }
54
-
55
- .close-button-wrap {
56
- position: absolute;
57
- top: 0;
58
- right: 0;
59
- cursor: pointer;
60
- z-index: 1;
61
- }
62
-
63
- .modal-buttons {
64
- display: flex;
65
- gap: 8px;
66
- margin-left: auto;
67
- }
68
-
69
- .modal-button {
70
- }
71
-
72
- .modal-data {
73
- width: 100%;
74
- height: 100%;
75
- overflow-y: auto;
76
- pointer-events: none;
77
- display: flex;
78
- position: relative;
79
- }
80
-
81
- .modal-top {
82
- display: flex;
83
- align-items: center;
84
- justify-content: space-between;
85
- width: calc(100% - 32px);
86
- position: absolute;
87
- top: 16px;
88
- left: 16px;
89
- z-index: 1;
90
- }
91
-
92
- .modal-bottom {
93
- z-index: 1;
94
- display: flex;
95
- align-items: center;
96
- justify-content: flex-end;
97
- width: 100%;
98
- position: absolute;
99
- bottom: 0;
100
- color: var(--gray-neutral-0);
101
- }
102
-
103
- .modal-thumb {
104
- display: flex;
105
- justify-content: center;
106
- width: 64px;
107
- height: 64px;
108
- border-radius: 12px;
109
- background: var(--constant-bg-base-primary-night);
110
- overflow: hidden;
111
- border: 1px solid transparent;
112
- cursor: pointer;
113
- user-select: none;
114
-
115
- &.active {
116
- border: 1px solid var(--constant-on-border-heavy);
117
- }
118
- }
119
-
120
- .modal-gallery {
121
- display: flex;
122
- width: 100%;
123
- gap: 8px;
124
- justify-content: center;
125
- flex-wrap: wrap;
126
- }
@@ -1,16 +0,0 @@
1
- import { getReportOptions } from "@allurereport/web-commons";
2
- import { SvgIcon, allureIcons } from "@allurereport/web-components";
3
- import { clsx } from "clsx";
4
- import type { AllureAwesomeReportOptions } from "types";
5
- import * as styles from "./styles.scss";
6
-
7
- export const ReportLogo = (props: { className?: string; logo?: never }) => {
8
- const { className } = props;
9
- const { logo } = getReportOptions<AllureAwesomeReportOptions>() ?? {};
10
-
11
- return (
12
- <div className={clsx(styles["report-logo"], className)}>
13
- {logo ? <img src={logo} alt="report logo" /> : <SvgIcon id={allureIcons.reportLogo} inline />}
14
- </div>
15
- );
16
- };
@@ -1,20 +0,0 @@
1
- .report-logo {
2
- padding: 8px;
3
- background: var(--bg-base-secondary);
4
- border-radius: 8px;
5
- width: 48px;
6
- height: 48px;
7
- display: flex;
8
- align-items: center;
9
- justify-content: center;
10
-
11
- img {
12
- width: 100%;
13
- height: 100%;
14
- object-fit: contain;
15
- }
16
- }
17
-
18
- .text {
19
- color: var(--on-text-primary);
20
- }
@@ -1,20 +0,0 @@
1
- import { SvgIcon, allureIcons } from "@allurereport/web-components";
2
- import { Text } from "@allurereport/web-components";
3
- import { clsx } from "clsx";
4
- import * as styles from "./styles.scss";
5
-
6
- export const ReportLogoFull = (props: {
7
- /**
8
- * Additional class name
9
- */
10
- className?: string;
11
- }) => {
12
- const { className } = props;
13
-
14
- return (
15
- <Text type="paragraph" size="m" bold className={clsx(className, styles.text)}>
16
- <SvgIcon id={allureIcons.reportLogo} size="m" inline className={styles.logo} />
17
- <span>Allure Report</span>
18
- </Text>
19
- );
20
- };
@@ -1,7 +0,0 @@
1
- .logo {
2
- margin-right: 8px;
3
- }
4
-
5
- .text {
6
- color: var(--on-text-primary);
7
- }
@@ -1,62 +0,0 @@
1
- import { Text } from "@allurereport/web-components";
2
- import { type ComponentChildren, createContext } from "preact";
3
- import { useContext, useState } from "preact/hooks";
4
- import { setTreeStatus } from "@/stores/tree";
5
- import type { AllureAwesomeStatus } from "../../../types";
6
- import * as styles from "./styles.scss";
7
-
8
- type TabsContextT = {
9
- currentTab: string | undefined;
10
- setCurrentTab: (tab: string) => void;
11
- };
12
-
13
- const TabsContext = createContext<TabsContextT | null>(null);
14
-
15
- export const useTabsContext = () => {
16
- const context = useContext(TabsContext);
17
-
18
- if (!context) {
19
- throw new Error("Tabs' components must be used within a Tabs component");
20
- }
21
-
22
- return context;
23
- };
24
-
25
- export const TabsProvider = (props: { initialTab?: string; children: ComponentChildren }) => {
26
- const { children, initialTab } = props;
27
- const [currentTab, setCurrentTab] = useState<string | undefined>(initialTab);
28
-
29
- return <TabsContext.Provider value={{ currentTab, setCurrentTab }}>{children}</TabsContext.Provider>;
30
- };
31
-
32
- export const Tabs = (props: { children: ComponentChildren; initialTab?: string }) => {
33
- return <TabsProvider {...props} />;
34
- };
35
-
36
- export const TabsList = (props: { children: ComponentChildren }) => {
37
- return <div className={styles.tabsList}>{props.children}</div>;
38
- };
39
-
40
- export const Tab = (props: { id: string; children: ComponentChildren }) => {
41
- const { id, children, ...rest } = props;
42
- const { currentTab, setCurrentTab } = useTabsContext();
43
- const isCurrentTab = currentTab === id;
44
- const handleTabClick = () => {
45
- if (isCurrentTab) {
46
- setCurrentTab("total");
47
- setTreeStatus("total");
48
- return;
49
- }
50
-
51
- setCurrentTab(id);
52
- setTreeStatus(id as AllureAwesomeStatus);
53
- };
54
-
55
- return (
56
- <button {...rest} className={styles.tab} onClick={handleTabClick} aria-current={isCurrentTab ? true : undefined}>
57
- <Text type="paragraph" size="m" bold>
58
- {children}
59
- </Text>
60
- </button>
61
- );
62
- };
@@ -1,27 +0,0 @@
1
- import type { AttachmentTestStepResult } from "@allurereport/core-api";
2
- import type { FunctionalComponent } from "preact";
3
- import type { AllureAwesomeTestResult } from "types";
4
- import { TestResultAttachment } from "@/components/TestResult/TestResultSteps/testResultAttachment";
5
- import { useI18n } from "@/stores";
6
- import * as styles from "./styles.scss";
7
-
8
- export type TestResultAttachmentViewProps = {
9
- testResult?: AllureAwesomeTestResult;
10
- };
11
-
12
- export const TestResultAttachmentView: FunctionalComponent<TestResultAttachmentViewProps> = ({ testResult }) => {
13
- const { attachments } = testResult ?? {};
14
- const { t } = useI18n("empty");
15
-
16
- return (
17
- <div className={styles["test-result-attachments-view"]}>
18
- {attachments.length ? (
19
- attachments?.map((attach, key) => (
20
- <TestResultAttachment item={attach as AttachmentTestStepResult} key={key} stepIndex={key + 1} />
21
- ))
22
- ) : (
23
- <div className={styles["test-result-empty"]}>{t("no-attachments-results")}</div>
24
- )}
25
- </div>
26
- );
27
- };