pulse-dashboard 1.2.6 → 1.2.8

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 (278) hide show
  1. package/.next/BUILD_ID +1 -1
  2. package/.next/build-manifest.json +10 -9
  3. package/.next/fallback-build-manifest.json +3 -2
  4. package/.next/images-manifest.json +2 -0
  5. package/.next/next-minimal-server.js.nft.json +1 -1
  6. package/.next/next-server.js.nft.json +1 -1
  7. package/.next/prerender-manifest.json +13 -13
  8. package/.next/required-server-files.json +209 -40
  9. package/.next/routes-manifest.json +1 -0
  10. package/.next/server/app/_global-error/page/build-manifest.json +7 -7
  11. package/.next/server/app/_global-error/page.js +8 -9
  12. package/.next/server/app/_global-error/page.js.nft.json +1 -1
  13. package/.next/server/app/_global-error/page_client-reference-manifest.js +2 -1
  14. package/.next/server/app/_global-error.html +1 -2
  15. package/.next/server/app/_global-error.rsc +11 -9
  16. package/.next/server/app/_global-error.segments/__PAGE__.segment.rsc +2 -2
  17. package/.next/server/app/_global-error.segments/_full.segment.rsc +11 -9
  18. package/.next/server/app/_global-error.segments/_head.segment.rsc +3 -3
  19. package/.next/server/app/_global-error.segments/_index.segment.rsc +4 -3
  20. package/.next/server/app/_global-error.segments/_tree.segment.rsc +1 -1
  21. package/.next/server/app/_not-found/page/build-manifest.json +7 -7
  22. package/.next/server/app/_not-found/page.js +11 -12
  23. package/.next/server/app/_not-found/page.js.nft.json +1 -1
  24. package/.next/server/app/_not-found/page_client-reference-manifest.js +2 -1
  25. package/.next/server/app/_not-found.html +2 -2
  26. package/.next/server/app/_not-found.rsc +19 -16
  27. package/.next/server/app/_not-found.segments/_full.segment.rsc +19 -16
  28. package/.next/server/app/_not-found.segments/_head.segment.rsc +4 -4
  29. package/.next/server/app/_not-found.segments/_index.segment.rsc +5 -5
  30. package/.next/server/app/_not-found.segments/_not-found/__PAGE__.segment.rsc +2 -2
  31. package/.next/server/app/_not-found.segments/_not-found.segment.rsc +4 -3
  32. package/.next/server/app/_not-found.segments/_tree.segment.rsc +2 -2
  33. package/.next/server/app/api/analyze-test/route/build-manifest.json +1 -3
  34. package/.next/server/app/api/analyze-test/route.js +3 -3
  35. package/.next/server/app/api/analyze-test/route.js.nft.json +1 -1
  36. package/.next/server/app/api/analyze-test/route_client-reference-manifest.js +2 -1
  37. package/.next/server/app/api/assets/[...slug]/route/build-manifest.json +1 -3
  38. package/.next/server/app/api/assets/[...slug]/route.js +4 -4
  39. package/.next/server/app/api/assets/[...slug]/route.js.nft.json +1 -1
  40. package/.next/server/app/api/assets/[...slug]/route_client-reference-manifest.js +2 -1
  41. package/.next/server/app/api/current-run/route/build-manifest.json +1 -3
  42. package/.next/server/app/api/current-run/route.js +3 -3
  43. package/.next/server/app/api/current-run/route.js.nft.json +1 -1
  44. package/.next/server/app/api/current-run/route_client-reference-manifest.js +2 -1
  45. package/.next/server/app/api/historical-trends/route/build-manifest.json +1 -3
  46. package/.next/server/app/api/historical-trends/route.js +4 -3
  47. package/.next/server/app/api/historical-trends/route.js.nft.json +1 -1
  48. package/.next/server/app/api/historical-trends/route_client-reference-manifest.js +2 -1
  49. package/.next/server/app/api/report-config/route/build-manifest.json +1 -3
  50. package/.next/server/app/api/report-config/route.js +3 -3
  51. package/.next/server/app/api/report-config/route.js.nft.json +1 -1
  52. package/.next/server/app/api/report-config/route_client-reference-manifest.js +2 -1
  53. package/.next/server/app/api/reports/[filename]/route/build-manifest.json +1 -3
  54. package/.next/server/app/api/reports/[filename]/route.js +3 -3
  55. package/.next/server/app/api/reports/[filename]/route.js.nft.json +1 -1
  56. package/.next/server/app/api/reports/[filename]/route_client-reference-manifest.js +2 -1
  57. package/.next/server/app/api/run-command/route/build-manifest.json +1 -3
  58. package/.next/server/app/api/run-command/route.js +3 -3
  59. package/.next/server/app/api/run-command/route.js.nft.json +1 -1
  60. package/.next/server/app/api/run-command/route_client-reference-manifest.js +2 -1
  61. package/.next/server/app/index.html +2 -2
  62. package/.next/server/app/index.rsc +14 -12
  63. package/.next/server/app/index.segments/__PAGE__.segment.rsc +3 -3
  64. package/.next/server/app/index.segments/_full.segment.rsc +14 -12
  65. package/.next/server/app/index.segments/_head.segment.rsc +4 -4
  66. package/.next/server/app/index.segments/_index.segment.rsc +5 -5
  67. package/.next/server/app/index.segments/_tree.segment.rsc +2 -2
  68. package/.next/server/app/page/build-manifest.json +7 -7
  69. package/.next/server/app/page/react-loadable-manifest.json +1 -2
  70. package/.next/server/app/page/server-reference-manifest.json +1 -4
  71. package/.next/server/app/page.js +12 -14
  72. package/.next/server/app/page.js.nft.json +1 -1
  73. package/.next/server/app/page_client-reference-manifest.js +2 -1
  74. package/.next/server/app/test/[testId]/page/build-manifest.json +7 -7
  75. package/.next/server/app/test/[testId]/page/server-reference-manifest.json +1 -4
  76. package/.next/server/app/test/[testId]/page.js +12 -14
  77. package/.next/server/app/test/[testId]/page.js.nft.json +1 -1
  78. package/.next/server/app/test/[testId]/page_client-reference-manifest.js +2 -1
  79. package/.next/server/chunks/[externals]__0m-sipc._.js +3 -0
  80. package/.next/server/chunks/{[externals]__f52e4eb0._.js → [externals]__124ywe.._.js} +1 -1
  81. package/.next/server/chunks/[root-of-the-server]__0126wt3._.js +3 -0
  82. package/.next/server/chunks/[root-of-the-server]__016m3l7._.js +3 -0
  83. package/.next/server/chunks/[root-of-the-server]__0bgp.n9._.js +3 -0
  84. package/.next/server/chunks/[root-of-the-server]__0jh2b8b._.js +3 -0
  85. package/.next/server/chunks/[root-of-the-server]__0k26p~k._.js +3 -0
  86. package/.next/server/chunks/[root-of-the-server]__0nglzhr._.js +13 -0
  87. package/.next/server/chunks/[root-of-the-server]__0x8r-.9._.js +3 -0
  88. package/.next/server/chunks/[turbopack]_runtime.js +168 -60
  89. package/.next/server/chunks/{_next-internal_server_app_api_analyze-test_route_actions_e71f7d12.js → _next-internal_server_app_api_analyze-test_route_actions_0.saobd.js} +1 -1
  90. package/.next/server/chunks/{_next-internal_server_app_api_assets_[___slug]_route_actions_a10bfa98.js → _next-internal_server_app_api_assets_[___slug]_route_actions_0rqs88g.js} +1 -1
  91. package/.next/server/chunks/{_next-internal_server_app_api_current-run_route_actions_ed7eca66.js → _next-internal_server_app_api_current-run_route_actions_10w286-.js} +1 -1
  92. package/.next/server/chunks/{_next-internal_server_app_api_historical-trends_route_actions_ab165c16.js → _next-internal_server_app_api_historical-trends_route_actions_0tfs591.js} +1 -1
  93. package/.next/server/chunks/{_next-internal_server_app_api_report-config_route_actions_7f74a29f.js → _next-internal_server_app_api_report-config_route_actions_0lzyt8k.js} +1 -1
  94. package/.next/server/chunks/{_next-internal_server_app_api_reports_[filename]_route_actions_54bb3323.js → _next-internal_server_app_api_reports_[filename]_route_actions_0emat-g.js} +1 -1
  95. package/.next/server/chunks/{_next-internal_server_app_api_run-command_route_actions_b3861930.js → _next-internal_server_app_api_run-command_route_actions_0uxr5bx.js} +1 -1
  96. package/.next/server/chunks/node_modules_next_dist_06kebd7._.js +4 -0
  97. package/.next/server/chunks/ssr/[root-of-the-server]__0.zquoa._.js +3 -0
  98. package/.next/server/chunks/ssr/[root-of-the-server]__05ct2gl._.js +3 -0
  99. package/.next/server/chunks/ssr/[root-of-the-server]__0eqd2za._.js +33 -0
  100. package/.next/server/chunks/ssr/[root-of-the-server]__0jmj6g1._.js +4 -0
  101. package/.next/server/chunks/ssr/[root-of-the-server]__0mgphg.._.js +3 -0
  102. package/.next/server/chunks/ssr/[root-of-the-server]__0uyy96m._.js +4 -0
  103. package/.next/server/chunks/ssr/[root-of-the-server]__0v5vgt4._.js +3 -0
  104. package/.next/server/chunks/ssr/[root-of-the-server]__0we7bel._.js +3 -0
  105. package/.next/server/chunks/ssr/[root-of-the-server]__10xgshr._.js +33 -0
  106. package/.next/server/chunks/ssr/[turbopack]_runtime.js +168 -60
  107. package/.next/server/chunks/ssr/_0dvn4a6._.js +6 -0
  108. package/.next/server/chunks/ssr/_0jkkbka._.js +7 -0
  109. package/.next/server/chunks/ssr/_0nfs~1l._.js +5 -0
  110. package/.next/server/chunks/ssr/_0pa59oo._.js +3 -0
  111. package/.next/server/chunks/ssr/_11mmbg~._.js +5 -0
  112. package/.next/server/chunks/ssr/{_next-internal_server_app__global-error_page_actions_75761787.js → _next-internal_server_app__global-error_page_actions_0k77kol.js} +1 -1
  113. package/.next/server/chunks/ssr/{_next-internal_server_app__not-found_page_actions_554ec2bf.js → _next-internal_server_app__not-found_page_actions_0eq97pa.js} +1 -1
  114. package/.next/server/chunks/ssr/node_modules_09w7yel._.js +33 -0
  115. package/.next/server/chunks/ssr/node_modules_0aem7sr._.js +19 -0
  116. package/.next/server/chunks/ssr/node_modules_@swc_helpers_cjs__interop_require_default_cjs_11~q6fv._.js +3 -0
  117. package/.next/server/chunks/ssr/node_modules_next_dist_0h9llsw._.js +6 -0
  118. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_9774470f._.js → node_modules_next_dist_client_components_0inhx6q._.js} +2 -2
  119. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_forbidden_45780354.js → node_modules_next_dist_client_components_builtin_forbidden_0ghu-f7.js} +2 -2
  120. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_global-error_ece394eb.js → node_modules_next_dist_client_components_builtin_global-error_0lgvd_..js} +2 -2
  121. package/.next/server/chunks/ssr/{node_modules_next_dist_client_components_builtin_unauthorized_15817684.js → node_modules_next_dist_client_components_builtin_unauthorized_0cjv-23.js} +2 -2
  122. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_01ycdec.js +4 -0
  123. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0bj8dkg.js +4 -0
  124. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0cvrgh7.js +4 -0
  125. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_0rc3ul_.js +4 -0
  126. package/.next/server/chunks/ssr/{src_ce5be59b._.js → src_0udngk~._.js} +3 -3
  127. package/.next/server/chunks/ssr/src_components_ui_toaster_tsx_0cainpy._.js +3 -0
  128. package/.next/server/middleware-build-manifest.js +12 -12
  129. package/.next/server/prefetch-hints.json +1 -0
  130. package/.next/server/server-reference-manifest.js +1 -1
  131. package/.next/server/server-reference-manifest.json +3 -9
  132. package/.next/static/RgESZIprcZznm98mxUv-O/_clientMiddlewareManifest.js +1 -0
  133. package/.next/static/chunks/00g8rbqi0h8lk.js +1 -0
  134. package/.next/static/chunks/01xlw8hd842-c.js +1 -0
  135. package/.next/static/chunks/04j4.hz_cv-pf.js +1 -0
  136. package/.next/static/chunks/07uz2g0_38qia.js +4 -0
  137. package/.next/static/chunks/0b8rufmwi4-6v.js +1 -0
  138. package/.next/static/chunks/0fwam_-pec8pg.js +2 -0
  139. package/.next/static/chunks/0gsquco4lyvb4.js +1 -0
  140. package/.next/static/chunks/0h4bq73pogmtb.js +1 -0
  141. package/.next/static/chunks/0imfvrlr~2q89.js +31 -0
  142. package/.next/static/chunks/0m5-x6u~hwh1m.js +1 -0
  143. package/.next/static/chunks/0mzwfspg4216r.js +1 -0
  144. package/.next/static/chunks/0p.r891xm97do.js +1 -0
  145. package/.next/static/chunks/0w0gkm45qpujx.js +5 -0
  146. package/.next/static/chunks/0~ariudu4in54.js +1 -0
  147. package/.next/static/chunks/13mqc.b~s2gjo.js +1 -0
  148. package/.next/static/chunks/14rqub-mhf1rm.css +1 -0
  149. package/.next/static/chunks/15y_~8vy363bg.js +3 -0
  150. package/.next/static/chunks/16navnbzwbp36.js +1 -0
  151. package/.next/static/chunks/17~ltcjkf11xe.js +3 -0
  152. package/.next/static/chunks/1860zsbcg5z1o.js +1 -0
  153. package/.next/static/chunks/turbopack-11rw6yhug.je0.js +1 -0
  154. package/LICENSE +21 -202
  155. package/README.md +22 -1
  156. package/bin/pulse-dashboard.js +49 -3
  157. package/dist/app/actions.d.ts +3 -1
  158. package/dist/app/actions.d.ts.map +1 -1
  159. package/dist/app/actions.js +51 -13
  160. package/dist/app/actions.js.map +1 -1
  161. package/dist/components/pulse-dashboard/DashboardOverviewCharts.d.ts.map +1 -1
  162. package/dist/components/pulse-dashboard/DashboardOverviewCharts.jsx +530 -235
  163. package/dist/components/pulse-dashboard/DashboardOverviewCharts.jsx.map +1 -1
  164. package/dist/components/pulse-dashboard/FailureCategorizationView.d.ts +1 -2
  165. package/dist/components/pulse-dashboard/FailureCategorizationView.d.ts.map +1 -1
  166. package/dist/components/pulse-dashboard/FailureCategorizationView.jsx +168 -51
  167. package/dist/components/pulse-dashboard/FailureCategorizationView.jsx.map +1 -1
  168. package/dist/components/pulse-dashboard/FlakyTestsWidget.d.ts.map +1 -1
  169. package/dist/components/pulse-dashboard/FlakyTestsWidget.jsx +90 -75
  170. package/dist/components/pulse-dashboard/FlakyTestsWidget.jsx.map +1 -1
  171. package/dist/components/pulse-dashboard/LiveTestResults.d.ts +1 -1
  172. package/dist/components/pulse-dashboard/LiveTestResults.d.ts.map +1 -1
  173. package/dist/components/pulse-dashboard/LiveTestResults.jsx +73 -36
  174. package/dist/components/pulse-dashboard/LiveTestResults.jsx.map +1 -1
  175. package/dist/components/pulse-dashboard/PulseCommandView.d.ts.map +1 -1
  176. package/dist/components/pulse-dashboard/PulseCommandView.jsx +14 -4
  177. package/dist/components/pulse-dashboard/PulseCommandView.jsx.map +1 -1
  178. package/dist/components/pulse-dashboard/PulseDashboard.d.ts.map +1 -1
  179. package/dist/components/pulse-dashboard/PulseDashboard.jsx +1 -2
  180. package/dist/components/pulse-dashboard/PulseDashboard.jsx.map +1 -1
  181. package/dist/components/pulse-dashboard/SettingsView.jsx +2 -2
  182. package/dist/components/pulse-dashboard/SettingsView.jsx.map +1 -1
  183. package/dist/components/pulse-dashboard/SummaryMetrics.d.ts.map +1 -1
  184. package/dist/components/pulse-dashboard/SummaryMetrics.jsx +75 -19
  185. package/dist/components/pulse-dashboard/SummaryMetrics.jsx.map +1 -1
  186. package/dist/components/pulse-dashboard/SystemInformationWidget.d.ts +3 -3
  187. package/dist/components/pulse-dashboard/SystemInformationWidget.d.ts.map +1 -1
  188. package/dist/components/pulse-dashboard/SystemInformationWidget.jsx +125 -41
  189. package/dist/components/pulse-dashboard/SystemInformationWidget.jsx.map +1 -1
  190. package/dist/components/pulse-dashboard/TestDetailsClientPage.d.ts.map +1 -1
  191. package/dist/components/pulse-dashboard/TestDetailsClientPage.jsx +689 -536
  192. package/dist/components/pulse-dashboard/TestDetailsClientPage.jsx.map +1 -1
  193. package/dist/components/pulse-dashboard/TestItem.d.ts.map +1 -1
  194. package/dist/components/pulse-dashboard/TestItem.jsx +18 -8
  195. package/dist/components/pulse-dashboard/TestItem.jsx.map +1 -1
  196. package/dist/components/pulse-dashboard/TestStepItemRecursive.d.ts.map +1 -1
  197. package/dist/components/pulse-dashboard/TestStepItemRecursive.jsx +3 -3
  198. package/dist/components/pulse-dashboard/TestStepItemRecursive.jsx.map +1 -1
  199. package/dist/components/pulse-dashboard/TrendAnalysis.d.ts.map +1 -1
  200. package/dist/components/pulse-dashboard/TrendAnalysis.jsx +53 -17
  201. package/dist/components/pulse-dashboard/TrendAnalysis.jsx.map +1 -1
  202. package/dist/components/ui/alert.jsx +1 -1
  203. package/dist/components/ui/alert.jsx.map +1 -1
  204. package/dist/components/ui/button.jsx +3 -3
  205. package/dist/components/ui/card.jsx +1 -1
  206. package/dist/components/ui/card.jsx.map +1 -1
  207. package/dist/components/ui/tabs.jsx +2 -2
  208. package/dist/components/ui/tabs.jsx.map +1 -1
  209. package/dist/lib/testUtils.d.ts +12 -0
  210. package/dist/lib/testUtils.d.ts.map +1 -0
  211. package/dist/lib/testUtils.js +37 -0
  212. package/dist/lib/testUtils.js.map +1 -0
  213. package/dist/styles.css +1 -1
  214. package/dist/types/playwright.d.ts +7 -3
  215. package/dist/types/playwright.d.ts.map +1 -1
  216. package/package.json +13 -8
  217. package/.next/server/chunks/[root-of-the-server]__06c6346e._.js +0 -3
  218. package/.next/server/chunks/[root-of-the-server]__42738744._.js +0 -3
  219. package/.next/server/chunks/[root-of-the-server]__7113a113._.js +0 -3
  220. package/.next/server/chunks/[root-of-the-server]__71e0e3b9._.js +0 -21
  221. package/.next/server/chunks/[root-of-the-server]__74bb0547._.js +0 -3
  222. package/.next/server/chunks/[root-of-the-server]__9f88b7b7._.js +0 -4
  223. package/.next/server/chunks/[root-of-the-server]__c159e29b._.js +0 -3
  224. package/.next/server/chunks/[root-of-the-server]__d7fdaf5c._.js +0 -3
  225. package/.next/server/chunks/ssr/[root-of-the-server]__15600e29._.js +0 -3
  226. package/.next/server/chunks/ssr/[root-of-the-server]__22ecdfea._.js +0 -3
  227. package/.next/server/chunks/ssr/[root-of-the-server]__4a382b8f._.js +0 -3
  228. package/.next/server/chunks/ssr/[root-of-the-server]__71dd9d42._.js +0 -4
  229. package/.next/server/chunks/ssr/[root-of-the-server]__77c90d39._.js +0 -3
  230. package/.next/server/chunks/ssr/[root-of-the-server]__84313e76._.js +0 -3
  231. package/.next/server/chunks/ssr/[root-of-the-server]__aed7e4d8._.js +0 -3
  232. package/.next/server/chunks/ssr/[root-of-the-server]__b3b1f5eb._.js +0 -4
  233. package/.next/server/chunks/ssr/[root-of-the-server]__b9356576._.js +0 -4
  234. package/.next/server/chunks/ssr/[root-of-the-server]__c507bbfe._.js +0 -3
  235. package/.next/server/chunks/ssr/[root-of-the-server]__c829c7d1._.js +0 -3
  236. package/.next/server/chunks/ssr/[root-of-the-server]__efd22fba._.js +0 -3
  237. package/.next/server/chunks/ssr/[root-of-the-server]__f682065b._.js +0 -3
  238. package/.next/server/chunks/ssr/_178fc551._.js +0 -5
  239. package/.next/server/chunks/ssr/_3635f42f._.js +0 -3
  240. package/.next/server/chunks/ssr/_3f2f13a0._.js +0 -5
  241. package/.next/server/chunks/ssr/_42495f68._.js +0 -7
  242. package/.next/server/chunks/ssr/_7bd96dfb._.js +0 -4
  243. package/.next/server/chunks/ssr/_97aa43fe._.js +0 -6
  244. package/.next/server/chunks/ssr/_c1309523._.js +0 -4
  245. package/.next/server/chunks/ssr/node_modules_256e9ddd._.js +0 -3
  246. package/.next/server/chunks/ssr/node_modules_entities_lib_maps_6c3ea140._.js +0 -3
  247. package/.next/server/chunks/ssr/node_modules_next_dist_08570d7f._.js +0 -4
  248. package/.next/server/chunks/ssr/node_modules_next_dist_174ae28d._.js +0 -10
  249. package/.next/server/chunks/ssr/node_modules_next_dist_4b9a0874._.js +0 -3
  250. package/.next/server/chunks/ssr/node_modules_next_dist_esm_build_templates_app-page_65a7265e.js +0 -4
  251. package/.next/server/chunks/ssr/node_modules_next_dist_esm_eedfc1fd._.js +0 -6
  252. package/.next/server/chunks/ssr/src_components_ui_toaster_tsx_475f3ca1._.js +0 -3
  253. package/.next/static/chunks/0f33d151720dd9be.js +0 -1
  254. package/.next/static/chunks/42ac08e824892d98.js +0 -3
  255. package/.next/static/chunks/4aba24f188aab88f.js +0 -1
  256. package/.next/static/chunks/5413d7a3986e863a.css +0 -1
  257. package/.next/static/chunks/5ccfb5a289153a0c.js +0 -1
  258. package/.next/static/chunks/5cedbe3d28acc407.js +0 -4
  259. package/.next/static/chunks/7ed4bd6bf5216809.js +0 -1
  260. package/.next/static/chunks/836027b6298d8236.js +0 -5
  261. package/.next/static/chunks/90e8775562b10304.js +0 -1
  262. package/.next/static/chunks/952cc6d18d6c0e81.js +0 -1
  263. package/.next/static/chunks/9ac02f87b0542bfe.js +0 -1
  264. package/.next/static/chunks/b451c069ec473146.js +0 -1
  265. package/.next/static/chunks/bb0500a106848313.js +0 -1
  266. package/.next/static/chunks/c9bfc6dc89d94445.js +0 -2
  267. package/.next/static/chunks/cb4802d54f2ae8f7.js +0 -3
  268. package/.next/static/chunks/cdad36853a3d0cf6.js +0 -1
  269. package/.next/static/chunks/d4b4a1ad90e2acdb.js +0 -1
  270. package/.next/static/chunks/e82964c236ab8171.js +0 -1
  271. package/.next/static/chunks/ec55f44e251b8481.js +0 -1
  272. package/.next/static/chunks/fc9b3392d13f74a4.js +0 -1
  273. package/.next/static/chunks/ff1a16fafef87110.js +0 -1
  274. package/.next/static/chunks/turbopack-4063ae190c9edad5.js +0 -4
  275. package/.next/static/h7udJfXH3pEIZIFFB4Jiu/_clientMiddlewareManifest.json +0 -1
  276. /package/.next/static/{h7udJfXH3pEIZIFFB4Jiu → RgESZIprcZznm98mxUv-O}/_buildManifest.js +0 -0
  277. /package/.next/static/{h7udJfXH3pEIZIFFB4Jiu → RgESZIprcZznm98mxUv-O}/_ssgManifest.js +0 -0
  278. /package/.next/static/chunks/{a6dad97d9634a72d.js → 03~yq9q893hmn.js} +0 -0
