@allurereport/web-awesome 3.0.0-beta.16 → 3.0.0-beta.18

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 (113) hide show
  1. package/dist/multi/173.app-b58a8b2733d390b78773.js +1 -0
  2. package/dist/multi/174.app-b58a8b2733d390b78773.js +1 -0
  3. package/dist/multi/252.app-b58a8b2733d390b78773.js +1 -0
  4. package/dist/multi/282.app-b58a8b2733d390b78773.js +1 -0
  5. package/dist/multi/29.app-b58a8b2733d390b78773.js +1 -0
  6. package/dist/multi/416.app-b58a8b2733d390b78773.js +1 -0
  7. package/dist/multi/527.app-b58a8b2733d390b78773.js +1 -0
  8. package/dist/multi/600.app-b58a8b2733d390b78773.js +1 -0
  9. package/dist/multi/605.app-b58a8b2733d390b78773.js +1 -0
  10. package/dist/multi/638.app-b58a8b2733d390b78773.js +1 -0
  11. package/dist/multi/672.app-b58a8b2733d390b78773.js +1 -0
  12. package/dist/multi/686.app-b58a8b2733d390b78773.js +1 -0
  13. package/dist/multi/725.app-b58a8b2733d390b78773.js +1 -0
  14. package/dist/multi/741.app-b58a8b2733d390b78773.js +1 -0
  15. package/dist/multi/755.app-b58a8b2733d390b78773.js +1 -0
  16. package/dist/multi/894.app-b58a8b2733d390b78773.js +1 -0
  17. package/dist/multi/943.app-b58a8b2733d390b78773.js +1 -0
  18. package/dist/multi/980.app-b58a8b2733d390b78773.js +1 -0
  19. package/dist/multi/app-b58a8b2733d390b78773.js +2 -0
  20. package/dist/multi/app-b58a8b2733d390b78773.js.LICENSE.txt +8 -0
  21. package/dist/multi/manifest.json +20 -20
  22. package/dist/multi/styles-3610e3d9923b6a2a1c67.css +46 -0
  23. package/dist/single/app-51defb8852956a2ff6f1.js +2 -0
  24. package/dist/single/app-51defb8852956a2ff6f1.js.LICENSE.txt +8 -0
  25. package/dist/single/manifest.json +1 -1
  26. package/package.json +17 -10
  27. package/src/components/Charts/index.tsx +12 -3
  28. package/src/components/Header/CiInfo/index.tsx +51 -0
  29. package/src/components/Header/CiInfo/styles.scss +7 -0
  30. package/src/components/Header/index.tsx +6 -1
  31. package/src/components/MainReport/index.tsx +65 -2
  32. package/src/components/MainReport/styles.scss +8 -0
  33. package/src/components/NavTabs/index.tsx +70 -0
  34. package/src/components/ReportBody/Filters.tsx +1 -1
  35. package/src/components/ReportBody/index.tsx +1 -1
  36. package/src/components/ReportBody/styles.scss +2 -2
  37. package/src/components/ReportGlobalAttachments/index.tsx +34 -0
  38. package/src/components/ReportGlobalAttachments/styles.scss +11 -0
  39. package/src/components/ReportGlobalErrors/index.tsx +30 -0
  40. package/src/components/ReportGlobalErrors/styles.scss +12 -0
  41. package/src/components/ReportHeader/index.tsx +28 -10
  42. package/src/components/ReportHeader/styles.scss +7 -1
  43. package/src/components/ReportMetadata/MetadataSummary.tsx +1 -1
  44. package/src/components/ReportMetadata/styles.scss +0 -2
  45. package/src/components/TestResult/TrAttachmentsView/index.tsx +5 -3
  46. package/src/components/TestResult/TrInfo/TrInfoStatuses.tsx +1 -1
  47. package/src/components/TestResult/TrPrevStatuses/index.tsx +1 -2
  48. package/src/components/TestResult/TrRetriesView/TrRetriesItem.tsx +24 -6
  49. package/src/components/TestResult/TrRetriesView/index.tsx +8 -1
  50. package/src/components/TestResult/TrSeverity/index.tsx +1 -1
  51. package/src/components/TestResult/TrStatus/index.tsx +1 -1
  52. package/src/components/TestResult/TrSteps/TrStepInfo.tsx +4 -4
  53. package/src/components/TestResult/TrSteps/styles.scss +10 -1
  54. package/src/components/TestResult/TrTabs/index.tsx +19 -57
  55. package/src/components/TestResult/index.tsx +0 -1
  56. package/src/components/Tree/index.tsx +1 -3
  57. package/src/index.html +14 -1
  58. package/src/index.tsx +9 -1
  59. package/src/locales/az.json +9 -8
  60. package/src/locales/de.json +9 -8
  61. package/src/locales/en.json +9 -8
  62. package/src/locales/es.json +9 -8
  63. package/src/locales/fr.json +9 -8
  64. package/src/locales/he.json +9 -8
  65. package/src/locales/hy.json +9 -8
  66. package/src/locales/it.json +9 -8
  67. package/src/locales/ja.json +9 -8
  68. package/src/locales/ka.json +9 -8
  69. package/src/locales/kr.json +9 -8
  70. package/src/locales/nl.json +9 -8
  71. package/src/locales/pl.json +9 -8
  72. package/src/locales/pt.json +9 -8
  73. package/src/locales/ru.json +9 -8
  74. package/src/locales/sv.json +9 -8
  75. package/src/locales/tr.json +9 -8
  76. package/src/locales/zh.json +9 -8
  77. package/src/stores/chart.ts +7 -7
  78. package/src/stores/globals.ts +28 -0
  79. package/src/stores/locale.ts +0 -1
  80. package/src/utils/tree.ts +0 -2
  81. package/test/components/Header/CiInfo.test.tsx +151 -0
  82. package/test/components/Header.test.tsx +127 -0
  83. package/tsconfig.json +6 -1
  84. package/tsconfig.node.json +8 -0
  85. package/types.d.ts +2 -1
  86. package/vitest.config.ts +30 -3
  87. package/vitest.setup.ts +1 -0
  88. package/dist/multi/173.app-1e7b32b35927de455ae2.js +0 -1
  89. package/dist/multi/174.app-1e7b32b35927de455ae2.js +0 -1
  90. package/dist/multi/252.app-1e7b32b35927de455ae2.js +0 -1
  91. package/dist/multi/282.app-1e7b32b35927de455ae2.js +0 -1
  92. package/dist/multi/29.app-1e7b32b35927de455ae2.js +0 -1
  93. package/dist/multi/416.app-1e7b32b35927de455ae2.js +0 -1
  94. package/dist/multi/527.app-1e7b32b35927de455ae2.js +0 -1
  95. package/dist/multi/600.app-1e7b32b35927de455ae2.js +0 -1
  96. package/dist/multi/605.app-1e7b32b35927de455ae2.js +0 -1
  97. package/dist/multi/638.app-1e7b32b35927de455ae2.js +0 -1
  98. package/dist/multi/672.app-1e7b32b35927de455ae2.js +0 -1
  99. package/dist/multi/686.app-1e7b32b35927de455ae2.js +0 -1
  100. package/dist/multi/725.app-1e7b32b35927de455ae2.js +0 -1
  101. package/dist/multi/741.app-1e7b32b35927de455ae2.js +0 -1
  102. package/dist/multi/755.app-1e7b32b35927de455ae2.js +0 -1
  103. package/dist/multi/894.app-1e7b32b35927de455ae2.js +0 -1
  104. package/dist/multi/943.app-1e7b32b35927de455ae2.js +0 -1
  105. package/dist/multi/980.app-1e7b32b35927de455ae2.js +0 -1
  106. package/dist/multi/app-1e7b32b35927de455ae2.js +0 -2
  107. package/dist/multi/app-1e7b32b35927de455ae2.js.LICENSE.txt +0 -23
  108. package/dist/multi/styles-99f5e45d3e35c8c13cd6.css +0 -43
  109. package/dist/single/app-b4be944c6ebe4a83f366.js +0 -2
  110. package/dist/single/app-b4be944c6ebe4a83f366.js.LICENSE.txt +0 -23
  111. package/src/utils/capitalize.ts +0 -6
  112. package/src/utils/charts.ts +0 -167
  113. /package/src/components/{TestResult/TrTabs → NavTabs}/styles.scss +0 -0
