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

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 (167) hide show
  1. package/dist/multi/173.app-52d1decd.js +1 -0
  2. package/dist/multi/174.app-52d1decd.js +1 -0
  3. package/dist/multi/252.app-52d1decd.js +1 -0
  4. package/dist/multi/282.app-52d1decd.js +1 -0
  5. package/dist/multi/29.app-52d1decd.js +1 -0
  6. package/dist/multi/416.app-52d1decd.js +1 -0
  7. package/dist/multi/527.app-52d1decd.js +1 -0
  8. package/dist/multi/600.app-52d1decd.js +1 -0
  9. package/dist/multi/605.app-52d1decd.js +1 -0
  10. package/dist/multi/638.app-52d1decd.js +1 -0
  11. package/dist/multi/672.app-52d1decd.js +1 -0
  12. package/dist/multi/686.app-52d1decd.js +1 -0
  13. package/dist/multi/725.app-52d1decd.js +1 -0
  14. package/dist/multi/741.app-52d1decd.js +1 -0
  15. package/dist/multi/755.app-52d1decd.js +1 -0
  16. package/dist/multi/894.app-52d1decd.js +1 -0
  17. package/dist/multi/943.app-52d1decd.js +1 -0
  18. package/dist/multi/980.app-52d1decd.js +1 -0
  19. package/dist/multi/app-52d1decd.js +2 -0
  20. package/dist/multi/{app-d01d0c66.js.LICENSE.txt → app-52d1decd.js.LICENSE.txt} +7 -0
  21. package/dist/multi/manifest.json +20 -20
  22. package/dist/multi/styles-52d1decd.css +41 -0
  23. package/dist/single/app-83b0c4fc.js +2 -0
  24. package/dist/single/{app-6596cb08.js.LICENSE.txt → app-83b0c4fc.js.LICENSE.txt} +7 -0
  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 -10
  35. package/src/components/HeaderControls/index.tsx +20 -0
  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 +56 -63
  44. package/src/components/ReportMetadata/MetadataWithIcon.tsx +1 -1
  45. package/src/components/ReportMetadata/index.tsx +50 -3
  46. package/src/components/SideBySide/styles.scss +2 -3
  47. package/src/components/SplitLayout/index.tsx +2 -2
  48. package/src/components/SplitLayout/styles.scss +2 -1
  49. package/src/components/TestResult/TestStepsEmpty/index.tsx +2 -2
  50. package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/index.tsx +4 -4
  51. package/src/components/TestResult/{TestResultDescription → TrDescription}/index.tsx +2 -2
  52. package/src/components/TestResult/{TestResultDropdown → TrDropdown}/index.tsx +1 -1
  53. package/src/components/TestResult/{TestResultEmpty → TrEmpty}/index.tsx +6 -6
  54. package/src/components/TestResult/TrEnvironmentItem/index.tsx +82 -0
  55. package/src/components/TestResult/TrEnvironmentItem/styles.scss +60 -0
  56. package/src/components/TestResult/TrEnvironmentsView/index.tsx +64 -0
  57. package/src/components/TestResult/TrEnvironmentsView/styles.scss +11 -0
  58. package/src/components/TestResult/TrError/TrDiff.tsx +3 -5
  59. package/src/components/TestResult/TrError/index.tsx +21 -6
  60. package/src/components/TestResult/TrError/styles.scss +92 -2
  61. package/src/components/TestResult/{TestResultHeader/TestResultBreadcrumbs.tsx → TrHeader/TrBreadcrumbs.tsx} +3 -3
  62. package/src/components/TestResult/TrHeader/index.tsx +15 -0
  63. package/src/components/TestResult/{TestResultHistory/TestResultHistoryItem.tsx → TrHistory/TrHistoryItem.tsx} +3 -3
  64. package/src/components/TestResult/{TestResultHistory → TrHistory}/index.tsx +5 -5
  65. package/src/components/TestResult/{TestResultInfo/TestResultInfoStatuses.tsx → TrInfo/TrInfoStatuses.tsx} +1 -1
  66. package/src/components/TestResult/{TestResultInfo → TrInfo}/index.tsx +37 -23
  67. package/src/components/TestResult/{TestResultLinks → TrLinks}/index.tsx +6 -6
  68. package/src/components/TestResult/{TestResultMetadata → TrMetadata}/index.tsx +4 -4
  69. package/src/components/TestResult/{TestResultNavigation → TrNavigation}/index.tsx +3 -2
  70. package/src/components/TestResult/TrOverview.tsx +47 -0
  71. package/src/components/TestResult/{TestResultParameters → TrParameters}/index.tsx +2 -2
  72. package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/index.tsx +6 -6
  73. package/src/components/TestResult/TrPwTraces/PwTrace.tsx +34 -0
  74. package/src/components/TestResult/TrPwTraces/PwTraceButton.tsx +33 -0
  75. package/src/components/TestResult/TrPwTraces/index.tsx +29 -0
  76. package/src/components/TestResult/TrPwTraces/styles.scss +20 -0
  77. package/src/components/TestResult/{TestResultRetriesView/TestResultRetriesItem.tsx → TrRetriesView/TrRetriesItem.tsx} +3 -3
  78. package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/index.tsx +4 -6
  79. package/src/components/TestResult/{TestResultSetup → TrSetup}/index.tsx +11 -11
  80. package/src/components/TestResult/{TestResultSeverity → TrSeverity}/index.tsx +1 -1
  81. package/src/components/TestResult/{TestResultStatus → TrStatus}/index.tsx +3 -2
  82. package/src/components/TestResult/{TestResultSteps/testResultAttachment.tsx → TrSteps/TrAttachment.tsx} +10 -7
  83. package/src/components/TestResult/{TestResultSteps/testResultAttachmentInfo.tsx → TrSteps/TrAttachmentInfo.tsx} +8 -8
  84. package/src/components/TestResult/{TestResultSteps/testResultStep.tsx → TrSteps/TrStep.tsx} +25 -14
  85. package/src/components/TestResult/{TestResultSteps/testResultStepInfo.tsx → TrSteps/TrStepInfo.tsx} +2 -2
  86. package/src/components/TestResult/{TestResultSteps → TrSteps}/index.tsx +8 -8
  87. package/src/components/TestResult/{TestResultSteps → TrSteps}/styles.scss +2 -1
  88. package/src/components/TestResult/{TestResultSteps → TrSteps}/wrongAttachment.tsx +1 -1
  89. package/src/components/TestResult/{TestResultTabs → TrTabs}/index.tsx +6 -6
  90. package/src/components/TestResult/{TestResultTeardown → TrTeardown}/index.tsx +11 -11
  91. package/src/components/TestResult/index.tsx +42 -30
  92. package/src/components/TestResult/styles.scss +2 -1
  93. package/src/components/Tree/index.tsx +99 -16
  94. package/src/components/Tree/styles.scss +16 -1
  95. package/src/index.tsx +36 -33
  96. package/src/{i18n/locales → locales}/az.json +14 -4
  97. package/src/{i18n/locales → locales}/de.json +13 -4
  98. package/src/{i18n/locales → locales}/en.json +15 -6
  99. package/src/{i18n/locales → locales}/es.json +13 -4
  100. package/src/{i18n/locales → locales}/fr.json +13 -4
  101. package/src/{i18n/locales → locales}/he.json +13 -4
  102. package/src/{i18n/locales/am.json → locales/hy.json} +13 -4
  103. package/src/{i18n/locales → locales}/it.json +13 -4
  104. package/src/{i18n/locales → locales}/ja.json +13 -4
  105. package/src/{i18n/locales → locales}/ka.json +16 -7
  106. package/src/{i18n/locales → locales}/kr.json +15 -6
  107. package/src/{i18n/locales → locales}/nl.json +13 -4
  108. package/src/{i18n/locales → locales}/pl.json +14 -5
  109. package/src/{i18n/locales → locales}/pt.json +12 -4
  110. package/src/{i18n/locales → locales}/ru.json +14 -5
  111. package/src/{i18n/locales → locales}/sv.json +13 -4
  112. package/src/{i18n/locales → locales}/tr.json +13 -4
  113. package/src/{i18n/locales → locales}/zh.json +13 -4
  114. package/src/stores/chart.ts +3 -3
  115. package/src/stores/env.ts +88 -0
  116. package/src/stores/locale.ts +4 -4
  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/types.d.ts +2 -1
  122. package/dist/multi/141.app-d01d0c66.js +0 -1
  123. package/dist/multi/222.app-d01d0c66.js +0 -1
  124. package/dist/multi/335.app-d01d0c66.js +0 -1
  125. package/dist/multi/34.app-d01d0c66.js +0 -1
  126. package/dist/multi/349.app-d01d0c66.js +0 -1
  127. package/dist/multi/378.app-d01d0c66.js +0 -1
  128. package/dist/multi/406.app-d01d0c66.js +0 -1
  129. package/dist/multi/476.app-d01d0c66.js +0 -1
  130. package/dist/multi/53.app-d01d0c66.js +0 -1
  131. package/dist/multi/584.app-d01d0c66.js +0 -1
  132. package/dist/multi/690.app-d01d0c66.js +0 -1
  133. package/dist/multi/747.app-d01d0c66.js +0 -1
  134. package/dist/multi/767.app-d01d0c66.js +0 -1
  135. package/dist/multi/816.app-d01d0c66.js +0 -1
  136. package/dist/multi/83.app-d01d0c66.js +0 -1
  137. package/dist/multi/873.app-d01d0c66.js +0 -1
  138. package/dist/multi/920.app-d01d0c66.js +0 -1
  139. package/dist/multi/991.app-d01d0c66.js +0 -1
  140. package/dist/multi/app-d01d0c66.js +0 -2
  141. package/dist/multi/styles-d01d0c66.css +0 -39
  142. package/dist/single/app-6596cb08.js +0 -2
  143. package/src/components/LanguagePicker/index.tsx +0 -40
  144. package/src/components/ReportLogo/index.tsx +0 -16
  145. package/src/components/ReportLogo/styles.scss +0 -20
  146. package/src/components/ReportLogoFull/index.tsx +0 -20
  147. package/src/components/ReportLogoFull/styles.scss +0 -7
  148. package/src/components/TestResult/TestResultHeader/index.tsx +0 -21
  149. package/src/components/TestResult/TestResultOverview.tsx +0 -43
  150. package/src/components/ThemeButton/ThemeButton.tsx +0 -20
  151. package/src/i18n/constants.ts +0 -124
  152. /package/src/components/TestResult/{TestResultAttachmentsView → TrAttachmentsView}/styles.scss +0 -0
  153. /package/src/components/TestResult/{TestResultDescription → TrDescription}/styles.scss +0 -0
  154. /package/src/components/TestResult/{TestResultDropdown → TrDropdown}/styles.scss +0 -0
  155. /package/src/components/TestResult/{TestResultEmpty → TrEmpty}/styles.scss +0 -0
  156. /package/src/components/TestResult/{TestResultHeader → TrHeader}/styles.scss +0 -0
  157. /package/src/components/TestResult/{TestResultHistory → TrHistory}/styles.scss +0 -0
  158. /package/src/components/TestResult/{TestResultInfo → TrInfo}/styles.scss +0 -0
  159. /package/src/components/TestResult/{TestResultLinks → TrLinks}/styles.scss +0 -0
  160. /package/src/components/TestResult/{TestResultMetadata → TrMetadata}/styles.scss +0 -0
  161. /package/src/components/TestResult/{TestResultNavigation → TrNavigation}/styles.scss +0 -0
  162. /package/src/components/TestResult/{TestResultParameters → TrParameters}/styles.scss +0 -0
  163. /package/src/components/TestResult/{TestResultPrevStatuses → TrPrevStatuses}/styles.scss +0 -0
  164. /package/src/components/TestResult/{TestResultRetriesView → TrRetriesView}/styles.scss +0 -0
  165. /package/src/components/TestResult/{TestResultSeverity → TrSeverity}/styles.scss +0 -0
  166. /package/src/components/TestResult/{TestResultStatus → TrStatus}/styles.scss +0 -0
  167. /package/src/components/TestResult/{TestResultTabs → TrTabs}/styles.scss +0 -0