@@ -1,9 +1,10 @@
1
1
  'use client';
2
+ import { getEffectiveTestStatus } from '@/lib/testUtils';
2
3
  import { Card, CardContent, CardHeader, CardTitle, CardDescription } from '@/components/ui/card';
3
4
  import { Skeleton } from '@/components/ui/skeleton';
4
5
  import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert";
5
6
  import { PieChart as RechartsPieChart, Pie, BarChart as RechartsBarChart, Bar, XAxis, YAxis, CartesianGrid, Tooltip as RechartsRechartsTooltip, Legend, ResponsiveContainer, Cell, LabelList, Sector } from 'recharts';
6
- import { Terminal, CheckCircle, Info, Chrome, Globe, Compass, Users, ListFilter, RotateCcw, Search } from 'lucide-react'; // Added Search
7
+ import { Terminal, Info, Chrome, Globe, Compass, Users, ListFilter, RotateCcw, Search, } from "lucide-react";
7
8
  import { cn } from '@/lib/utils';
8
9
  import React, { useState, useMemo, useCallback, useEffect, useRef } from 'react';
9
10
  // Import UI components for filters
@@ -13,6 +14,8 @@ import { Button } from '@/components/ui/button';
13
14
  import { DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuTrigger } from '@/components/ui/dropdown-menu';
