@allurereport/web-awesome 3.0.0-beta.10 → 3.0.0-beta.11

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 (146) hide show
  1. package/dist/multi/{141.app-d01d0c66.js → 141.app-f4b5d260.js} +1 -1
  2. package/dist/multi/{222.app-d01d0c66.js → 222.app-f4b5d260.js} +1 -1
  3. package/dist/multi/335.app-f4b5d260.js +1 -0
  4. package/dist/multi/{34.app-d01d0c66.js → 34.app-f4b5d260.js} +1 -1
  5. package/dist/multi/{349.app-d01d0c66.js → 349.app-f4b5d260.js} +1 -1
  6. package/dist/multi/378.app-f4b5d260.js +1 -0
  7. package/dist/multi/{406.app-d01d0c66.js → 406.app-f4b5d260.js} +1 -1
  8. package/dist/multi/457.app-f4b5d260.js +1 -0
  9. package/dist/multi/{53.app-d01d0c66.js → 53.app-f4b5d260.js} +1 -1
  10. package/dist/multi/{584.app-d01d0c66.js → 584.app-f4b5d260.js} +1 -1
  11. package/dist/multi/{690.app-d01d0c66.js → 690.app-f4b5d260.js} +1 -1
  12. package/dist/multi/{747.app-d01d0c66.js → 747.app-f4b5d260.js} +1 -1
  13. package/dist/multi/{767.app-d01d0c66.js → 767.app-f4b5d260.js} +1 -1
  14. package/dist/multi/{816.app-d01d0c66.js → 816.app-f4b5d260.js} +1 -1
  15. package/dist/multi/{83.app-d01d0c66.js → 83.app-f4b5d260.js} +1 -1
  16. package/dist/multi/{873.app-d01d0c66.js → 873.app-f4b5d260.js} +1 -1
  17. package/dist/multi/{920.app-d01d0c66.js → 920.app-f4b5d260.js} +1 -1
  18. package/dist/multi/{991.app-d01d0c66.js → 991.app-f4b5d260.js} +1 -1
  19. package/dist/multi/app-f4b5d260.js +2 -0
  20. package/dist/multi/{app-d01d0c66.js.LICENSE.txt → app-f4b5d260.js.LICENSE.txt} +0 -8
  21. package/dist/multi/manifest.json +20 -20
  22. package/dist/multi/{styles-d01d0c66.css → styles-f4b5d260.css} +32 -30
  23. package/dist/single/app-b182550e.js +2 -0
  24. package/dist/single/{app-6596cb08.js.LICENSE.txt → app-b182550e.js.LICENSE.txt} +0 -8
  25. package/dist/single/manifest.json +1 -1
  26. package/package.json +4 -4
  27. package/src/assets/scss/palette.scss +391 -391
  28. package/src/assets/scss/theme.scss +9 -1
  29. package/src/assets/scss/vars.scss +0 -1
  30. package/src/components/BaseLayout/styles.scss +10 -2
  31. package/src/components/EnvironmentPicker/index.tsx +51 -0
  32. package/src/components/EnvironmentPicker/styles.scss +9 -0
  33. package/src/components/Footer/FooterLogo.tsx +1 -2
  34. package/src/components/Header/index.tsx +4 -2
  35. package/src/components/LanguagePicker/index.tsx +1 -1
  36. package/src/components/MainReport/styles.scss +2 -1
  37. package/src/components/Metadata/index.tsx +6 -4
  38. package/src/components/MetadataButton/index.tsx +12 -4
  39. package/src/components/MetadataButton/styles.scss +3 -0
  40. package/src/components/ReportBody/index.tsx +3 -2
  41. package/src/components/ReportHeader/ReportHeaderLogo.tsx +6 -2
  42. package/src/components/ReportHeader/ReportHeaderPie.tsx +1 -2
  43. package/src/components/ReportMetadata/MetadataSummary.tsx +53 -63
  44. package/src/components/ReportMetadata/index.tsx +50 -3
  45. package/src/components/SideBySide/styles.scss +2 -3
  46. package/src/components/SplitLayout/index.tsx +2 -2
  47. package/src/components/SplitLayout/styles.scss +2 -1
  48. package/src/components/TestResult/TestStepsEmpty/index.tsx +2 -2
  49. package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/index.tsx +4 -4
  50. package/src/components/TestResult/{TestResultDescription → TrDescription}/index.tsx +2 -2
  51. package/src/components/TestResult/{TestResultDropdown → TrDropdown}/index.tsx +1 -1
  52. package/src/components/TestResult/{TestResultEmpty → TrEmpty}/index.tsx +6 -6
  53. package/src/components/TestResult/TrEnvironmentItem/index.tsx +82 -0
  54. package/src/components/TestResult/TrEnvironmentItem/styles.scss +60 -0
  55. package/src/components/TestResult/TrEnvironmentsView/index.tsx +64 -0
  56. package/src/components/TestResult/TrEnvironmentsView/styles.scss +11 -0
  57. package/src/components/TestResult/TrError/TrDiff.tsx +3 -5
  58. package/src/components/TestResult/TrError/index.tsx +21 -6
  59. package/src/components/TestResult/TrError/styles.scss +92 -2
  60. package/src/components/TestResult/{TestResultHeader/TestResultBreadcrumbs.tsx → TrHeader/TrBreadcrumbs.tsx} +3 -3
  61. package/src/components/TestResult/{TestResultHeader → TrHeader}/index.tsx +6 -4
  62. package/src/components/TestResult/{TestResultHistory/TestResultHistoryItem.tsx → TrHistory/TrHistoryItem.tsx} +3 -3
  63. package/src/components/TestResult/{TestResultHistory → TrHistory}/index.tsx +5 -5
  64. package/src/components/TestResult/{TestResultInfo/TestResultInfoStatuses.tsx → TrInfo/TrInfoStatuses.tsx} +1 -1
  65. package/src/components/TestResult/{TestResultInfo → TrInfo}/index.tsx +37 -23
  66. package/src/components/TestResult/{TestResultLinks → TrLinks}/index.tsx +6 -6
  67. package/src/components/TestResult/{TestResultMetadata → TrMetadata}/index.tsx +4 -4
  68. package/src/components/TestResult/{TestResultNavigation → TrNavigation}/index.tsx +3 -2
  69. package/src/components/TestResult/TrOverview.tsx +47 -0
  70. package/src/components/TestResult/{TestResultParameters → TrParameters}/index.tsx +2 -2
  71. package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/index.tsx +6 -6
  72. package/src/components/TestResult/TrPwTraces/PwTrace.tsx +34 -0
  73. package/src/components/TestResult/TrPwTraces/PwTraceButton.tsx +33 -0
  74. package/src/components/TestResult/TrPwTraces/index.tsx +29 -0
  75. package/src/components/TestResult/TrPwTraces/styles.scss +20 -0
  76. package/src/components/TestResult/{TestResultRetriesView/TestResultRetriesItem.tsx → TrRetriesView/TrRetriesItem.tsx} +3 -3
  77. package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/index.tsx +4 -6
  78. package/src/components/TestResult/{TestResultSetup → TrSetup}/index.tsx +11 -11
  79. package/src/components/TestResult/{TestResultSeverity → TrSeverity}/index.tsx +1 -1
  80. package/src/components/TestResult/{TestResultStatus → TrStatus}/index.tsx +3 -2
  81. package/src/components/TestResult/{TestResultSteps/testResultAttachment.tsx → TrSteps/TrAttachment.tsx} +10 -7
  82. package/src/components/TestResult/{TestResultSteps/testResultAttachmentInfo.tsx → TrSteps/TrAttachmentInfo.tsx} +8 -8
  83. package/src/components/TestResult/{TestResultSteps/testResultStep.tsx → TrSteps/TrStep.tsx} +22 -13
  84. package/src/components/TestResult/{TestResultSteps/testResultStepInfo.tsx → TrSteps/TrStepInfo.tsx} +2 -2
  85. package/src/components/TestResult/{TestResultSteps → TrSteps}/index.tsx +8 -8
  86. package/src/components/TestResult/{TestResultSteps → TrSteps}/styles.scss +2 -1
  87. package/src/components/TestResult/{TestResultSteps → TrSteps}/wrongAttachment.tsx +1 -1
  88. package/src/components/TestResult/{TestResultTabs → TrTabs}/index.tsx +6 -6
  89. package/src/components/TestResult/{TestResultTeardown → TrTeardown}/index.tsx +11 -11
  90. package/src/components/TestResult/index.tsx +42 -30
  91. package/src/components/TestResult/styles.scss +2 -1
  92. package/src/components/Tree/index.tsx +94 -15
  93. package/src/components/Tree/styles.scss +16 -1
  94. package/src/i18n/constants.ts +3 -3
  95. package/src/i18n/locales/az.json +12 -2
  96. package/src/i18n/locales/de.json +11 -2
  97. package/src/i18n/locales/en.json +11 -2
  98. package/src/i18n/locales/es.json +11 -2
  99. package/src/i18n/locales/fr.json +11 -2
  100. package/src/i18n/locales/he.json +11 -2
  101. package/src/i18n/locales/{am.json → hy.json} +11 -2
  102. package/src/i18n/locales/it.json +11 -2
  103. package/src/i18n/locales/ja.json +11 -2
  104. package/src/i18n/locales/ka.json +11 -2
  105. package/src/i18n/locales/kr.json +11 -2
  106. package/src/i18n/locales/nl.json +11 -2
  107. package/src/i18n/locales/pl.json +11 -2
  108. package/src/i18n/locales/pt.json +10 -2
  109. package/src/i18n/locales/ru.json +11 -2
  110. package/src/i18n/locales/sv.json +11 -2
  111. package/src/i18n/locales/tr.json +11 -2
  112. package/src/i18n/locales/zh.json +11 -2
  113. package/src/index.tsx +36 -33
  114. package/src/stores/chart.ts +3 -3
  115. package/src/stores/env.ts +88 -0
  116. package/src/stores/locale.ts +2 -1
  117. package/src/stores/stats.ts +52 -7
  118. package/src/stores/testResults.ts +6 -6
  119. package/src/stores/tree.ts +48 -17
  120. package/src/stores/variables.ts +38 -0
  121. package/dist/multi/335.app-d01d0c66.js +0 -1
  122. package/dist/multi/378.app-d01d0c66.js +0 -1
  123. package/dist/multi/476.app-d01d0c66.js +0 -1
  124. package/dist/multi/app-d01d0c66.js +0 -2
  125. package/dist/single/app-6596cb08.js +0 -2
  126. package/src/components/ReportLogo/index.tsx +0 -16
  127. package/src/components/ReportLogo/styles.scss +0 -20
  128. package/src/components/ReportLogoFull/index.tsx +0 -20
  129. package/src/components/ReportLogoFull/styles.scss +0 -7
  130. package/src/components/TestResult/TestResultOverview.tsx +0 -43
  131. /package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/styles.scss +0 -0
  132. /package/src/components/TestResult/{TestResultDescription → TrDescription}/styles.scss +0 -0
  133. /package/src/components/TestResult/{TestResultDropdown → TrDropdown}/styles.scss +0 -0
  134. /package/src/components/TestResult/{TestResultEmpty → TrEmpty}/styles.scss +0 -0
  135. /package/src/components/TestResult/{TestResultHeader → TrHeader}/styles.scss +0 -0
  136. /package/src/components/TestResult/{TestResultHistory → TrHistory}/styles.scss +0 -0
  137. /package/src/components/TestResult/{TestResultInfo → TrInfo}/styles.scss +0 -0
  138. /package/src/components/TestResult/{TestResultLinks → TrLinks}/styles.scss +0 -0
  139. /package/src/components/TestResult/{TestResultMetadata → TrMetadata}/styles.scss +0 -0
  140. /package/src/components/TestResult/{TestResultNavigation → TrNavigation}/styles.scss +0 -0
  141. /package/src/components/TestResult/{TestResultParameters → TrParameters}/styles.scss +0 -0
  142. /package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/styles.scss +0 -0
  143. /package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/styles.scss +0 -0
  144. /package/src/components/TestResult/{TestResultSeverity → TrSeverity}/styles.scss +0 -0
  145. /package/src/components/TestResult/{TestResultStatus → TrStatus}/styles.scss +0 -0
  146. /package/src/components/TestResult/{TestResultTabs → TrTabs}/styles.scss +0 -0