@@ -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,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,21 +0,0 @@
1
- import type { FunctionalComponent } from "preact";
2
- import { LanguagePicker } from "@/components/LanguagePicker";
3
- import type { TestResultProps } from "@/components/TestResult";
4
- import { TestResultBreadcrumbs } from "@/components/TestResult/TestResultHeader/TestResultBreadcrumbs";
5
- import { ThemeButton } from "@/components/ThemeButton/ThemeButton";
6
- import ToggleLayout from "@/components/ToggleLayout";
7
- import { isSplitMode } from "@/stores/layout";
8
- import * as styles from "./styles.scss";
9
-
10
- export const TestResultHeader: FunctionalComponent<TestResultProps> = ({ testResult }) => {
11
- return (
12
- <div className={styles.above}>
13
- {!isSplitMode.value ? <TestResultBreadcrumbs testResult={testResult} /> : ""}
14
- <div className={styles.right}>
15
- <LanguagePicker />
16
- <ToggleLayout />
17
- <ThemeButton />
18
- </div>
19
- </div>
20
- );
21
- };
@@ -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
- };
@@ -1,20 +0,0 @@
1
- import { IconButton, allureIcons } from "@allurereport/web-components";
2
- import { useEffect } from "preact/hooks";
3
- import { getTheme, themeStore, toggleTheme } from "@/stores/theme";
4
-
5
- export const ThemeButton = () => {
6
- const theme = themeStore.value;
7
-
8
- useEffect(() => {
9
- getTheme();
10
- }, []);
11
-
12
- return (
13
- <IconButton
14
- onClick={toggleTheme}
15
- style="ghost"
16
- icon={theme === "light" ? allureIcons.lineShapesMoon : allureIcons.lineShapesSun}
17
- size="s"
18
- />
19
- );
20
- };
@@ -1,124 +0,0 @@
1
- export const AVAILABLE_LOCALES = [
2
- "en",
3
- "ru",
4
- "pl",
5
- "es",
6
- "pt",
7
- "de",
8
- "am",
9
- "az",
10
- "fr",
11
- "it",
12
- "ja",
13
- "he",
14
- "ka",
15
- "kr",
16
- "nl",
17
- "sv",
18
- "tr",
19
- "zh",
20
- ] as const;
21
-
22
- export const DEFAULT_LOCALE = "en";
23
-
24
- export type LangLocale = (typeof AVAILABLE_LOCALES)[number];
25
-
26
- export const LANG_LOCALE: Record<
27
- LangLocale,
28
- {
29
- short: string;
30
- full: string;
31
- iso: string;
32
- }
33
- > = {
34
- en: {
35
- short: "Eng",
36
- full: "English",
37
- iso: "en-US",
38
- },
39
- ru: {
40
- short: "Ру",
41
- full: "Русский",
42
- iso: "ru-RU",
43
- },
44
- pl: {
45
- short: "Pl",
46
- full: "Polski",
47
- iso: "pl-PL",
48
- },
49
- es: {
50
- short: "Es",
51
- full: "Español",
52
- iso: "es-ES",
53
- },
54
- pt: {
55
- short: "Pt",
56
- full: "Português",
57
- iso: "pt-PT",
58
- },
59
- de: {
60
- short: "De",
61
- full: "Deutsch",
62
- iso: "de-DE",
63
- },
64
- am: {
65
- short: "Am",
66
- full: "Հայերեն",
67
- iso: "hy-AM",
68
- },
69
- az: {
70
- short: "Az",
71
- full: "Azərbaycan",
72
- iso: "az-AZ",
73
- },
74
- fr: {
75
- short: "Fr",
76
- full: "Français",
77
- iso: "fr-FR",
78
- },
79
- it: {
80
- short: "It",
81
- full: "Italiano",
82
- iso: "it-IT",
83
- },
84
- ja: {
85
- short: "Ja",
86
- full: "日本語",
87
- iso: "ja-JP",
88
- },
89
- he: {
90
- short: "He",
91
- full: "עברית",
92
- iso: "he-IL",
93
- },
94
- ka: {
95
- short: "Ka",
96
- full: "ქართული",
97
- iso: "ka-GE",
98
- },
99
- kr: {
100
- short: "Kr",
101
- full: "한국어",
102
- iso: "kr-KR",
103
- },
104
- nl: {
105
- short: "Nl",
106
- full: "Nederlands",
107
- iso: "nl-NL",
108
- },
109
- sv: {
110
- short: "Sv",
111
- full: "Svenska",
112
- iso: "sv-SE",
113
- },
114
- tr: {
115
- short: "Tr",
116
- full: "Türkçe",
117
- iso: "tr-TR",
118
- },
119
- zh: {
120
- short: "Zh",
121
- full: "中文",
122
- iso: "zh-CN",
123
- },
124
- };