14
15
  // --- FIX: Import Tooltip components for the reset button ---
15
16
  import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '@/components/ui/tooltip';
17
+ import { ScrollArea } from '@/components/ui/scroll-area';
18
+ import { Popover, PopoverContent, PopoverTrigger } from '@/components/ui/popover';
16
19
  const LazyChartWrapper = ({ children, placeholderHeight = '300px' }) => {
17
20
  const [isVisible, setIsVisible] = useState(false);
18
21
  const ref = useRef(null);
@@ -36,13 +39,14 @@ const LazyChartWrapper = ({ children, placeholderHeight = '300px' }) => {
36
39
  };
37
40
  }, []);
38
41
  return (<div ref={ref} style={{ minHeight: !isVisible ? placeholderHeight : undefined }}>
39
- {isVisible ? children : <Skeleton className="w-full rounded-lg" style={{ height: placeholderHeight }}/>}
42
+ {isVisible ? children : <Skeleton className="w-full rounded-2xl" style={{ height: placeholderHeight }}/>}
40
43
  </div>);
41
44
  };
42
45
  const COLORS = {
43
46
  passed: 'hsl(var(--chart-3))',
44
47
  failed: 'hsl(var(--destructive))',
45
48
  skipped: 'hsl(var(--accent))',
49
+ flaky: 'hsl(var(--flaky))', // Consistently use flaky sky color
46
50
  timedOut: 'hsl(var(--destructive))',
47
51
  pending: 'hsl(var(--muted-foreground))',
48
52
  default1: 'hsl(var(--chart-1))',
@@ -84,7 +88,7 @@ const CustomTooltip = ({ active, payload, label }) => {
84
88
  if (displayTitle === "undefined") {
85
89
  displayTitle = "Details";
86
90
  }
87
- return (<div className="bg-card p-3 border border-border rounded-md shadow-lg">
91
+ return (<div className="bg-card p-3 border border-border rounded-xl shadow-lg">
88
92
  <p className="label text-sm font-semibold text-foreground truncate max-w-xs" title={displayTitle}>
89
93
  {displayTitle}
90
94
  </p>
@@ -160,6 +164,22 @@ const ActiveShape = (props) => {
160
164
  </text>
161
165
  </g>);
162
166
  };
167
+ const SimplePieShape = (props) => {
168
+ const RADIAN = Math.PI / 180;
169
+ const { cx, cy, midAngle, innerRadius = 0, outerRadius = 0, startAngle = 0, endAngle = 0, fill, } = props;
170
+ const sin = Math.sin(-RADIAN * (midAngle ?? 0));
171
+ const cos = Math.cos(-RADIAN * (midAngle ?? 0));
172
+ const sx = (cx ?? 0) + (outerRadius + 10) * cos;
173
+ const sy = (cy ?? 0) + (outerRadius + 10) * sin;
174
+ const mx = (cx ?? 0) + (outerRadius + 30) * cos;
175
+ const my = (cy ?? 0) + (outerRadius + 30) * sin;
176
+ const ex = mx + (cos >= 0 ? 1 : -1) * 22;
177
+ const ey = my;
178
+ return (<g>
179
+ <Sector cx={cx} cy={cy} innerRadius={innerRadius} outerRadius={outerRadius} startAngle={startAngle} endAngle={endAngle} fill={fill}/>
180
+ <Sector cx={cx} cy={cy} startAngle={startAngle} endAngle={endAngle} innerRadius={outerRadius + 6} outerRadius={outerRadius + 10} fill={fill}/>
181
+ </g>);
182
+ };
163
183
  export function DashboardOverviewCharts({ currentRun, loading, error }) {
164
184
  const [testNameFilter, setTestNameFilter] = useState('');
165
185
  const [suiteFilter, setSuiteFilter] = useState('all');
@@ -185,10 +205,10 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
185
205
  setWorkerFilter(availableWorkers);
186
206
  }
187
207
  }, [availableWorkers]);
188
- const workerDonutData = useMemo(() => {
208
+ const filteredTests = useMemo(() => {
189
209
  if (!currentRun?.results)
190
210
  return [];
191
- const filteredTests = currentRun.results.filter(test => {
211
+ return currentRun.results.filter(test => {
192
212
  const workerIdStr = test.workerId != null ? String(test.workerId) : '';
193
213
  if (workerFilter.length > 0 && !workerFilter.includes(workerIdStr)) {
194
214
  return false;
@@ -204,6 +224,10 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
204
224
  }
205
225
  return test.startTime && typeof test.duration === 'number';
206
226
  });
227
+ }, [currentRun?.results, testNameFilter, suiteFilter, workerFilter]);
228
+ const workerDonutData = useMemo(() => {
229
+ if (!currentRun?.results)
230
+ return [];
207
231
  const testsByWorker = filteredTests.reduce((acc, test) => {
208
232
  const workerId = test.workerId != null ? String(test.workerId) : 'unknown';
209
233
  if (!acc[workerId]) {
@@ -236,84 +260,134 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
236
260
  setWorkerFilter(availableWorkers);
237
261
  }, [availableWorkers]);
238
262
  if (loading) {
239
- return (<div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3 mt-6">
240
- {[...Array(5)].map((_, i) => (<Card key={i} className="shadow-md rounded-xl">
241
- <CardHeader>
242
- <Skeleton className="h-5 w-3/4 rounded-md"/>
243
- <Skeleton className="h-4 w-1/2 mt-1 rounded-md"/>
244
- </CardHeader>
245
- <CardContent>
246
- <Skeleton className="h-48 w-full rounded-lg"/>
247
- </CardContent>
248
- </Card>))}
249
- </div>);
263
+ return (<>
264
+ <div className="mt-8 mb-6">
265
+ <h3 className="text-xl font-bold text-foreground mb-2">
266
+ Test Execution Analytics
267
+ </h3>
268
+ <p className="text-sm text-muted-foreground">
269
+ Detailed visualization of test distribution, performance metrics,
270
+ and worker utilization
271
+ </p>
272
+ </div>
273
+ <div className="grid gap-6 md:grid-cols-2 lg:grid-cols-3 mt-6">
274
+ {[...Array(5)].map((_, i) => (<Card key={i} className="shadow-md rounded-xl">
275
+ <CardHeader>
276
+ <Skeleton className="h-5 w-3/4 rounded-xl"/>
277
+ <Skeleton className="h-4 w-1/2 mt-1 rounded-xl"/>
278
+ </CardHeader>
279
+ <CardContent>
280
+ <Skeleton className="h-48 w-full rounded-2xl"/>
281
+ </CardContent>
282
+ </Card>))}
283
+ </div>
284
+ </>);
250
285
  }
251
286
  if (error) {
252
- return (<Alert variant="destructive" className="mt-6 rounded-lg">
253
- <Terminal className="h-4 w-4"/>
254
- <AlertTitle>Error Loading Chart Data</AlertTitle>
255
- <AlertDescription>{error}</AlertDescription>
256
- </Alert>);
287
+ return (<>
288
+ <div className="mt-8 mb-6">
289
+ <h3 className="text-xl font-bold text-foreground mb-2">
290
+ Test Execution Analytics
291
+ </h3>
292
+ <p className="text-sm text-muted-foreground">
293
+ Detailed visualization of test distribution, performance metrics,
294
+ and worker utilization
295
+ </p>
296
+ </div>
297
+ <Alert variant="destructive" className="mt-6 rounded-2xl shadow-lg">
298
+ <Terminal className="h-4 w-4"/>
299
+ <AlertTitle>Error Loading Chart Data</AlertTitle>
300
+ <AlertDescription>{error}</AlertDescription>
301
+ </Alert>
302
+ </>);
257
303
  }
258
304
  if (!currentRun || !currentRun.run || !currentRun.results) {
259
- return (<Alert className="mt-6 rounded-lg">
260
- <Info className="h-4 w-4"/>
261
- <AlertTitle>No Data for Charts</AlertTitle>
262
- <AlertDescription>Current run data is not available to display charts.</AlertDescription>
263
- </Alert>);
305
+ return (<>
306
+ <div className="mt-8 mb-6">
307
+ <h3 className="text-xl font-bold text-foreground mb-2">
308
+ Test Execution Analytics
309
+ </h3>
310
+ <p className="text-sm text-muted-foreground">
311
+ Detailed visualization of test distribution, performance metrics,
312
+ and worker utilization
313
+ </p>
314
+ </div>
315
+ <Alert className="mt-6 rounded-2xl shadow-lg">
316
+ <Info className="h-4 w-4"/>
317
+ <AlertTitle>No Data for Charts</AlertTitle>
318
+ <AlertDescription>
319
+ Current run data is not available to display charts.
320
+ </AlertDescription>
321
+ </Alert>
322
+ </>);
264
323
  }
265
324
  const { passed, failed, skipped, timedOut = 0, pending = 0 } = currentRun.run;
266
- const totalTestsForPie = passed + failed + skipped + timedOut + pending;
325
+ // Calculate strict status counts from results for the chart, ignoring run summary if it doesn't match strict logic
326
+ const strictCounts = {
327
+ passed: 0,
328
+ failed: 0,
329
+ skipped: 0,
330
+ flaky: 0,
331
+ pending: 0
332
+ };
333
+ currentRun.results.forEach(test => {
334
+ const status = getEffectiveTestStatus(test);
335
+ if (status === 'passed')
336
+ strictCounts.passed++;
337
+ else if (status === 'failed' || status === 'timedOut')
338
+ strictCounts.failed++;
339
+ else if (status === 'skipped')
340
+ strictCounts.skipped++;
341
+ else if (status === 'flaky')
342
+ strictCounts.flaky++;
343
+ else if (status === 'pending')
344
+ strictCounts.pending++;
345
+ });
346
+ const totalTestsForPie = strictCounts.passed + strictCounts.failed + strictCounts.skipped + strictCounts.flaky + strictCounts.pending;
267
347
  const testDistributionData = [
268
- { name: 'Passed', value: passed, fill: COLORS.passed },
269
- { name: 'Failed', value: failed + timedOut, fill: COLORS.failed },
270
- { name: 'Skipped', value: skipped, fill: COLORS.skipped },
271
- ...(pending > 0 ? [{ name: 'Pending', value: pending, fill: COLORS.pending }] : []),
348
+ { name: 'Passed', value: strictCounts.passed, fill: COLORS.passed },
349
+ { name: 'Failed', value: strictCounts.failed, fill: COLORS.failed },
350
+ { name: 'Skipped', value: strictCounts.skipped, fill: COLORS.skipped },
351
+ { name: 'Flaky', value: strictCounts.flaky, fill: COLORS.flaky },
352
+ ...(strictCounts.pending > 0 ? [{ name: 'Pending', value: strictCounts.pending, fill: COLORS.pending }] : []),
272
353
  ]
273
354
  .filter(d => d.value > 0)
274
355
  .map(d => ({ ...d, name: d.name, value: d.value, fill: d.fill, percentage: totalTestsForPie > 0 ? ((d.value / totalTestsForPie) * 100).toFixed(1) : '0.0' }));
275
356
  const browserDistributionRaw = currentRun.results.reduce((acc, test) => {
276
357
  const browserName = test.browser || 'Unknown';
277
358
  if (!acc[browserName]) {
278
- acc[browserName] = { name: browserName, passed: 0, failed: 0, skipped: 0, pending: 0, total: 0 };
359
+ acc[browserName] = { name: browserName, passed: 0, failed: 0, skipped: 0, flaky: 0, pending: 0, total: 0 };
279
360
  }
280
- if (test.status === 'passed')
361
+ const status = getEffectiveTestStatus(test);
362
+ if (status === 'passed')
281
363
  acc[browserName].passed++;
282
- else if (test.status === 'failed' || test.status === 'timedOut')
364
+ else if (status === 'failed' || status === 'timedOut')
283
365
  acc[browserName].failed++;
284
- else if (test.status === 'skipped')
366
+ else if (status === 'skipped')
285
367
  acc[browserName].skipped++;
286
- else if (test.status === 'pending')
368
+ else if (status === 'flaky')
369
+ acc[browserName].flaky++;
370
+ else if (status === 'pending')
287
371
  acc[browserName].pending++;
288
372
  acc[browserName].total++;
289
373
  return acc;
290
374
  }, {});
291
375
  const browserChartData = Object.values(browserDistributionRaw).sort((a, b) => b.total - a.total);
292
- const failedTestsDurationData = currentRun.results
293
- .filter((test) => test.status === 'failed' || test.status === 'timedOut')
294
- .map((test) => {
295
- const shortName = formatTestNameForChart(test.name);
296
- return {
297
- name: shortName.length > 50 ? shortName.substring(0, 47) + '...' : shortName,
298
- duration: test.duration,
299
- durationFormatted: formatDurationForChart(test.duration),
300
- fullTestName: test.name,
301
- };
302
- })
303
- .sort((a, b) => b.duration - a.duration)
304
- .slice(0, 10);
305
376
  const suiteDistributionRaw = currentRun.results.reduce((acc, test) => {
306
377
  const suiteName = test.suiteName || 'Unknown Suite';
307
378
  if (!acc[suiteName]) {
308
- acc[suiteName] = { name: suiteName, passed: 0, failed: 0, skipped: 0, pending: 0, total: 0 };
379
+ acc[suiteName] = { name: suiteName, passed: 0, failed: 0, skipped: 0, flaky: 0, pending: 0, total: 0 };
309
380
  }
310
- if (test.status === 'passed')
381
+ const status = getEffectiveTestStatus(test);
382
+ if (status === 'passed')
311
383
  acc[suiteName].passed++;
312
- else if (test.status === 'failed' || test.status === 'timedOut')
384
+ else if (status === 'failed' || status === 'timedOut')
313
385
  acc[suiteName].failed++;
314
- else if (test.status === 'skipped')
386
+ else if (status === 'skipped')
315
387
  acc[suiteName].skipped++;
316
- else if (test.status === 'pending')
388
+ else if (status === 'flaky')
389
+ acc[suiteName].flaky++;
390
+ else if (status === 'pending')
317
391
  acc[suiteName].pending++;
318
392
  acc[suiteName].total++;
319
393
  return acc;
@@ -321,7 +395,7 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
321
395
  const testsPerSuiteChartData = Object.values(suiteDistributionRaw).sort((a, b) => b.total - a.total);
322
396
  const slowestTestsData = [...currentRun.results]
323
397
  .sort((a, b) => b.duration - a.duration)
324
- .slice(0, 5)
398
+ .slice(0, 10)
325
399
  .map((test) => {
326
400
  const shortName = formatTestNameForChart(test.name);
327
401
  return {
@@ -329,181 +403,359 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
329
403
  duration: test.duration,
330
404
  durationFormatted: formatDurationForChart(test.duration),
331
405
  fullTestName: test.name,
332
- status: test.status,
406
+ status: getEffectiveTestStatus(test),
333
407
  };
334
408
  });
335
409
  const showPendingInBrowserChart = browserChartData.some(d => d.pending > 0);
336
410
  const showPendingInSuiteChart = testsPerSuiteChartData.some(s => s.pending > 0);
337
- return (<div className="grid gap-6 md:grid-cols-1 lg:grid-cols-2 mt-6">
338
- <Card className="lg:col-span-1 shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl">
339
- <CardHeader className="flex flex-row items-center justify-between">
340
- <div>
341
- <CardTitle className="text-lg font-semibold text-foreground">Test Distribution</CardTitle>
342
- <CardDescription className="text-xs">Passed, Failed, Skipped for the current run.</CardDescription>
343
- </div>
344
- </CardHeader>
345
- <CardContent className="flex justify-center items-center min-h-[280px]">
346
- <div className="w-full h-[280px]">
347
- {testDistributionData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
348
- <RechartsPieChart margin={{ top: 0, right: 0, bottom: 0, left: 0 }} onMouseLeave={onPieMouseLeave}>
349
- <Pie activeIndex={activeIndex} activeShape={ActiveShape} data={testDistributionData} cx="50%" cy="50%" innerRadius={60} outerRadius={90} dataKey="value" nameKey="name" onMouseEnter={onPieEnter} paddingAngle={2} stroke="hsl(var(--card))">
350
- {testDistributionData.map((entry, index) => (<Cell key={`cell-${index}`} fill={entry.fill}/>))}
351
- </Pie>
352
- <RechartsRechartsTooltip content={<CustomTooltip />}/>
353
- <Legend iconSize={10} layout="horizontal" verticalAlign="bottom" align="center" wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }}/>
354
- </RechartsPieChart>
355
- </ResponsiveContainer>) : (<div className="text-center text-muted-foreground">No test distribution data.</div>)}
356
- </div>
357
- </CardContent>
358
- </Card>
411
+ const retryStats = useMemo(() => {
412
+ return filteredTests.reduce(// Use filteredTests to reflect current view? Or original results? Usually stats are global unless filtered.
413
+ // Wait, the logic for retryStats was using filteredTests before. I will keep it consistent.
414
+ (acc, test) => {
415
+ acc.totalTests++;
416
+ // FIX: Calculate actual retries by counting non-passed/non-skipped attempts in history.
417
+ // This avoids counting multiple passed runs (e.g. repeat-each) as retries.
418
+ const retries = test.retryHistory
419
+ ? test.retryHistory.filter((r) => r.status !== "passed" && r.status !== "skipped").length
420
+ : 0;
421
+ if (retries > 0) {
422
+ acc.testsWithRetries++;
423
+ acc.totalRetries += retries;
424
+ if (retries > acc.maxRetries) {
425
+ acc.maxRetries = retries;
426
+ acc.maxRetryTests = [test.name];
427
+ }
428
+ else if (retries === acc.maxRetries && acc.maxRetries > 0) {
429
+ acc.maxRetryTests.push(test.name);
430
+ }
431
+ }
432
+ return acc;
433
+ }, {
434
+ totalTests: 0,
435
+ testsWithRetries: 0,
436
+ totalRetries: 0,
437
+ maxRetries: 0,
438
+ maxRetryTests: [],
439
+ });
440
+ }, [filteredTests]);
441
+ const browserDistributionData = browserChartData.map((browser) => ({
442
+ name: browser.name,
443
+ value: browser.total,
444
+ fill: COLORS[`default${(browserChartData.indexOf(browser) % 5) + 1}`],
445
+ percentage: ((browser.total / currentRun.results.length) * 100).toFixed(1),
446
+ }));
447
+ console.log("Browser Distribution Data:", browserDistributionData);
448
+ return (<div className="mt-6 space-y-6 p-6 lg:p-8 bg-muted/20 backdrop-blur-md border border-border/40 rounded-[2.5rem] shadow-inner">
449
+ <div className="mt-8 mb-6">
450
+ <h3 className="text-xl font-bold text-foreground mb-2">
451
+ Test Execution Analytics
452
+ </h3>
453
+ <p className="text-sm text-muted-foreground">
454
+ Detailed visualization of test distribution, performance metrics, and
455
+ worker utilization
456
+ </p>
457
+ </div>
458
+ {/* Row 1: Retry Count (Full Width) */}
459
+ <div className="grid gap-6 md:grid-cols-1">
460
+ <Card className="shadow-lg hover:shadow-2xl transition-shadow duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group">
461
+ <CardHeader>
462
+ <CardTitle className="text-lg font-semibold text-foreground group-hover:text-primary transition-colors">
463
+ Retry Count
464
+ </CardTitle>
465
+ <CardDescription className="text-xs">
466
+ Test retry statistics
467
+ </CardDescription>
468
+ </CardHeader>
469
+ <CardContent>
470
+ <div className="grid grid-cols-1 md:grid-cols-3 gap-4">
471
+ <div className="text-center p-4 bg-muted/50 rounded-2xl">
472
+ <div className="text-3xl font-bold text-foreground">
473
+ {retryStats.testsWithRetries}
474
+ </div>
475
+ <p className="text-sm text-muted-foreground mt-2 font-medium">
476
+ Tests with Retries
477
+ </p>
478
+ <p className="text-xs text-muted-foreground mt-1">
479
+ {retryStats.totalTests > 0
480
+ ? ((retryStats.testsWithRetries / retryStats.totalTests) *
481
+ 100).toFixed(1)
482
+ : "0.0"}
483
+ % of total
484
+ </p>
485
+ </div>
486
+ <div className="text-center p-4 bg-muted/50 rounded-2xl">
487
+ <div className="text-3xl font-bold text-foreground">
488
+ {retryStats.totalRetries}
489
+ </div>
490
+ <p className="text-sm text-muted-foreground mt-2 font-medium">
491
+ Total Retries
492
+ </p>
493
+ </div>
494
+ <div className="text-center p-4 bg-muted/50 rounded-2xl">
495
+ <div className="text-3xl font-bold text-foreground">
496
+ {retryStats.maxRetries}
497
+ </div>
498
+ <p className="text-sm text-muted-foreground mt-2 font-medium">
499
+ Max Retries
500
+ </p>
501
+ {retryStats.maxRetryTests.length > 0 && (<Popover>
502
+ <PopoverTrigger asChild>
503
+ <button className="text-xs text-muted-foreground mt-2 truncate cursor-pointer border-b border-dotted border-muted-foreground/50 inline-block max-w-[180px] hover:text-foreground transition-colors focus:outline-none">
504
+ Tests with Max Retries ({retryStats.maxRetryTests.length})
505
+ </button>
506
+ </PopoverTrigger>
507
+ <PopoverContent className="w-[300px] p-0 overflow-hidden border-border shadow-xl">
508
+ <div className="bg-muted/50 px-3 py-2 border-b border-border">
509
+ <h4 className="font-semibold text-xs text-foreground">
510
+ Tests with Max Retries ({retryStats.maxRetries})
511
+ </h4>
512
+ </div>
513
+ <ScrollArea className="max-h-[200px] overflow-y-auto p-2">
514
+ <ul className="space-y-1">
515
+ {retryStats.maxRetryTests.map((testName, i) => (<li key={i} className="text-xs text-muted-foreground break-words leading-tight bg-card/50 p-1.5 rounded-xl border border-transparent hover:border-border transition-colors text-left">
516
+ {testName.replace(">", "•")}
517
+ </li>))}
518
+ </ul>
519
+ </ScrollArea>
520
+ </PopoverContent>
521
+ </Popover>)}
522
+ </div>
523
+ </div>
524
+ </CardContent>
525
+ </Card>
526
+ </div>
359
527
 
360
- <Card className="lg:col-span-1 shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl">
361
- <CardHeader className="flex flex-row items-center justify-between">
362
- <div>
363
- <CardTitle className="text-lg font-semibold text-foreground">Tests by Browser</CardTitle>
364
- <CardDescription className="text-xs">Breakdown of test outcomes per browser.</CardDescription>
365
- </div>
366
- </CardHeader>
367
- <CardContent>
368
- <div className="w-full h-[250px]">
369
- {browserChartData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
370
- <RechartsBarChart data={browserChartData} layout="vertical" margin={{ top: 5, right: 30, left: 20, bottom: 5 }}>
371
- <CartesianGrid strokeDasharray="3 3" stroke="hsl(var(--border))"/>
372
- <XAxis type="number" stroke="hsl(var(--muted-foreground))" fontSize={10}/>
373
- <YAxis dataKey="name" type="category" stroke="hsl(var(--muted-foreground))" fontSize={10} width={150} tickFormatter={(value) => value.length > 20 ? value.substring(0, 17) + '...' : value} interval={0}/>
374
- <RechartsRechartsTooltip content={<CustomTooltip />} cursor={{ fill: 'hsl(var(--muted))', fillOpacity: 0.3 }}/>
375
- <Legend wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }}/>
376
- <Bar dataKey="passed" name="Passed" stackId="a" fill={COLORS.passed} barSize={20}/>
377
- <Bar dataKey="failed" name="Failed" stackId="a" fill={COLORS.failed} barSize={20}/>
378
- <Bar dataKey="skipped" name="Skipped" stackId="a" fill={COLORS.skipped} barSize={20}/>
379
- {showPendingInBrowserChart && (<Bar dataKey="pending" name="Pending" stackId="a" fill={COLORS.pending} barSize={20}/>)}
380
- </RechartsBarChart>
381
- </ResponsiveContainer>) : (<div className="text-center text-muted-foreground h-[250px] flex items-center justify-center">No browser data.</div>)}
382
- </div>
383
- <div className="flex flex-wrap gap-x-4 gap-y-2 mt-3 text-xs text-muted-foreground">
384
- {browserChartData.map(b => (<div key={b.name} className="flex items-center gap-1" title={b.name}>
385
- <BrowserIcon browserName={b.name} className="mr-1"/>
386
- <span className="truncate max-w-[150px]">{b.name}</span>
528
+ {/* Row 2: Test Status + Browser Distribution (3 columns) */}
529
+ <div className="grid gap-6 md:grid-cols-1 lg:grid-cols-3">
530
+ <Card className="shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group lg:col-span-2">
531
+ <CardHeader>
532
+ <CardTitle className="text-lg font-semibold text-foreground group-hover:text-primary transition-colors">
533
+ Test Status Distribution
534
+ </CardTitle>
535
+ <CardDescription className="text-xs">
536
+ Overall test execution outcomes.
537
+ </CardDescription>
538
+ </CardHeader>
539
+ <CardContent className="flex justify-center items-center min-h-[280px]">
540
+ <div className="w-full h-[280px]">
541
+ {testDistributionData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
542
+ <RechartsPieChart margin={{ top: 0, right: 0, bottom: 0, left: 0 }} onMouseLeave={onPieMouseLeave}>
543
+ <Pie activeIndex={activeIndex} activeShape={ActiveShape} data={testDistributionData} cx="50%" cy="50%" innerRadius={60} outerRadius={90} dataKey="value" nameKey="name" onMouseEnter={onPieEnter} paddingAngle={2} stroke="hsl(var(--card))">
544
+ {testDistributionData.map((entry, index) => (<Cell key={`cell-${index}`} fill={entry.fill}/>))}
545
+ </Pie>
546
+ <RechartsRechartsTooltip content={<CustomTooltip />}/>
547
+ <Legend iconSize={10} layout="horizontal" verticalAlign="bottom" align="center" wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }}/>
548
+ </RechartsPieChart>
549
+ </ResponsiveContainer>) : (<div className="text-center text-muted-foreground">
550
+ No test distribution data.
551
+ </div>)}
552
+ </div>
553
+ </CardContent>
554
+ </Card>
555
+
556
+ <Card className="shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group">
557
+ <CardHeader className="pb-3">
558
+ <CardTitle className="text-base font-semibold text-foreground group-hover:text-primary transition-colors flex items-center gap-2">
559
+ <Globe className="h-4 w-4"/>
560
+ Browser Distribution
561
+ {browserDistributionData.length > 0 && (<span className="text-xs font-normal text-muted-foreground">
562
+ ({browserDistributionData.length} total)
563
+ </span>)}
564
+ </CardTitle>
565
+ </CardHeader>
566
+ <CardContent className="pt-0">
567
+ <div className="space-y-2 max-h-[280px] overflow-y-auto pr-1">
568
+ {browserDistributionData.length > 0 ? (browserDistributionData.slice(0, 5).map((browser, index) => (<div key={browser.name} className="flex items-center justify-between p-2.5 rounded-2xl hover:bg-muted/50 transition-all duration-200 group/item">
569
+ <div className="flex items-center gap-2 min-w-0 flex-1">
570
+ <BrowserIcon browserName={browser.name} className="flex-shrink-0"/>
571
+ <span className="text-sm font-medium text-foreground truncate">
572
+ {browser.name}
573
+ </span>
574
+ </div>
575
+ <span className="text-sm font-semibold text-foreground whitespace-nowrap ml-2">
576
+ {browser.percentage}% ({browser.value})
577
+ </span>
578
+ </div>))) : (<div className="text-center text-muted-foreground py-8 text-sm">
579
+ No browser data.
580
+ </div>)}
581
+ {browserDistributionData.length > 5 && (<div className="flex items-center justify-center pt-2 mt-2 border-t border-border opacity-60 italic text-xs text-muted-foreground">
582
+ +{browserDistributionData.length - 5} more browsers
583
+ </div>)}
584
+ </div>
585
+ </CardContent>
586
+ </Card>
587
+ </div>
588
+
589
+ {/* Row 3: Tests by Browser (Full Width) */}
590
+ <div className="grid gap-6 md:grid-cols-1">
591
+ <Card className="shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group">
592
+ <CardHeader>
593
+ <CardTitle className="text-lg font-semibold text-foreground group-hover:text-primary transition-colors">
594
+ Tests by Browser
595
+ </CardTitle>
596
+ <CardDescription className="text-xs">
597
+ Breakdown of test outcomes per browser.
598
+ </CardDescription>
599
+ </CardHeader>
600
+ <CardContent>
601
+ <div className="w-full h-[250px]">
602
+ {browserChartData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
603
+ <RechartsBarChart data={browserChartData} layout="vertical" margin={{ top: 5, right: 30, left: 20, bottom: 5 }}>
604
+ <CartesianGrid strokeDasharray="3 3" stroke="hsl(var(--border))"/>
605
+ <XAxis type="number" stroke="hsl(var(--muted-foreground))" fontSize={10}/>
606
+ <YAxis dataKey="name" type="category" hide={true}/>
607
+ <RechartsRechartsTooltip content={<CustomTooltip />} cursor={{ fill: "hsl(var(--muted))", fillOpacity: 0.3 }}/>
608
+ <Legend wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }}/>
609
+ <Bar dataKey="passed" name="Passed" stackId="a" fill={COLORS.passed} barSize={20}/>
610
+ <Bar dataKey="failed" name="Failed" stackId="a" fill={COLORS.failed} barSize={20}/>
611
+ <Bar dataKey="skipped" name="Skipped" stackId="a" fill={COLORS.skipped} barSize={20}/>
612
+ <Bar dataKey="flaky" name="Flaky" stackId="a" fill={COLORS.flaky} barSize={20}/>
613
+ {showPendingInBrowserChart && (<Bar dataKey="pending" name="Pending" stackId="a" fill={COLORS.pending} barSize={20}/>)}
614
+ </RechartsBarChart>
615
+ </ResponsiveContainer>) : (<div className="text-center text-muted-foreground h-[250px] flex items-center justify-center">
616
+ No browser data.
617
+ </div>)}
618
+ </div>
619
+ <div className="flex flex-wrap gap-x-4 gap-y-2 mt-3 text-xs text-muted-foreground">
620
+ {browserChartData.map((b) => (<div key={b.name} className="flex items-center gap-1" title={b.name}>
621
+ <BrowserIcon browserName={b.name} className="mr-1"/>
622
+ <span className="truncate max-w-[150px]">{b.name}</span>
387
623
  </div>))}
388
624
  </div>
389
- <p className="text-xs text-muted-foreground mt-2">Note: Icons are representative. Full browser name (including version) is shown in tooltip.</p>
390
- </CardContent>
391
- </Card>
625
+ </CardContent>
626
+ <Alert>
627
+ <Info className="h-4 w-4"/>
628
+ <AlertDescription>
629
+ <strong>Note:</strong> Icons are representative. Full browser name
630
+ (including version) is shown in tooltip.
631
+ </AlertDescription>
632
+ </Alert>
633
+ </Card>
634
+ </div>
392
635
 
393
- <Card className="lg:col-span-1 shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl">
394
- <CardHeader className="flex flex-row items-center justify-between">
395
- <div>
396
- <CardTitle className="text-lg font-semibold text-foreground">Failed Tests Duration</CardTitle>
397
- <CardDescription className="text-xs">Duration of failed or timed out tests (Top 10).</CardDescription>
398
- </div>
399
- </CardHeader>
400
- <CardContent>
401
- <div className="w-full h-[250px]">
402
- {failedTestsDurationData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
403
- <RechartsBarChart data={failedTestsDurationData} margin={{ top: 5, right: 5, left: 5, bottom: 60 }}>
404
- <CartesianGrid strokeDasharray="3 3" stroke="hsl(var(--border))"/>
405
- <XAxis dataKey="name" stroke="hsl(var(--muted-foreground))" fontSize={10} angle={-40} textAnchor="end" interval={0}/>
406
- <YAxis stroke="hsl(var(--muted-foreground))" fontSize={10} tickFormatter={(value) => formatDurationForChart(value)} domain={[0, (dataMax) => dataMax > 0 ? Math.round(dataMax * 1.20) : 100]}/>
407
- <RechartsRechartsTooltip content={({ active, payload, label }) => {
636
+ {/* Row 3: Top 10 Slowest Tests */}
637
+ <div className="grid gap-6 md:grid-cols-1">
638
+ <Card className="shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group lg:col-span-2">
639
+ <CardHeader>
640
+ <CardTitle className="text-lg font-semibold text-foreground group-hover:text-primary transition-colors">
641
+ Top 10 Slowest Tests
642
+ </CardTitle>
643
+ <CardDescription className="text-xs">
644
+ Top 10 longest running tests in this run. Full names in tooltip.
645
+ </CardDescription>
646
+ </CardHeader>
647
+ <CardContent>
648
+ <div className="w-full h-[250px]">
649
+ {slowestTestsData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
650
+ <RechartsBarChart data={slowestTestsData} margin={{ top: 5, right: 5, left: 5, bottom: 30 }}>
651
+ <CartesianGrid strokeDasharray="3 3" stroke="hsl(var(--border))"/>
652
+ <XAxis dataKey="name" tickLine={false} tickFormatter={() => ""} stroke="hsl(var(--muted-foreground))"/>
653
+ <YAxis stroke="hsl(var(--muted-foreground))" fontSize={10} tickFormatter={(value) => formatDurationForChart(value)} domain={[
654
+ 0,
655
+ (dataMax) => dataMax > 0 ? Math.round(dataMax * 1.2) : 100,
656
+ ]}/>
657
+ <RechartsRechartsTooltip content={({ active, payload, label, }) => {
408
658
  if (active && payload && payload.length) {
409
659
  const data = payload[0].payload;
410
- return (<div className="bg-card p-3 border border-border rounded-md shadow-lg">
411
- <p className="label text-sm font-semibold text-foreground truncate max-w-xs" title={data.fullTestName}>{formatTestNameForChart(data.fullTestName)}</p>
412
- <p className="text-xs" style={{ color: COLORS.failed }}>
413
- Duration: {formatDurationForChart(data.duration)}
414
- </p>
415
- </div>);
660
+ return (<div className="bg-card p-3 border border-border rounded-xl shadow-lg">
661
+ <p className="label text-sm font-semibold text-foreground truncate max-w-xs" title={data.fullTestName}>
662
+ {formatTestNameForChart(data.fullTestName)}
663
+ </p>
664
+ <p className="text-xs" style={{
665
+ color: data.status === "passed"
666
+ ? COLORS.passed
667
+ : data.status === "failed" ||
668
+ data.status === "timedOut"
669
+ ? COLORS.failed
670
+ : data.status === "flaky"
671
+ ? COLORS.flaky
672
+ : COLORS.skipped,
673
+ }}>
674
+ Duration:{" "}
675
+ {formatDurationForChart(data.duration)} (Status:{" "}
676
+ {data.status})
677
+ </p>
678
+ </div>);
416
679
  }
417
680
  return null;
418
- }} cursor={{ fill: 'hsl(var(--muted))', fillOpacity: 0.3 }}/>
419
- <Bar dataKey="duration" name="Duration" fill={COLORS.failed} barSize={20}>
420
- <LabelList dataKey="durationFormatted" position="top" style={{ fontSize: '10px', fill: 'hsl(var(--destructive))' }}/>
421
- </Bar>
422
- </RechartsBarChart>
423
- </ResponsiveContainer>) : (<div className="flex flex-col items-center justify-center h-[250px] text-center">
424
- <CheckCircle className="h-12 w-12 text-green-500 mb-2"/>
425
- <p className="text-muted-foreground">No failed tests in this run!</p>
426
- </div>)}
427
- </div>
428
- </CardContent>
429
- </Card>
681
+ }} cursor={{ fill: "hsl(var(--muted))", fillOpacity: 0.3 }}/>
682
+ <Bar dataKey="duration" name="Duration" barSize={20}>
683
+ {slowestTestsData.map((entry, index) => (<Cell key={`cell-${index}`} fill={entry.status === "passed"
684
+ ? COLORS.passed
685
+ : entry.status === "failed" ||
686
+ entry.status === "timedOut"
687
+ ? COLORS.failed
688
+ : entry.status === "flaky"
689
+ ? COLORS.flaky
690
+ : COLORS.skipped}/>))}
691
+ <LabelList dataKey="durationFormatted" position="top" style={{
692
+ fontSize: "10px",
693
+ fill: "hsl(var(--foreground))",
694
+ }}/>
695
+ </Bar>
696
+ </RechartsBarChart>
697
+ </ResponsiveContainer>) : (<p className="text-muted-foreground h-[250px] flex items-center justify-center">
698
+ No test data to display for slowest tests.
699
+ </p>)}
700
+ </div>
701
+ </CardContent>
702
+ </Card>
703
+ </div>
430
704
 
431
- <Card className="lg:col-span-1 shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl">
432
- <CardHeader className="flex flex-row items-center justify-between">
433
- <div>
434
- <CardTitle className="text-lg font-semibold text-foreground">Slowest Tests (Top 5)</CardTitle>
435
- <CardDescription className="text-xs">Top 5 longest running tests in this run. Full names in tooltip.</CardDescription>
436
- </div>
705
+ {/* Full Width: Suite Overview */}
706
+ <Card className="shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group">
707
+ <CardHeader>
708
+ <CardTitle className="text-base font-semibold text-foreground group-hover:text-primary transition-colors">
709
+ Test Results by Suite
710
+ </CardTitle>
711
+ <CardDescription className="text-xs">
712
+ Breakdown of test outcomes per suite.
713
+ </CardDescription>
437
714
  </CardHeader>
438
- <CardContent>
439
- <div className="w-full h-[250px]">
440
- {slowestTestsData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
441
- <RechartsBarChart data={slowestTestsData} margin={{ top: 5, right: 5, left: 5, bottom: 30 }}>
715
+ <CardContent className="max-h-[400px] overflow-y-auto">
716
+ <div className="w-full" style={{
717
+ height: Math.max(250, testsPerSuiteChartData.length * 45 + 60),
718
+ }}>
719
+ {testsPerSuiteChartData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
720
+ <RechartsBarChart data={testsPerSuiteChartData} layout="vertical" margin={{ top: 5, right: 30, left: 20, bottom: 5 }}>
442
721
  <CartesianGrid strokeDasharray="3 3" stroke="hsl(var(--border))"/>
443
- <XAxis dataKey="name" tickLine={false} tickFormatter={() => ''} stroke="hsl(var(--muted-foreground))"/>
444
- <YAxis stroke="hsl(var(--muted-foreground))" fontSize={10} tickFormatter={(value) => formatDurationForChart(value)} domain={[0, (dataMax) => dataMax > 0 ? Math.round(dataMax * 1.20) : 100]}/>
445
- <RechartsRechartsTooltip content={({ active, payload, label }) => {
446
- if (active && payload && payload.length) {
447
- const data = payload[0].payload;
448
- return (<div className="bg-card p-3 border border-border rounded-md shadow-lg">
449
- <p className="label text-sm font-semibold text-foreground truncate max-w-xs" title={data.fullTestName}>{formatTestNameForChart(data.fullTestName)}</p>
450
- <p className="text-xs" style={{ color: data.status === 'passed' ? COLORS.passed : data.status === 'failed' || data.status === 'timedOut' ? COLORS.failed : COLORS.skipped }}>
451
- Duration: {formatDurationForChart(data.duration)} (Status: {data.status})
452
- </p>
453
- </div>);
454
- }
455
- return null;
456
- }} cursor={{ fill: 'hsl(var(--muted))', fillOpacity: 0.3 }}/>
457
- <Bar dataKey="duration" name="Duration" barSize={20}>
458
- {slowestTestsData.map((entry, index) => (<Cell key={`cell-${index}`} fill={entry.status === 'passed' ? COLORS.passed : entry.status === 'failed' || entry.status === 'timedOut' ? COLORS.failed : COLORS.skipped}/>))}
459
- <LabelList dataKey="durationFormatted" position="top" style={{ fontSize: '10px', fill: 'hsl(var(--foreground))' }}/>
460
- </Bar>
722
+ <XAxis type="number" stroke="hsl(var(--muted-foreground))" fontSize={10}/>
723
+ <YAxis dataKey="name" type="category" stroke="hsl(var(--muted-foreground))" fontSize={10} width={150} tickFormatter={(value) => value.length > 20 ? value.substring(0, 17) + "..." : value} interval={0}/>
724
+ <RechartsRechartsTooltip content={<CustomTooltip />} cursor={{ fill: "hsl(var(--muted))", fillOpacity: 0.3 }}/>
725
+ <Legend wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }}/>
726
+ <Bar dataKey="passed" name="Passed" stackId="suiteStack" fill={COLORS.passed} barSize={15}/>
727
+ <Bar dataKey="failed" name="Failed" stackId="suiteStack" fill={COLORS.failed} barSize={15}/>
728
+ <Bar dataKey="skipped" name="Skipped" stackId="suiteStack" fill={COLORS.skipped} barSize={15}/>
729
+ <Bar dataKey="flaky" name="Flaky" stackId="suiteStack" fill={COLORS.flaky} barSize={15}/>
730
+ {showPendingInSuiteChart && (<Bar dataKey="pending" name="Pending" stackId="suiteStack" fill={COLORS.pending} barSize={15}/>)}
461
731
  </RechartsBarChart>
462
- </ResponsiveContainer>) : (<p className="text-muted-foreground h-[250px] flex items-center justify-center">No test data to display for slowest tests.</p>)}
463
- </div>
464
- </CardContent>
465
- </Card>
466
-
467
- <Card className="lg:col-span-2 shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl">
468
- <CardHeader className="flex flex-row items-center justify-between">
469
- <div>
470
- <CardTitle className="text-lg font-semibold text-foreground">Tests per Suite</CardTitle>
471
- <CardDescription className="text-xs">Breakdown of test outcomes per suite.</CardDescription>
472
- </div>
473
- </CardHeader>
474
- <CardContent className="max-h-[400px] overflow-y-auto">
475
- <div className="w-full" style={{ height: Math.max(250, testsPerSuiteChartData.length * 45 + 60) }}>
476
- {testsPerSuiteChartData.length > 0 ? (<ResponsiveContainer width="100%" height="100%">
477
- <RechartsBarChart data={testsPerSuiteChartData} layout="vertical" margin={{ top: 5, right: 30, left: 20, bottom: 5 }}>
478
- <CartesianGrid strokeDasharray="3 3" stroke="hsl(var(--border))"/>
479
- <XAxis type="number" stroke="hsl(var(--muted-foreground))" fontSize={10}/>
480
- <YAxis dataKey="name" type="category" stroke="hsl(var(--muted-foreground))" fontSize={10} width={150} tickFormatter={(value) => value.length > 20 ? value.substring(0, 17) + '...' : value} interval={0}/>
481
- <RechartsRechartsTooltip content={<CustomTooltip />} cursor={{ fill: 'hsl(var(--muted))', fillOpacity: 0.3 }}/>
482
- <Legend wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }}/>
483
- <Bar dataKey="passed" name="Passed" stackId="suiteStack" fill={COLORS.passed} barSize={15}/>
484
- <Bar dataKey="failed" name="Failed" stackId="suiteStack" fill={COLORS.failed} barSize={15}/>
485
- <Bar dataKey="skipped" name="Skipped" stackId="suiteStack" fill={COLORS.skipped} barSize={15}/>
486
- {showPendingInSuiteChart && (<Bar dataKey="pending" name="Pending" stackId="suiteStack" fill={COLORS.pending} barSize={15}/>)}
487
- </RechartsBarChart>
488
- </ResponsiveContainer>) : (<div className="text-center text-muted-foreground h-[250px] flex items-center justify-center">No suite data.</div>)}
732
+ </ResponsiveContainer>) : (<div className="text-center text-muted-foreground h-[250px] flex items-center justify-center">
733
+ No suite data.
734
+ </div>)}
489
735
  </div>