@@ -17,7 +17,10 @@
17
17
  "new": "Nuovi test"
18
18
  },
19
19
  "tabs": {
20
- "total": "Tutti"
20
+ "total": "Tutti",
21
+ "results": "Risultati",
22
+ "globalAttachments": "Allegati Globali",
23
+ "globalErrors": "Errori Globali"
21
24
  },
22
25
  "search": {
23
26
  "search": "Cerca",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Nessun messaggio fornito",
77
80
  "clear-filters": "Cancella filtri",
78
81
  "no-attachments-results": "Nessuna informazione sugli allegati disponibile",
82
+ "no-global-errors-results": "Nessuna informazione sugli errori globali disponibile",
79
83
  "no-history-results": "Nessuna informazione sulla cronologia disponibile",
80
84
  "no-retries-results": "Nessuna informazione sui ritentativi disponibile",
81
85
  "no-test-steps-results": "Nessuna informazione disponibile sui passaggi del test",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Mostra meno",
117
121
  "showMore": "Mostra di più",
118
122
  "copy": "Copia",
123
+ "attempt": "Tentativo {{attempt}} di {{total}}",
119
124
  "at": "a",
120
125
  "variables": "Variabili",
121
- "openPwTrace": "Apri Playwright Trace"
126
+ "openPwTrace": "Apri Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, con codice di uscita {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, con codice di uscita {{actual}} (originale {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Apri in una nuova scheda",
@@ -167,12 +174,6 @@
167
174
  "title": "Tasso di successo dei test"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Nuovo",
172
- "fixed": "Corretto",
173
- "regressed": "Regredito",
174
- "malfunctioned": "Danneggiato"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Prima apparizione di questo risultato del test nel report",
178
179
  "fixed": "Test precedentemente \"fallito\" o \"danneggiato\" che ora è \"superato\"",
@@ -17,7 +17,10 @@
17
17
  "new": "新しいテスト"
18
18
  },