@@ -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 { AwesomeReportOptions } 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<AwesomeReportOptions>() ?? {};
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,43 +0,0 @@
1
- import type { FunctionalComponent } from "preact";
2
- import type { AwesomeTestResult } from "types";
3
- import * as styles from "@/components/BaseLayout/styles.scss";
4
- import { TestResultDescription } from "@/components/TestResult/TestResultDescription";
5
- import { TestResultLinks } from "@/components/TestResult/TestResultLinks";
6
- import { TestResultMetadata } from "@/components/TestResult/TestResultMetadata";
7
- import { TestResultParameters } from "@/components/TestResult/TestResultParameters";
8
- import { TestResultSetup } from "@/components/TestResult/TestResultSetup";
9
- import { TestResultSteps } from "@/components/TestResult/TestResultSteps";
10
- import { TestResultTeardown } from "@/components/TestResult/TestResultTeardown";
11
- import TestStepsEmpty from "@/components/TestResult/TestStepsEmpty";
12
- import { TrError } from "@/components/TestResult/TrError";
13
-
14
- export type TestResultOverviewProps = {
15
- testResult?: AwesomeTestResult;
16
- };
17
-
18
- export const TestResultOverview: FunctionalComponent<TestResultOverviewProps> = ({ testResult }) => {
19
- const { error, parameters, groupedLabels, links, description, setup, steps, teardown, id } = testResult || {};
20
- const isNoSteps = !setup?.length && !steps.length && !teardown.length;
21
-
22
- return (
23
- <>
24
- {Boolean(error?.message) && (
25
- <div className={styles["test-result-errors"]}>
26
- <TrError {...error} />
27
- </div>
28
- )}
29
- {Boolean(parameters?.length) && <TestResultParameters parameters={parameters} />}
30
- {Boolean(groupedLabels && Object.keys(groupedLabels || {})?.length) && (
31
- <TestResultMetadata testResult={testResult} />
32
- )}
33
- {Boolean(links?.length) && <TestResultLinks links={links} />}
34
- {Boolean(description) && <TestResultDescription description={description} />}
35
- <div className={styles["test-results"]}>
36
- {isNoSteps && <TestStepsEmpty />}
37
- {Boolean(setup?.length) && <TestResultSetup id={id} setup={setup} />}
38
- {Boolean(steps?.length) && <TestResultSteps id={id} steps={steps} />}
39
- {Boolean(teardown?.length) && <TestResultTeardown id={id} teardown={teardown} />}
40
- </div>
41
- </>
42
- );
43
- };