490
736
  </CardContent>
491
737
  </Card>
492
738
 
493
-
494
- <Card className="lg:col-span-2 shadow-lg hover:shadow-xl transition-shadow duration-300 rounded-xl">
739
+ {/* Full Width: Worker Utilization */}
740
+ <Card className="shadow-lg hover:shadow-2xl transition-all duration-300 rounded-xl border-0 bg-gradient-to-br from-card via-card to-card/95 group">
495
741
  <CardHeader>
496
742
  <div className="flex flex-row items-center justify-between">
497
- <CardTitle className="text-lg font-semibold text-primary flex items-center">
498
- <Users className="h-5 w-5 mr-2"/> Worker Utilization
499
- </CardTitle>
743
+ <div>
744
+ <CardTitle className="text-lg font-semibold text-foreground group-hover:text-primary transition-colors">
745
+ Worker Utilization
746
+ </CardTitle>
747
+ <CardDescription className="text-xs">
748
+ Filter and inspect tests chronologically for each worker. Slice
749
+ size represents test duration.
750
+ </CardDescription>
751
+ </div>
752
+ <div className="h-10 w-10 rounded-full bg-gradient-to-br from-primary/10 to-primary/5 flex items-center justify-center">
753
+ <Users className="h-5 w-5 text-primary"/>
754
+ </div>
500
755
  </div>