19
19
  "tabs": {
20
- "total": "すべて"
20
+ "total": "すべて",
21
+ "results": "結果",
22
+ "globalAttachments": "グローバル添付ファイル",
23
+ "globalErrors": "グローバルエラー"
21
24
  },
22
25
  "search": {
23
26
  "search": "検索",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "メッセージが提供されていません",
77
80
  "clear-filters": "フィルターをクリア",
78
81
  "no-attachments-results": "添付ファイル情報が利用できません",
82
+ "no-global-errors-results": "グローバルエラー情報が利用できません",
79
83
  "no-history-results": "履歴情報が利用できません",
80
84
  "no-retries-results": "再試行情報が利用できません",
81
85
  "no-test-steps-results": "テスト手順の情報は利用できません",
@@ -116,9 +120,12 @@
116
120
  "showLess": "表示を減らす",
117
121
  "showMore": "もっと見る",
118
122
  "copy": "コピー",
123
+ "attempt": "試行 {{attempt}} 回目(全 {{total}} 回)",
119
124
  "at": "時",
120
125
  "variables": "変数",
121
- "openPwTrace": "Playwright Trace を開く"
126
+ "openPwTrace": "Playwright Traceを開く",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}、終了コード{{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}、終了コード{{actual}}(元{{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "新しいタブで開く",
@@ -167,12 +174,6 @@
167
174
  "title": "テスト成功率"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "新規",
172
- "fixed": "修正済み",
173
- "regressed": "退行",
174
- "malfunctioned": "破損"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "このテスト結果がレポートに初めて表示される",
178
179
  "fixed": "以前「失敗」または「破損」だったテストが「成功」になった",
@@ -17,7 +17,10 @@
17
17
  "new": "ახალი ტესტები"
18
18
  },
19
19
  "tabs": {
20
- "total": "ყველა"
20
+ "total": "ყველა",
21
+ "results": "შედეგები",
22
+ "globalAttachments": "გლობალური დანართები",
23
+ "globalErrors": "გლობალური შეცდომები"
21
24
  },
22
25
  "search": {
23
26
  "search": "ძებნა",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "შეტყობინება არ არის მოწოდებული",
77
80
  "clear-filters": "ფილტრების გასუფთავება",
78
81
  "no-attachments-results": "დანართების ინფორმაცია არ არის ხელმისაწვდომი",
82
+ "no-global-errors-results": "გლობალური შეცდომების ინფორმაცია არ არის ხელმისაწვდომი",
79
83
  "no-history-results": "ისტორიის ინფორმაცია არ არის ხელმისაწვდომი",
80
84
  "no-retries-results": "ხელახალი ცდების ინფორმაცია არ არის ხელმისაწვდომი",
81
85
  "no-test-steps-results": "ტესტის ნაბიჯების ინფორმაცია ხელმისაწვდომი არ არის",
@@ -116,9 +120,12 @@
116
120
  "showLess": "ნაკლების ჩვენება",
117
121
  "showMore": "მეტის ჩვენება",
118
122
  "copy": "კოპირება",
123
+ "attempt": "მცდელობა {{attempt}} {{total}}-დან",
119
124
  "at": "ზე",
120
125
  "variables": "ცვლადები",
121
- "openPwTrace": "გახსენი Playwright Trace"
126
+ "openPwTrace": "გახსენი Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, გამოსვლის კოდით {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, გამოსვლის კოდით {{actual}} (თავდაპირველი {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "დანართის გახსნა ახალ ჩანართში",
@@ -167,12 +174,6 @@
167
174
  "title": "ტესტების წარმატების მაჩვენებელი"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "ახალი",
172
- "fixed": "გასწორებული",
173
- "regressed": "რეგრესია",
174
- "malfunctioned": "დაზიანებული"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "ამ ტესტის შედეგის პირველი გამოჩენა ანგარიშში",
178
179
  "fixed": "ადრე \"წარუმატებელი\" ან \"დამტვრეული\" ტესტი, რომელიც ახლა \"წარმატებული\"ა",
@@ -17,7 +17,10 @@
17
17
  "new": "새로운 테스트들"
18
18
  },
19
19
  "tabs": {
20
- "total": "전체"
20
+ "total": "전체",
21
+ "results": "결과",
22
+ "globalAttachments": "글로벌 첨부파일",
23
+ "globalErrors": "글로벌 오류"
21
24
  },
22
25
  "search": {
23
26
  "search": "검색",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "메시지가 제공되지 않음",
77
80
  "clear-filters": "필터 지우기",
78
81
  "no-attachments-results": "첨부파일 정보를 사용할 수 없습니다",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "기록 정보를 사용할 수 없습니다",
80
84
  "no-retries-results": "재시도 정보를 사용할 수 없습니다",
81
85
  "no-test-steps-results": "테스트 단계 정보가 없습니다",
@@ -116,9 +120,12 @@
116
120
  "showLess": "덜 보기",
117
121
  "showMore": "더 보기",
118
122
  "copy": "복사",
123
+ "attempt": "시도 {{attempt}}/{{total}}",
119
124
  "at": "에서",
120
125
  "variables": "변수",
121
- "openPwTrace": "Playwright Trace 열기"
126
+ "openPwTrace": "Playwright Trace 열기",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, 종료 코드 {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, 종료 코드 {{actual}} (원본 {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "첨부파일을 새 탭에서 열기",
@@ -167,12 +174,6 @@
167
174
  "title": "테스트 성공률"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "새로운",
172
- "fixed": "수정됨",
173
- "regressed": "퇴행",
174
- "malfunctioned": "고장"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "이 테스트 결과가 보고서에 처음 나타남",
178
179
  "fixed": "이전에 \"실패\" 또는 \"손상됨\"이었던 테스트가 이제 \"통과\"됨",
@@ -17,7 +17,10 @@
17
17
  "new": "Nieuwe tests"
18
18
  },
19
19
  "tabs": {
20
- "total": "Alle"
20
+ "total": "Alle",
21
+ "results": "Resultaten",
22
+ "globalAttachments": "Globale Bijlagen",
23
+ "globalErrors": "Globale Fouten"
21
24
  },
22
25
  "search": {
23
26
  "search": "Zoeken",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Geen bericht opgegeven",
77
80
  "clear-filters": "Filters wissen",
78
81
  "no-attachments-results": "Geen bijlageninformatie beschikbaar",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "Geen geschiedenisinformatie beschikbaar",
80
84
  "no-retries-results": "Geen herhalingsinformatie beschikbaar",
81
85
  "no-test-steps-results": "Geen informatie over teststappen beschikbaar",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Minder weergeven",
117
121
  "showMore": "Meer weergeven",
118
122
  "copy": "Kopiëren",
123
+ "attempt": "Poging {{attempt}} van {{total}}",
119
124
  "at": "om",
120
125
  "variables": "Variabelen",
121
- "openPwTrace": "Playwright Trace openen"
126
+ "openPwTrace": "Open Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, met exitcode {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, met exitcode {{actual}} (oorspronkelijk {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Bijlage openen in nieuw tabblad",
@@ -167,12 +174,6 @@
167
174
  "title": "Test slagingspercentage"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Nieuw",
172
- "fixed": "Opgelost",
173
- "regressed": "Teruggevallen",
174
- "malfunctioned": "Defect"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Eerste keer dat dit testresultaat in het rapport verschijnt",
178
179
  "fixed": "Eerder \"mislukt\" of \"gebroken\" test die nu \"geslaagd\" is",
@@ -17,7 +17,10 @@
17
17
  "new": "Nowe testy"
18
18
  },
19
19
  "tabs": {
20
- "total": "Wszytkie"
20
+ "total": "Wszytkie",
21
+ "results": "Wyniki",
22
+ "globalAttachments": "Globalne Załączniki",
23
+ "globalErrors": "Globalne Błędy"
21
24
  },
22
25
  "search": {
23
26
  "search": "Poszukiwanie",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Nie podano komunikatu",
77
80
  "clear-filters": "Wyczyść filtry",
78
81
  "no-attachments-results": "Brak dostępnych informacji o załącznikach",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "Brak dostępnych informacji o historii",
80
84
  "no-retries-results": "Brak dostępnych informacji o ponownych próbach",
81
85
  "no-test-steps-results": "Brak dostępnych informacji o krokach testowych",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Pokaż mniej",
117
121
  "showMore": "Pokaż więcej",
118
122
  "copy": "Skopuj",
123
+ "attempt": "Próba {{attempt}} z {{total}}",
119
124
  "at": "w",
120
125
  "variables": "Zmienne",
121
- "openPwTrace": "Otwórz Playwright Trace"
126
+ "openPwTrace": "Otwórz Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, z kodem wyjścia {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, z kodem wyjścia {{actual}} (oryginalny {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Otwórz w nowej zakładce",
@@ -167,12 +174,6 @@
167
174
  "title": "Wskaźnik powodzenia testów"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Nowy",
172
- "fixed": "Naprawiony",
173
- "regressed": "Zaregresowany",
174
- "malfunctioned": "Uszkodzony"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Pierwsze wystąpienie tego wyniku testu w raporcie",
178
179
  "fixed": "Wcześniej \"nieudany\" lub \"uszkodzony\" test, który teraz jest \"udany\"",
@@ -17,7 +17,10 @@
17
17
  "new": "Testes novos"
18
18
  },
19
19
  "tabs": {
20
- "total": "Tudo"
20
+ "total": "Tudo",
21
+ "results": "Resultados",
22
+ "globalAttachments": "Anexos Globais",
23
+ "globalErrors": "Erros Globais"
21
24
  },
22
25
  "search": {
23
26
  "search": "Pesquisar",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Nenhuma mensagem fornecida",
77
80
  "clear-filters": "Limpar filtros",
78
81
  "no-attachments-results": "Nenhuma informação de anexos disponível",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "Nenhuma informação de histórico disponível",
80
84
  "no-retries-results": "Nenhuma informação de repetições disponível",
81
85
  "no-test-steps-results": "Nenhuma informação disponível sobre as etapas do teste",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Mostrar menos",
117
121
  "showMore": "Mostrar mais",
118
122
  "copy": "Copiar",
123
+ "attempt": "Tentativa {{attempt}} de {{total}}",
119
124
  "at": "em",
120
125
  "variables": "Variáveis",
121
- "openPwTrace": "Abrir Playwright Trace"
126
+ "openPwTrace": "Abrir Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, com código de saída {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, com código de saída {{actual}} (original {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Abrir anexo em nova aba",
@@ -167,12 +174,6 @@
167
174
  "title": "Taxa de sucesso dos testes"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Novo",
172
- "fixed": "Corrigido",
173
- "regressed": "Regredido",
174
- "malfunctioned": "Defeituoso"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Primeira ocorrência deste resultado de teste no relatório",
178
179
  "fixed": "Teste anteriormente \"falhou\" ou \"quebrado\" que agora está \"aprovado\"",
@@ -17,7 +17,10 @@
17
17
  "new": "Новые тесты"
18
18
  },
19
19
  "tabs": {
20
- "total": "Все"
20
+ "total": "Все",
21
+ "results": "Результаты",
22
+ "globalAttachments": "Глобальные вложения",
23
+ "globalErrors": "Глобальные ошибки"
21
24
  },
22
25
  "search": {
23
26
  "search": "Поиск",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Сообщение не предоставлено",
77
80
  "clear-filters": "Очистить фильтры",
78
81
  "no-attachments-results": "Информация о вложениях отсутствует",
82
+ "no-global-errors-results": "Информация о глобальных ошибках отсутствует",
79
83
  "no-history-results": "Информация об истории отсутствует",
80
84
  "no-retries-results": "Информация о перезапусках отсутствует",
81
85
  "no-test-steps-results": "Нет информации о шагах тестирования",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Показать меньше",
117
121
  "showMore": "Показать больше",
118
122
  "copy": "Скопировать",
123
+ "attempt": "Попытка {{attempt}} из {{total}}",
119
124
  "at": "в",
120
125
  "variables": "Переменные",
121
- "openPwTrace": "Открыть Playwright Trace"
126
+ "openPwTrace": "Открыть Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, с кодом выхода {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, с кодом выхода {{actual}} (первоначальный {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Открыть в новой вкладке",
@@ -167,12 +174,6 @@
167
174
  "title": "Успешность тестирования"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Новый",
172
- "fixed": "Исправленный",
173
- "regressed": "Регрессированный",
174
- "malfunctioned": "Сломанный"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Первое появление этого результата теста в отчёте",
178
179
  "fixed": "Ранее \"неуспешный\" или \"сломанный\" тест, который теперь \"успешный\"",
@@ -17,7 +17,10 @@
17
17
  "new": "Nya tester"
18
18
  },
19
19
  "tabs": {
20
- "total": "Alla"
20
+ "total": "Alla",
21
+ "results": "Resultat",
22
+ "globalAttachments": "Globala Bilagor",
23
+ "globalErrors": "Globala Fel"
21
24
  },
22
25
  "search": {
23
26
  "search": "Sök",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Inget meddelande angavs",
77
80
  "clear-filters": "Rensa filter",
78
81
  "no-attachments-results": "Ingen bilaga information tillgänglig",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "Ingen historik information tillgänglig",
80
84
  "no-retries-results": "Ingen omtagningar information tillgänglig",
81
85
  "no-test-steps-results": "Ingen information om teststeg tillgänglig",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Visa mindre",
117
121
  "showMore": "Visa mer",
118
122
  "copy": "Kopiera",
123
+ "attempt": "Försök {{attempt}} av {{total}}",
119
124
  "at": "vid",
120
125
  "variables": "Variabler",
121
- "openPwTrace": "Öppna Playwright Trace"
126
+ "openPwTrace": "Öppna Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, med avslutningskod {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, med avslutningskod {{actual}} (ursprunglig {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Öppna bilaga i ny flik",
@@ -167,12 +174,6 @@
167
174
  "title": "Testframgångsfrekvens"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Ny",
172
- "fixed": "Åtgärdad",
173
- "regressed": "Regresserad",
174
- "malfunctioned": "Felaktig"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Första förekomsten av detta testresultat i rapporten",
178
179
  "fixed": "Tidigare \"misslyckad\" eller \"trasig\" test som nu är \"godkänd\"",
@@ -17,7 +17,10 @@
17
17
  "new": "Yeni Testler"
18
18
  },
19
19
  "tabs": {
20
- "total": "Tümü"
20
+ "total": "Tümü",
21
+ "results": "Sonuçlar",
22
+ "globalAttachments": "Global Ekler",
23
+ "globalErrors": "Global Hatalar"
21
24
  },
22
25
  "search": {
23
26
  "search": "Ara",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "Mesaj belirtilmedi",
77
80
  "clear-filters": "Filtreleri temizle",
78
81
  "no-attachments-results": "Ek bilgisi mevcut değil",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "Geçmiş bilgisi mevcut değil",
80
84
  "no-retries-results": "Tekrar deneme bilgisi mevcut değil",
81
85
  "no-test-steps-results": "Test adımları hakkında bilgi mevcut değil",
@@ -116,9 +120,12 @@
116
120
  "showLess": "Daha az göster",
117
121
  "showMore": "Daha fazla göster",
118
122
  "copy": "Kopyala",
123
+ "attempt": "Deneme {{attempt}} / {{total}}",
119
124
  "at": "tarihinde",
120
125
  "variables": "Değişkenler",
121
- "openPwTrace": "Playwright Trace'i "
126
+ "openPwTrace": "Playwright Trace ",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}}, çıkış kodu {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}}, çıkış kodu {{actual}} (orijinal {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "Eki yeni sekmede aç",
@@ -167,12 +174,6 @@
167
174
  "title": "Test Başarı Oranı"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "Yeni",
172
- "fixed": "Düzeltildi",
173
- "regressed": "Geri Döndü",
174
- "malfunctioned": "Bozuk"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "Bu test sonucunun rapordaki ilk görünümü",
178
179
  "fixed": "Daha önce \"başarısız\" veya \"bozuk\" olan test artık \"başarılı\"",
@@ -17,7 +17,10 @@
17
17
  "new": "新的测试"
18
18
  },
19
19
  "tabs": {
20
- "total": "所有"
20
+ "total": "所有",
21
+ "results": "结果",
22
+ "globalAttachments": "全局附件",
23
+ "globalErrors": "全局错误"
21
24
  },
22
25
  "search": {
23
26
  "search": "搜索",
@@ -76,6 +79,7 @@
76
79
  "no-message-provided": "未提供消息",
77
80
  "clear-filters": "清除过滤器",
78
81
  "no-attachments-results": "没有附件信息",
82
+ "no-global-errors-results": "No global errors information available",
79
83
  "no-history-results": "没有历史信息",
80
84
  "no-retries-results": "没有重试信息",
81
85
  "no-test-steps-results": "没有可用的测试步骤信息",
@@ -116,9 +120,12 @@
116
120
  "showLess": "显示更少",
117
121
  "showMore": "显示更多",
118
122
  "copy": "复制",
123
+ "attempt": "第 {{attempt}} 次尝试,共 {{total}} 次",
119
124
  "at": "在",
120
125
  "variables": "变量",
121
- "openPwTrace": "打开 Playwright Trace"
126
+ "openPwTrace": "打开 Playwright Trace",
127
+ "finishedAtOriginal": "{{formattedCreatedAt}},退出代码 {{original}}",
128
+ "finishedAtBoth": "{{formattedCreatedAt}},退出代码 {{actual}}(原始 {{original}})"
122
129
  },
123
130
  "controls": {
124
131
  "newTabAttachment": "在新标签页中打开附件",
@@ -167,12 +174,6 @@
167
174
  "title": "测试成功率"
168
175
  }
169
176
  },
170
- "transitions": {
171
- "new": "新的",
172
- "fixed": "已修复",
173
- "regressed": "已回归",
174
- "malfunctioned": "已损坏"
175
- },
176
177
  "transitions.description": {
177
178
  "new": "此测试结果在报告中的首次出现",
178
179
  "fixed": "之前\"失败\"或\"损坏\"的测试现在\"通过\"了",
@@ -1,10 +1,10 @@
1
- import { fetchReportJsonData } from "@allurereport/web-commons";
1
+ import { type PieChartValues, type Statistic, getPieChartValues } from "@allurereport/core-api";
2
+ import { createCharts, fetchReportJsonData } from "@allurereport/web-commons";
3
+ import type { ChartsResponse, UIChartsData } from "@allurereport/web-commons";
2
4
  import { signal } from "@preact/signals";
3
5
  import type { StoreSignalState } from "@/stores/types";
4
- import type { ChartsData, ChartsResponse } from "@/utils/charts";
5
- import { createCharts } from "@/utils/charts";
6
6
 
7
- export const pieChartStore = signal<StoreSignalState<any>>({
7
+ export const pieChartStore = signal<StoreSignalState<PieChartValues>>({
8
8
  loading: true,
9
9
  error: undefined,
10
10
  data: undefined,
@@ -18,12 +18,12 @@ export const fetchPieChartData = async (env: string) => {
18
18
  };
19
19
 
20
20
  try {
21
- const res = await fetchReportJsonData(env ? `widgets/${env}/pie_chart.json` : "widgets/pie_chart.json", {
21
+ const res = await fetchReportJsonData<Statistic>(env ? `widgets/${env}/statistic.json` : "widgets/statistic.json", {
22
22
  bustCache: true,
23
23
  });
24
24
 
25
25
  pieChartStore.value = {
26
- data: res,
26
+ data: getPieChartValues(res),
27
27
  error: undefined,
28
28
  loading: false,
29
29
  };
@@ -35,7 +35,7 @@ export const fetchPieChartData = async (env: string) => {
35
35
  }
36
36
  };
37
37
 
38
- export const chartsStore = signal<StoreSignalState<ChartsData>>({
38
+ export const chartsStore = signal<StoreSignalState<UIChartsData>>({
39
39
  loading: true,
40
40
  error: undefined,
41
41
  data: undefined,
@@ -0,0 +1,28 @@
1
+ import { type PluginGlobals } from "@allurereport/plugin-api";
2
+ import { fetchReportJsonData } from "@allurereport/web-commons";
3
+ import { signal } from "@preact/signals";
4
+ import { type StoreSignalState } from "./types";
5
+
6
+ export const globalsStore = signal<StoreSignalState<PluginGlobals>>({
7
+ loading: true,
8
+ error: undefined,
9
+ data: undefined,
10
+ });
11
+
12
+ export const fetchGlobals = async () => {
13
+ try {
14
+ const data = await fetchReportJsonData<PluginGlobals>("widgets/globals.json");
15
+
16
+ globalsStore.value = {
17
+ data,
18
+ error: undefined,
19
+ loading: false,
20
+ };
21
+ } catch (err) {
22
+ globalsStore.value = {
23
+ ...globalsStore.value,
24
+ error: err.message,
25
+ loading: false,
26
+ };
27
+ }
28
+ };
@@ -25,7 +25,6 @@ const namespaces = [
25
25
  "environments",
26
26
  "charts",
27
27
  "sections",
28
- "transitions",
29
28
  "transitions.description",
30
29
  ];
31
30
 
package/src/utils/tree.ts CHANGED
@@ -4,7 +4,6 @@ import type { AwesomeTreeLeaf } from "types";
4
4
  type Localizer = (data: string) => string;
5
5
 
6
6
  type Localizers = {
7
- value: Localizer;
8
7
  tooltip: Localizer;
9
8
  };
10
9
 
@@ -12,7 +11,6 @@ export const createLeafLocalizer =
12
11
  (t: Localizers) =>
13
12
  (leaf: AwesomeTreeLeaf): AwesomeTreeLeaf => ({
14
13
  ...leaf,
15
- transitionText: t.value(leaf.transition),
16
14
  transitionTooltip: t.tooltip(leaf.transition),
17
15
  });
18
16