501
- <CardDescription className="text-xs">
502
- Filter and inspect tests chronologically for each worker. Slice size represents test duration.
503
- </CardDescription>
504
756
  </CardHeader>
505
757
  <CardContent>
506
- <div className="flex flex-col sm:flex-row items-center justify-between gap-4 mb-6">
758
+ <div className="flex flex-col sm:flex-row items-center justify-between gap-4 mb-6 p-6 border border-border/50 rounded-xl bg-muted/40 shadow-inner backdrop-blur-sm">
507
759
  <div className="relative w-full sm:max-w-xs">
508
760
  <Search className="absolute left-2.5 top-2.5 h-4 w-4 text-muted-foreground"/>
509
761
  <Input placeholder="Filter by test name..." value={testNameFilter} onChange={(e) => setTestNameFilter(e.target.value)} className="pl-8 w-full"/>
@@ -516,25 +768,33 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
516
768
  </SelectTrigger>
517
769
  <SelectContent>
518
770
  <SelectItem value="all">All Suites</SelectItem>
519
- {availableSuites.map(suite => (<SelectItem key={suite} value={suite}>{suite}</SelectItem>))}
771
+ {availableSuites.map((suite) => (<SelectItem key={suite} value={suite}>
772
+ {suite}
773
+ </SelectItem>))}
520
774
  </SelectContent>
521
775
  </Select>
522
776
 
523
777
  <DropdownMenu>
524
778
  <DropdownMenuTrigger asChild>
525
779
  <Button variant="outline" className="w-full sm:w-[180px] justify-between">
526
- <span>Workers ({workerFilter.length}/{availableWorkers.length})</span>
780
+ <span>
781
+ Workers ({workerFilter.length}/{availableWorkers.length})
782
+ </span>
527
783
  <ListFilter className="h-4 w-4"/>
528
784
  </Button>
529
785
  </DropdownMenuTrigger>
530
786
  <DropdownMenuContent className="w-56" align="end">
531
787
  <DropdownMenuLabel>Visible Workers</DropdownMenuLabel>
532
788
  <DropdownMenuSeparator />
533
- {availableWorkers.length > 0 ? availableWorkers.map(workerId => (<DropdownMenuCheckboxItem key={workerId} checked={workerFilter.includes(workerId)} onCheckedChange={(checked) => {
534
- setWorkerFilter(prev => checked ? [...prev, workerId] : prev.filter(id => id !== workerId));
789
+ {availableWorkers.length > 0 ? (availableWorkers.map((workerId) => (<DropdownMenuCheckboxItem key={workerId} checked={workerFilter.includes(workerId)} onCheckedChange={(checked) => {
790
+ setWorkerFilter((prev) => checked
791
+ ? [...prev, workerId]
792
+ : prev.filter((id) => id !== workerId));
535
793
  }}>
536
- Worker {workerId}
537
- </DropdownMenuCheckboxItem>)) : <DropdownMenuLabel className="font-normal text-muted-foreground">No workers found</DropdownMenuLabel>}
794
+ Worker {workerId}
795
+ </DropdownMenuCheckboxItem>))) : (<DropdownMenuLabel className="font-normal text-muted-foreground">
796
+ No workers found
797
+ </DropdownMenuLabel>)}
538
798
  </DropdownMenuContent>
539
799
  </DropdownMenu>
540
800
 
@@ -553,60 +813,95 @@ export function DashboardOverviewCharts({ currentRun, loading, error }) {
553
813
  </TooltipProvider>)}
554
814
  </div>
555
815
  </div>
556
-
816
+
557
817
  {workerDonutData.length > 0 ? (<div className="grid gap-8 md:grid-cols-2 lg:grid-cols-3">
558
818
  {workerDonutData.map(({ workerId, tests, totalDuration }) => (<LazyChartWrapper key={workerId}>
559
819
  <div className="flex flex-col items-center">
560
- <h4 className="font-semibold text-center mb-2">Worker {workerId}</h4>
820
+ <h4 className="font-semibold text-center mb-2">
821
+ Worker {workerId}
822
+ </h4>
561
823
  <div className="w-full h-[250px] relative">
562
824
  <ResponsiveContainer width="100%" height="100%">
563
825
  <RechartsPieChart>
564
826
  <Pie data={tests} dataKey="duration" nameKey="name" cx="50%" cy="50%" innerRadius={60} outerRadius={80} paddingAngle={2} stroke="hsl(var(--card))">
565
- {tests.map((test, index) => (<Cell key={`cell-${index}`} fill={COLORS[test.status] || COLORS.default1}/>))}
827
+ {tests.map((test, index) => (<Cell key={`cell-${index}`} fill={COLORS[test.status] ||
828
+ COLORS.default1}/>))}
566
829
  </Pie>
567
- <RechartsRechartsTooltip content={({ active, payload }) => {
830
+ <RechartsRechartsTooltip content={({ active, payload, }) => {
568
831
  if (active && payload && payload.length) {
569
- const data = payload[0].payload;
570
- return (<div className="bg-background p-3 border border-border rounded-md shadow-lg max-w-sm">
832
+ const data = payload[0]
833
+ .payload;
834
+ return (<div className="bg-background p-3 border border-border rounded-xl shadow-lg max-w-sm">
571
835
  <p className="label text-sm font-semibold text-foreground truncate" title={data.name}>
572
836
  {formatTestNameForChart(data.name)}
573
837
  </p>
574
- <p className="text-xs text-muted-foreground mt-1">Suite: {data.suiteName || 'N/A'}</p>
575
- <p className="text-xs" style={{ color: payload[0].color || COLORS.default1 }}>
838
+ <p className="text-xs text-muted-foreground mt-1">
839
+ Suite: {data.suiteName || "N/A"}
840
+ </p>
841
+ <p className="text-xs" style={{
842
+ color: payload[0].color || COLORS.default1,
843
+ }}>
576
844
  Status: {data.status}
577
845
  </p>
578
846
  <p className="text-xs text-muted-foreground">
579
- Duration: {formatDurationForChart(data.duration)}
847
+ Duration:{" "}
848
+ {formatDurationForChart(data.duration)}
580
849
  </p>
581
850
  </div>);
582
851
  }
583
852
  return null;
584
853
  }}/>
585
- <Legend iconSize={10} layout="horizontal" verticalAlign="bottom" align="center" wrapperStyle={{ fontSize: "12px", paddingTop: "10px" }} payload={[
586
- { value: 'Passed', type: 'square', id: 'ID01', color: COLORS.passed },
587
- { value: 'Failed', type: 'square', id: 'ID02', color: COLORS.failed },
588
- { value: 'Skipped', type: 'square', id: 'ID03', color: COLORS.skipped }
854
+ <Legend iconSize={10} layout="horizontal" verticalAlign="bottom" align="center" wrapperStyle={{
855
+ fontSize: "12px",
856
+ paddingTop: "10px",
857
+ }} payload={[
858
+ {
859
+ value: "Passed",
860
+ type: "square",
861
+ id: "ID01",
862
+ color: COLORS.passed,
863
+ },
864
+ {
865
+ value: "Failed",
866
+ type: "square",
867
+ id: "ID02",
868
+ color: COLORS.failed,
869
+ },
870
+ {
871
+ value: "Skipped",
872
+ type: "square",
873
+ id: "ID03",
874
+ color: COLORS.skipped,
875
+ },
876
+ {
877
+ value: "Flaky",
878
+ type: "square",
879
+ id: "ID04",
880
+ color: COLORS.flaky,
881
+ },
589
882
  ]}/>
590
883
  </RechartsPieChart>
591
884
  </ResponsiveContainer>
592
- <div className="absolute top-1/2 left-1/2 z-10 -translate-x-1/2 -translate-y-1/2 text-center pointer-events-none" style={{ marginTop: '-20px' }}>
593
- <div className="text-xs text-muted-foreground">Total</div>
594
- <div className="text-lg font-bold text-foreground">{formatDurationForChart(totalDuration)}</div>
885
+ <div className="absolute top-1/2 left-1/2 z-10 -translate-x-1/2 -translate-y-1/2 text-center pointer-events-none" style={{ marginTop: "-20px" }}>
886
+ <div className="text-xs text-muted-foreground">
887
+ Total
888
+ </div>
889
+ <div className="text-lg font-bold text-foreground">
890
+ {formatDurationForChart(totalDuration)}
891
+ </div>
595
892
  </div>
596
893
  </div>
597
894
  </div>
598
895
  </LazyChartWrapper>))}
599
- </div>) : (<div className="flex flex-col items-center justify-center h-[200px] text-center p-4 rounded-lg bg-muted/60">
600
- <Info className="h-8 w-8 text-muted-foreground mb-3"/>
601
- <p className="font-semibold text-foreground">No Matching Data</p>
602
- <p className="text-muted-foreground text-sm mt-1">
603
- Adjust your filters or verify the run data.
604
- </p>
896
+ </div>) : (<div className="flex flex-col items-center justify-center h-[200px] text-center p-4 rounded-2xl bg-muted/60">
897
+ <Info className="h-8 w-8 text-muted-foreground mb-3"/>
898
+ <p className="font-semibold text-foreground">No Matching Data</p>
899
+ <p className="text-muted-foreground text-sm mt-1">
900
+ Adjust your filters or verify the run data.
901
+ </p>
605
902
  </div>)}
606
903
  </CardContent>
607
904
  </Card>
608
-
609
-
610
905
  </div>);
611
906
  }
612
907
  //# sourceMappingURL=DashboardOverviewCharts.jsx.map