@bundle-stats/ui 4.13.0-beta.9 → 4.13.0-rc.0

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 (198) hide show
  1. package/lib/app/app.js +4 -8
  2. package/lib/app/app.js.map +1 -1
  3. package/lib/app/app.module.css +2 -2
  4. package/lib/assets/icons.svg +70 -67
  5. package/lib/assets/icons.svg.js +14 -12
  6. package/lib/assets/icons.svg.js.map +1 -1
  7. package/lib/components/bundle-assets/bundle-assets.js +44 -10
  8. package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
  9. package/lib/components/bundle-assets/bundle-assets.module.css +0 -5
  10. package/lib/components/bundle-assets-totals/bundle-assets-totals.js +14 -12
  11. package/lib/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
  12. package/lib/components/bundle-modules/bundle-modules.i18n.js +1 -1
  13. package/lib/components/bundle-modules/bundle-modules.js +38 -15
  14. package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
  15. package/lib/components/bundle-modules/bundle-modules.module.css +0 -5
  16. package/lib/components/bundle-packages/bundle-packages.js +43 -9
  17. package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
  18. package/lib/components/bundle-packages/bundle-packages.module.css +0 -5
  19. package/lib/components/delta/delta.js +1 -1
  20. package/lib/components/delta/delta.js.map +1 -1
  21. package/lib/components/delta/delta.module.css +10 -1
  22. package/lib/components/jobs-header/jobs-header.module.css +0 -4
  23. package/lib/components/metrics-display-selector/metrics-display-selector.js +41 -4
  24. package/lib/components/metrics-display-selector/metrics-display-selector.js.map +1 -1
  25. package/lib/components/metrics-display-selector/metrics-display-selector.module.css +15 -7
  26. package/lib/components/metrics-treemap/index.js +4 -0
  27. package/lib/components/metrics-treemap/index.js.map +1 -1
  28. package/lib/components/metrics-treemap/metrics-treemap.constants.js +3 -0
  29. package/lib/components/metrics-treemap/metrics-treemap.constants.js.map +1 -0
  30. package/lib/components/metrics-treemap/metrics-treemap.i18n.js +6 -0
  31. package/lib/components/metrics-treemap/metrics-treemap.i18n.js.map +1 -0
  32. package/lib/components/metrics-treemap/metrics-treemap.js +100 -62
  33. package/lib/components/metrics-treemap/metrics-treemap.js.map +1 -1
  34. package/lib/components/metrics-treemap/metrics-treemap.module.css +139 -51
  35. package/lib/components/metrics-treemap/metrics-treemap.utils.js +109 -0
  36. package/lib/components/metrics-treemap/metrics-treemap.utils.js.map +1 -0
  37. package/lib/components/module-info/module-info.js +1 -2
  38. package/lib/components/module-info/module-info.js.map +1 -1
  39. package/lib/components/run-info/run-info.module.css +7 -7
  40. package/lib/css/variables.css +14 -13
  41. package/lib/hooks/metrics-display-type.js +45 -24
  42. package/lib/hooks/metrics-display-type.js.map +1 -1
  43. package/lib/hooks/search-params.js +1 -0
  44. package/lib/hooks/search-params.js.map +1 -1
  45. package/lib/layout/box/box.module.css +4 -2
  46. package/lib/layout/flex-stack/flex-stack.js +3 -4
  47. package/lib/layout/flex-stack/flex-stack.js.map +1 -1
  48. package/lib/layout/flex-stack/flex-stack.module.css +19 -23
  49. package/lib/ui/button/button.js +5 -4
  50. package/lib/ui/button/button.js.map +1 -1
  51. package/lib/ui/button/button.module.css +55 -53
  52. package/lib/ui/dropdown/dropdown.js +2 -2
  53. package/lib/ui/dropdown/dropdown.js.map +1 -1
  54. package/lib/ui/filters/filters.js +2 -2
  55. package/lib/ui/filters/filters.js.map +1 -1
  56. package/lib/ui/filters/filters.module.css +8 -1
  57. package/lib/ui/hover-card/hover-card.js +1 -1
  58. package/lib/ui/hover-card/hover-card.js.map +1 -1
  59. package/lib/ui/icon/icon.js +2 -1
  60. package/lib/ui/icon/icon.js.map +1 -1
  61. package/lib/ui/input-search/input-search.js +1 -1
  62. package/lib/ui/input-search/input-search.js.map +1 -1
  63. package/lib/ui/loader/loader.js +1 -1
  64. package/lib/ui/loader/loader.js.map +1 -1
  65. package/lib/ui/table/table.module.css +30 -0
  66. package/lib/ui/tag/tag.module.css +3 -3
  67. package/lib/ui/toolbar/toolbar.module.css +1 -3
  68. package/lib-esm/app/app.js +4 -8
  69. package/lib-esm/app/app.js.map +1 -1
  70. package/lib-esm/app/app.module.css +2 -2
  71. package/lib-esm/assets/icons.svg +70 -67
  72. package/lib-esm/assets/icons.svg.js +14 -12
  73. package/lib-esm/assets/icons.svg.js.map +1 -1
  74. package/lib-esm/components/bundle-assets/bundle-assets.js +45 -11
  75. package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
  76. package/lib-esm/components/bundle-assets/bundle-assets.module.css +0 -5
  77. package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js +15 -13
  78. package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
  79. package/lib-esm/components/bundle-modules/bundle-modules.i18n.js +1 -1
  80. package/lib-esm/components/bundle-modules/bundle-modules.js +39 -16
  81. package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
  82. package/lib-esm/components/bundle-modules/bundle-modules.module.css +0 -5
  83. package/lib-esm/components/bundle-packages/bundle-packages.js +44 -10
  84. package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
  85. package/lib-esm/components/bundle-packages/bundle-packages.module.css +0 -5
  86. package/lib-esm/components/delta/delta.js +1 -1
  87. package/lib-esm/components/delta/delta.js.map +1 -1
  88. package/lib-esm/components/delta/delta.module.css +10 -1
  89. package/lib-esm/components/jobs-header/jobs-header.module.css +0 -4
  90. package/lib-esm/components/metrics-display-selector/metrics-display-selector.js +41 -4
  91. package/lib-esm/components/metrics-display-selector/metrics-display-selector.js.map +1 -1
  92. package/lib-esm/components/metrics-display-selector/metrics-display-selector.module.css +15 -7
  93. package/lib-esm/components/metrics-treemap/index.js +1 -0
  94. package/lib-esm/components/metrics-treemap/index.js.map +1 -1
  95. package/lib-esm/components/metrics-treemap/metrics-treemap.constants.js +2 -0
  96. package/lib-esm/components/metrics-treemap/metrics-treemap.constants.js.map +1 -0
  97. package/lib-esm/components/metrics-treemap/metrics-treemap.i18n.js +3 -0
  98. package/lib-esm/components/metrics-treemap/metrics-treemap.i18n.js.map +1 -0
  99. package/lib-esm/components/metrics-treemap/metrics-treemap.js +102 -63
  100. package/lib-esm/components/metrics-treemap/metrics-treemap.js.map +1 -1
  101. package/lib-esm/components/metrics-treemap/metrics-treemap.module.css +139 -51
  102. package/lib-esm/components/metrics-treemap/metrics-treemap.utils.js +105 -0
  103. package/lib-esm/components/metrics-treemap/metrics-treemap.utils.js.map +1 -0
  104. package/lib-esm/components/module-info/module-info.js +1 -2
  105. package/lib-esm/components/module-info/module-info.js.map +1 -1
  106. package/lib-esm/components/run-info/run-info.module.css +7 -7
  107. package/lib-esm/css/variables.css +14 -13
  108. package/lib-esm/hooks/metrics-display-type.js +46 -24
  109. package/lib-esm/hooks/metrics-display-type.js.map +1 -1
  110. package/lib-esm/hooks/search-params.js +1 -0
  111. package/lib-esm/hooks/search-params.js.map +1 -1
  112. package/lib-esm/layout/box/box.module.css +4 -2
  113. package/lib-esm/layout/flex-stack/flex-stack.js +3 -4
  114. package/lib-esm/layout/flex-stack/flex-stack.js.map +1 -1
  115. package/lib-esm/layout/flex-stack/flex-stack.module.css +19 -23
  116. package/lib-esm/ui/button/button.js +5 -4
  117. package/lib-esm/ui/button/button.js.map +1 -1
  118. package/lib-esm/ui/button/button.module.css +55 -53
  119. package/lib-esm/ui/dropdown/dropdown.js +2 -2
  120. package/lib-esm/ui/dropdown/dropdown.js.map +1 -1
  121. package/lib-esm/ui/filters/filters.js +2 -2
  122. package/lib-esm/ui/filters/filters.js.map +1 -1
  123. package/lib-esm/ui/filters/filters.module.css +8 -1
  124. package/lib-esm/ui/hover-card/hover-card.js +1 -1
  125. package/lib-esm/ui/hover-card/hover-card.js.map +1 -1
  126. package/lib-esm/ui/icon/icon.js +2 -1
  127. package/lib-esm/ui/icon/icon.js.map +1 -1
  128. package/lib-esm/ui/input-search/input-search.js +1 -1
  129. package/lib-esm/ui/input-search/input-search.js.map +1 -1
  130. package/lib-esm/ui/loader/loader.js +1 -1
  131. package/lib-esm/ui/loader/loader.js.map +1 -1
  132. package/lib-esm/ui/table/table.module.css +30 -0
  133. package/lib-esm/ui/tag/tag.module.css +3 -3
  134. package/lib-esm/ui/toolbar/toolbar.module.css +1 -3
  135. package/package.json +9 -9
  136. package/src/app/app.jsx +4 -12
  137. package/src/app/app.module.css +2 -2
  138. package/src/assets/icons/check.svg +4 -0
  139. package/src/assets/icons.svg +70 -67
  140. package/src/assets/icons.svg.jsx +12 -12
  141. package/src/components/bundle-assets/bundle-assets.jsx +82 -25
  142. package/src/components/bundle-assets/bundle-assets.module.css +0 -5
  143. package/src/components/bundle-assets-totals/bundle-assets-totals.jsx +53 -46
  144. package/src/components/bundle-modules/bundle-modules.i18n.ts +1 -1
  145. package/src/components/bundle-modules/bundle-modules.module.css +0 -5
  146. package/src/components/bundle-modules/bundle-modules.tsx +116 -53
  147. package/src/components/bundle-packages/bundle-packages.jsx +77 -20
  148. package/src/components/bundle-packages/bundle-packages.module.css +0 -5
  149. package/src/components/delta/delta.jsx +1 -1
  150. package/src/components/delta/delta.module.css +10 -1
  151. package/src/components/jobs-header/jobs-header.module.css +0 -4
  152. package/src/components/metrics-display-selector/metrics-display-selector.module.css +15 -7
  153. package/src/components/metrics-display-selector/metrics-display-selector.stories.tsx +33 -0
  154. package/src/components/metrics-display-selector/metrics-display-selector.tsx +83 -25
  155. package/src/components/metrics-treemap/__tests__/metrics-treemap.utils.ts +188 -0
  156. package/src/components/metrics-treemap/index.ts +1 -0
  157. package/src/components/metrics-treemap/metrics-treemap.constants.ts +52 -0
  158. package/src/components/metrics-treemap/metrics-treemap.i18n.ts +2 -0
  159. package/src/components/metrics-treemap/metrics-treemap.module.css +139 -51
  160. package/src/components/metrics-treemap/metrics-treemap.stories.tsx +44 -10
  161. package/src/components/metrics-treemap/metrics-treemap.tsx +329 -121
  162. package/src/components/metrics-treemap/metrics-treemap.utils.ts +162 -0
  163. package/src/components/module-info/module-info.tsx +1 -1
  164. package/src/components/run-info/run-info.module.css +7 -7
  165. package/src/css/variables.css +14 -13
  166. package/src/hooks/metrics-display-type.ts +79 -29
  167. package/src/hooks/search-params.js +1 -0
  168. package/src/layout/box/box.module.css +4 -2
  169. package/src/layout/flex-stack/flex-stack.module.css +19 -23
  170. package/src/layout/flex-stack/flex-stack.tsx +2 -8
  171. package/src/ui/button/button.module.css +55 -53
  172. package/src/ui/button/button.stories.tsx +16 -9
  173. package/src/ui/button/button.tsx +8 -7
  174. package/src/ui/dropdown/dropdown.tsx +2 -3
  175. package/src/ui/filters/filters.module.css +8 -1
  176. package/src/ui/filters/filters.tsx +2 -3
  177. package/src/ui/hover-card/hover-card.tsx +1 -1
  178. package/src/ui/icon/icon.tsx +2 -1
  179. package/src/ui/input-search/input-search.tsx +1 -0
  180. package/src/ui/loader/loader.jsx +1 -1
  181. package/src/ui/table/table.module.css +30 -0
  182. package/src/ui/tag/tag.module.css +3 -3
  183. package/src/ui/toolbar/toolbar.module.css +1 -3
  184. package/types/components/bundle-modules/bundle-modules.i18n.d.ts +1 -1
  185. package/types/components/delta/delta.d.ts +2 -2
  186. package/types/components/metrics-display-selector/metrics-display-selector.d.ts +3 -1
  187. package/types/components/metrics-treemap/index.d.ts +1 -0
  188. package/types/components/metrics-treemap/metrics-treemap.constants.d.ts +20 -0
  189. package/types/components/metrics-treemap/metrics-treemap.d.ts +7 -5
  190. package/types/components/metrics-treemap/metrics-treemap.i18n.d.ts +2 -0
  191. package/types/components/metrics-treemap/metrics-treemap.utils.d.ts +5 -0
  192. package/types/hooks/metrics-display-type.d.ts +8 -2
  193. package/types/ui/dropdown/dropdown.d.ts +0 -1
  194. package/types/ui/icon/icon.d.ts +4 -2
  195. package/types/ui/loader/loader.d.ts +2 -2
  196. package/lib/components/bundle-assets-totals/bundle-assets-totals.module.css +0 -7
  197. package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.module.css +0 -7
  198. package/src/components/bundle-assets-totals/bundle-assets-totals.module.css +0 -7
@@ -1,69 +1,72 @@
1
1
  <svg width="0" height="0" style="position:absolute">
2
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down" id="arrow" xmlns="http://www.w3.org/2000/svg">
3
- <path d="M12 5v14M19 12l-7 7-7-7"/>
4
- </symbol>
5
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle" viewBox="0 0 24 24" id="arrow-right-circle" xmlns="http://www.w3.org/2000/svg">
6
- <circle cx="12" cy="12" r="10"/>
7
- <path d="m12 16 4-4-4-4M8 12h8"/>
8
- </symbol>
9
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-down" viewBox="0 0 24 24" id="chevron-down" xmlns="http://www.w3.org/2000/svg">
10
- <path d="m6 9 6 6 6-6"/>
11
- </symbol>
12
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-chevron-up" viewBox="0 0 24 24" id="chevron-up" xmlns="http://www.w3.org/2000/svg">
13
- <path d="m18 15-6-6-6 6"/>
14
- </symbol>
15
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-clock" id="clock" xmlns="http://www.w3.org/2000/svg">
16
- <circle cx="12" cy="12" r="10"/>
17
- <path d="M12 6v6l4 2"/>
18
- </symbol>
19
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x-circle" viewBox="0 0 24 24" id="close" xmlns="http://www.w3.org/2000/svg">
20
- <circle cx="12" cy="12" r="10"/>
21
- <path d="m15 9-6 6M9 9l6 6"/>
22
- </symbol>
23
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-git-commit" id="commit" xmlns="http://www.w3.org/2000/svg">
24
- <circle cx="12" cy="12" r="4"/>
25
- <path d="M1.05 12H7M17.01 12h5.95"/>
26
- </symbol>
27
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="error" xmlns="http://www.w3.org/2000/svg">
28
- <circle cx="12" cy="12" r="10"/>
29
- <path d="M12 8v4M12 16h.01"/>
30
- </symbol>
31
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-external-link" viewBox="0 0 24 24" id="external-link" xmlns="http://www.w3.org/2000/svg">
32
- <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3"/>
33
- </symbol>
34
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-bar-chart" id="filter" xmlns="http://www.w3.org/2000/svg">
35
- <path d="M12 20V10M18 20V4M6 20v-4"/>
36
- </symbol>
37
- <symbol viewBox="0 0 98 96" id="github" xmlns="http://www.w3.org/2000/svg">
38
- <path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="currentColor"/>
39
- </symbol>
40
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-help-circle" id="help" xmlns="http://www.w3.org/2000/svg">
41
- <circle cx="12" cy="12" r="10"/>
42
- <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"/>
43
- </symbol>
44
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="info" xmlns="http://www.w3.org/2000/svg">
45
- <circle cx="12" cy="12" r="10"/>
46
- <path d="M12 16v-4M12 8h.01"/>
47
- </symbol>
48
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-menu" id="menu" xmlns="http://www.w3.org/2000/svg">
49
- <path d="M3 12h18M3 6h18M3 18h18"/>
50
- </symbol>
51
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="more-vertical" xmlns="http://www.w3.org/2000/svg">
52
- <circle cx="12" cy="12" r="1"/>
53
- <circle cx="12" cy="5" r="1"/>
54
- <circle cx="12" cy="19" r="1"/>
55
- </symbol>
56
- <symbol viewBox="0 0 24 24" fill="currentColor" id="sort" xmlns="http://www.w3.org/2000/svg">
57
- <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
58
- <path d="M0 0h24v24H0z" fill="none"/>
59
- </symbol>
60
- <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="table" xmlns="http://www.w3.org/2000/svg">
61
- <path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>
62
- </symbol>
63
- <symbol fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" id="treemap" xmlns="http://www.w3.org/2000/svg">
64
- <path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 21h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9M12.025 3.422 12 20.652ZM12.85 9l7.347.025zm-.153 6 7.576.025zm4.334.764L17 20.326Z"/>
65
- </symbol>
66
- <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-alert-triangle" id="warning" xmlns="http://www.w3.org/2000/svg">
67
- <path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9v4M12 17h.01"/>
68
- </symbol>
2
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="arrow" xmlns="http://www.w3.org/2000/svg">
3
+ <path d="M12 5v14M19 12l-7 7-7-7"/>
4
+ </symbol>
5
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="arrow-right-circle" xmlns="http://www.w3.org/2000/svg">
6
+ <circle cx="12" cy="12" r="10"/>
7
+ <path d="m12 16 4-4-4-4M8 12h8"/>
8
+ </symbol>
9
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="check" xmlns="http://www.w3.org/2000/svg">
10
+ <path d="M20 6 9 17l-5-5"/>
11
+ </symbol>
12
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="chevron-down" xmlns="http://www.w3.org/2000/svg">
13
+ <path d="m6 9 6 6 6-6"/>
14
+ </symbol>
15
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="chevron-up" xmlns="http://www.w3.org/2000/svg">
16
+ <path d="m18 15-6-6-6 6"/>
17
+ </symbol>
18
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="clock" xmlns="http://www.w3.org/2000/svg">
19
+ <circle cx="12" cy="12" r="10"/>
20
+ <path d="M12 6v6l4 2"/>
21
+ </symbol>
22
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="close" xmlns="http://www.w3.org/2000/svg">
23
+ <circle cx="12" cy="12" r="10"/>
24
+ <path d="m15 9-6 6M9 9l6 6"/>
25
+ </symbol>
26
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="commit" xmlns="http://www.w3.org/2000/svg">
27
+ <circle cx="12" cy="12" r="4"/>
28
+ <path d="M1.05 12H7M17.01 12h5.95"/>
29
+ </symbol>
30
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="error" xmlns="http://www.w3.org/2000/svg">
31
+ <circle cx="12" cy="12" r="10"/>
32
+ <path d="M12 8v4M12 16h.01"/>
33
+ </symbol>
34
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="external-link" xmlns="http://www.w3.org/2000/svg">
35
+ <path d="M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6M15 3h6v6M10 14 21 3"/>
36
+ </symbol>
37
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="filter" xmlns="http://www.w3.org/2000/svg">
38
+ <path d="M12 20V10M18 20V4M6 20v-4"/>
39
+ </symbol>
40
+ <symbol viewBox="0 0 98 96" id="github" xmlns="http://www.w3.org/2000/svg">
41
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z" fill="currentColor"/>
42
+ </symbol>
43
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="help" xmlns="http://www.w3.org/2000/svg">
44
+ <circle cx="12" cy="12" r="10"/>
45
+ <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3M12 17h.01"/>
46
+ </symbol>
47
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="info" xmlns="http://www.w3.org/2000/svg">
48
+ <circle cx="12" cy="12" r="10"/>
49
+ <path d="M12 16v-4M12 8h.01"/>
50
+ </symbol>
51
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="menu" xmlns="http://www.w3.org/2000/svg">
52
+ <path d="M3 12h18M3 6h18M3 18h18"/>
53
+ </symbol>
54
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="more-vertical" xmlns="http://www.w3.org/2000/svg">
55
+ <circle cx="12" cy="12" r="1"/>
56
+ <circle cx="12" cy="5" r="1"/>
57
+ <circle cx="12" cy="19" r="1"/>
58
+ </symbol>
59
+ <symbol viewBox="0 0 24 24" fill="currentColor" id="sort" xmlns="http://www.w3.org/2000/svg">
60
+ <path d="M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"/>
61
+ <path d="M0 0h24v24H0z" fill="none"/>
62
+ </symbol>
63
+ <symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 24 24" id="table" xmlns="http://www.w3.org/2000/svg">
64
+ <path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18"/>
65
+ </symbol>
66
+ <symbol fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" viewBox="0 0 24 24" id="treemap" xmlns="http://www.w3.org/2000/svg">
67
+ <path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 21h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9M12.025 3.422 12 20.652ZM12.85 9l7.347.025zm-.153 6 7.576.025zm4.334.764L17 20.326Z"/>
68
+ </symbol>
69
+ <symbol viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="warning" xmlns="http://www.w3.org/2000/svg">
70
+ <path d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0zM12 9v4M12 17h.01"/>
71
+ </symbol>
69
72
  </svg>
@@ -9,7 +9,6 @@ export const SvgIcons = (props) => (
9
9
  strokeWidth="2"
10
10
  strokeLinecap="round"
11
11
  strokeLinejoin="round"
12
- className="feather feather-arrow-down"
13
12
  id="arrow"
14
13
  xmlns="http://www.w3.org/2000/svg"
15
14
  >
@@ -21,7 +20,6 @@ export const SvgIcons = (props) => (
21
20
  strokeWidth="2"
22
21
  strokeLinecap="round"
23
22
  strokeLinejoin="round"
24
- className="feather feather-arrow-right-circle"
25
23
  viewBox="0 0 24 24"
26
24
  id="arrow-right-circle"
27
25
  xmlns="http://www.w3.org/2000/svg"
@@ -29,13 +27,24 @@ export const SvgIcons = (props) => (
29
27
  <circle cx="12" cy="12" r="10" />
30
28
  <path d="m12 16 4-4-4-4M8 12h8" />
31
29
  </symbol>
30
+ <symbol
31
+ viewBox="0 0 24 24"
32
+ fill="none"
33
+ stroke="currentColor"
34
+ strokeWidth="2"
35
+ strokeLinecap="round"
36
+ strokeLinejoin="round"
37
+ id="check"
38
+ xmlns="http://www.w3.org/2000/svg"
39
+ >
40
+ <path d="M20 6 9 17l-5-5" />
41
+ </symbol>
32
42
  <symbol
33
43
  fill="none"
34
44
  stroke="currentColor"
35
45
  strokeWidth="2"
36
46
  strokeLinecap="round"
37
47
  strokeLinejoin="round"
38
- className="lucide lucide-chevron-down"
39
48
  viewBox="0 0 24 24"
40
49
  id="chevron-down"
41
50
  xmlns="http://www.w3.org/2000/svg"
@@ -48,7 +57,6 @@ export const SvgIcons = (props) => (
48
57
  strokeWidth="2"
49
58
  strokeLinecap="round"
50
59
  strokeLinejoin="round"
51
- className="lucide lucide-chevron-up"
52
60
  viewBox="0 0 24 24"
53
61
  id="chevron-up"
54
62
  xmlns="http://www.w3.org/2000/svg"
@@ -62,7 +70,6 @@ export const SvgIcons = (props) => (
62
70
  strokeWidth="2"
63
71
  strokeLinecap="round"
64
72
  strokeLinejoin="round"
65
- className="feather feather-clock"
66
73
  id="clock"
67
74
  xmlns="http://www.w3.org/2000/svg"
68
75
  >
@@ -75,7 +82,6 @@ export const SvgIcons = (props) => (
75
82
  strokeWidth="2"
76
83
  strokeLinecap="round"
77
84
  strokeLinejoin="round"
78
- className="feather feather-x-circle"
79
85
  viewBox="0 0 24 24"
80
86
  id="close"
81
87
  xmlns="http://www.w3.org/2000/svg"
@@ -90,7 +96,6 @@ export const SvgIcons = (props) => (
90
96
  strokeWidth="2"
91
97
  strokeLinecap="round"
92
98
  strokeLinejoin="round"
93
- className="feather feather-git-commit"
94
99
  id="commit"
95
100
  xmlns="http://www.w3.org/2000/svg"
96
101
  >
@@ -116,7 +121,6 @@ export const SvgIcons = (props) => (
116
121
  strokeWidth="2"
117
122
  strokeLinecap="round"
118
123
  strokeLinejoin="round"
119
- className="feather feather-external-link"
120
124
  viewBox="0 0 24 24"
121
125
  id="external-link"
122
126
  xmlns="http://www.w3.org/2000/svg"
@@ -130,7 +134,6 @@ export const SvgIcons = (props) => (
130
134
  strokeWidth="2"
131
135
  strokeLinecap="round"
132
136
  strokeLinejoin="round"
133
- className="feather feather-bar-chart"
134
137
  id="filter"
135
138
  xmlns="http://www.w3.org/2000/svg"
136
139
  >
@@ -151,7 +154,6 @@ export const SvgIcons = (props) => (
151
154
  strokeWidth="2"
152
155
  strokeLinecap="round"
153
156
  strokeLinejoin="round"
154
- className="feather feather-help-circle"
155
157
  id="help"
156
158
  xmlns="http://www.w3.org/2000/svg"
157
159
  >
@@ -178,7 +180,6 @@ export const SvgIcons = (props) => (
178
180
  strokeWidth="2"
179
181
  strokeLinecap="round"
180
182
  strokeLinejoin="round"
181
- className="feather feather-menu"
182
183
  id="menu"
183
184
  xmlns="http://www.w3.org/2000/svg"
184
185
  >
@@ -233,7 +234,6 @@ export const SvgIcons = (props) => (
233
234
  strokeWidth="2"
234
235
  strokeLinecap="round"
235
236
  strokeLinejoin="round"
236
- className="feather feather-alert-triangle"
237
237
  id="warning"
238
238
  xmlns="http://www.w3.org/2000/svg"
239
239
  >
@@ -15,7 +15,9 @@ import config from '../../config.json';
15
15
  import I18N from '../../i18n';
16
16
  import { MetricsDisplayType } from '../../constants';
17
17
  import { useMetricsDisplayType } from '../../hooks/metrics-display-type';
18
+ import { Box } from '../../layout/box';
18
19
  import { FlexStack } from '../../layout/flex-stack';
20
+ import { Stack } from '../../layout/stack';
19
21
  import { Icon } from '../../ui/icon';
20
22
  import { InputSearch } from '../../ui/input-search';
21
23
  import { FileName } from '../../ui/file-name';
@@ -33,7 +35,7 @@ import { MetricsTableOptions } from '../metrics-table-options';
33
35
  import { MetricsTableTitle } from '../metrics-table-title';
34
36
  import { MetricsDisplaySelector } from '../metrics-display-selector';
35
37
  import { MetricsTableHeader } from '../metrics-table-header';
36
- import { MetricsTreemap } from '../metrics-treemap';
38
+ import { MetricsTreemap, getTreemapNodes, getTreemapNodesGroupedByPath } from '../metrics-treemap';
37
39
  import { SEARCH_PLACEHOLDER } from './bundle-assets.i18n';
38
40
  import css from './bundle-assets.module.css';
39
41
 
@@ -41,6 +43,10 @@ const RUN_TITLE_CURRENT = 'Current';
41
43
  const RUN_TITLE_BASELINE = 'Baseline';
42
44
  const RUNS_LABELS = [RUN_TITLE_CURRENT, RUN_TITLE_BASELINE];
43
45
 
46
+ const DISPLAY_TYPE_GROUPS = {
47
+ [MetricsDisplayType.TREEMAP]: ['folder'],
48
+ };
49
+
44
50
  const getFileTypeFilters = (filters) =>
45
51
  Object.entries(FILE_TYPE_LABELS)
46
52
  .map(([key, label]) => ({
@@ -161,6 +167,60 @@ RowHeader.defaultProps = {
161
167
  chunks: [],
162
168
  };
163
169
 
170
+ const ViewMetricsTreemap = (props) => {
171
+ const { metricsTableTitle, jobs, items, displayType, emptyMessage, showEntryInfo, updateSearch } = props;
172
+
173
+ const treeNodes = useMemo(() => {
174
+ if (displayType.groupBy === 'folder') {
175
+ return getTreemapNodesGroupedByPath(items);
176
+ }
177
+
178
+ return getTreemapNodes(items);
179
+ }, [items, displayType.groupBy]);
180
+
181
+ const onGroupClick = useCallback(
182
+ (groupPath) => {
183
+ // Search by group path
184
+ // 1. use `^` to match only the string beggining
185
+ // 2. add `/` suffix to match only exact directories
186
+ // 3. if the group path is empty(root), clear search
187
+ if (groupPath) {
188
+ updateSearch(`^${groupPath}/`);
189
+ } else {
190
+ updateSearch('');
191
+ }
192
+ },
193
+ [updateSearch],
194
+ );
195
+
196
+ return (
197
+ <>
198
+ <Table compact>
199
+ <MetricsTableHeader metricTitle={metricsTableTitle} showSum jobs={jobs} rows={items} />
200
+ </Table>
201
+ <MetricsTreemap
202
+ treeNodes={treeNodes}
203
+ nested={Boolean(displayType.groupBy)}
204
+ emptyMessage={emptyMessage}
205
+ onItemClick={showEntryInfo}
206
+ onGroupClick={onGroupClick}
207
+ />
208
+ </>
209
+ );
210
+ };
211
+
212
+ ViewMetricsTreemap.propTypes = {
213
+ jobs: PropTypes.arrayOf(PropTypes.object).isRequired, // eslint-disable-line react/forbid-prop-types
214
+ items: PropTypes.arrayOf(PropTypes.object).isRequired, // eslint-disable-line react/forbid-prop-types
215
+ metricsTableTitle: PropTypes.node.isRequired,
216
+ displayType: PropTypes.shape({
217
+ groupBy: PropTypes.string,
218
+ }).isRequired,
219
+ emptyMessage: PropTypes.node.isRequired,
220
+ showEntryInfo: PropTypes.func.isRequired,
221
+ updateSearch: PropTypes.func.isRequired,
222
+ };
223
+
164
224
  export const BundleAssets = (props) => {
165
225
  const {
166
226
  className,
@@ -185,7 +245,7 @@ export const BundleAssets = (props) => {
185
245
 
186
246
  const jobLabels = jobs?.map((job) => job?.label);
187
247
 
188
- const [displayType, setDisplayType] = useMetricsDisplayType();
248
+ const [displayType, setDisplayType] = useMetricsDisplayType(DISPLAY_TYPE_GROUPS);
189
249
 
190
250
  const dropdownFilters = useMemo(
191
251
  () => getFilters({ compareMode: jobs?.length > 1, filters }),
@@ -232,12 +292,16 @@ export const BundleAssets = (props) => {
232
292
 
233
293
  return (
234
294
  <>
235
- <section className={cx(css.root, className)}>
295
+ <Stack space="xsmall" as="section" className={cx(css.root, className)}>
236
296
  <Toolbar
237
- className={css.toolbar}
238
297
  renderActions={({ actionClassName }) => (
239
298
  <FlexStack space="xxsmall" className={cx(css.dropdown, actionClassName)}>
240
- <MetricsDisplaySelector onSelect={setDisplayType} value={displayType} />
299
+ <MetricsDisplaySelector
300
+ value={displayType.value}
301
+ groupBy={displayType.groupBy}
302
+ groups={DISPLAY_TYPE_GROUPS}
303
+ onSelect={setDisplayType}
304
+ />
241
305
  <MetricsTableOptions
242
306
  handleViewAll={resetAllFilters}
243
307
  handleResetFilters={resetFilters}
@@ -260,8 +324,8 @@ export const BundleAssets = (props) => {
260
324
  />
261
325
  </FlexStack>
262
326
  </Toolbar>
263
- <main>
264
- {displayType === MetricsDisplayType.TABLE && (
327
+ <Box outline as="main">
328
+ {displayType.value === MetricsDisplayType.TABLE && (
265
329
  <MetricsTable
266
330
  runs={jobs}
267
331
  items={items}
@@ -273,25 +337,18 @@ export const BundleAssets = (props) => {
273
337
  updateSort={updateSort}
274
338
  />
275
339
  )}
276
- {displayType === MetricsDisplayType.TREEMAP && (
277
- <>
278
- <Table compact>
279
- <MetricsTableHeader
280
- metricTitle={metricsTableTitle}
281
- showSum
282
- jobs={jobs}
283
- rows={items}
284
- />
285
- </Table>
286
- <MetricsTreemap
287
- emptyMessage={emptyMessage}
288
- items={items}
289
- onItemClick={showEntryInfo}
290
- />
291
- </>
340
+ {displayType.value === MetricsDisplayType.TREEMAP && (
341
+ <ViewMetricsTreemap
342
+ jobs={jobs}
343
+ items={items}
344
+ displayType={displayType}
345
+ emptyMessage={emptyMessage}
346
+ showEntryInfo={showEntryInfo}
347
+ updateSearch={updateSearch}
348
+ />
292
349
  )}
293
- </main>
294
- </section>
350
+ </Box>
351
+ </Stack>
295
352
 
296
353
  {entryItem && (
297
354
  <AssetInfo
@@ -1,11 +1,6 @@
1
- .toolbar {
2
- border-bottom: 1px solid var(--color-outline);
3
- }
4
-
5
1
  .toolbarSearch {
6
2
  width: 100%;
7
3
  max-width: 240px;
8
- margin-right: -1px; /** collapse border */
9
4
  }
10
5
 
11
6
  .assetNameWrapper {
@@ -13,13 +13,22 @@ import { useMetricsDisplayType } from '../../hooks/metrics-display-type';
13
13
  import I18N from '../../i18n';
14
14
  import { Toolbar } from '../../ui/toolbar';
15
15
  import { Table } from '../../ui/table';
16
+ import { Box } from '../../layout/box';
17
+ import { Stack } from '../../layout/stack';
16
18
  import { MetricsDisplaySelector } from '../metrics-display-selector';
17
19
  import { MetricsTable } from '../metrics-table';
18
20
  import { MetricsTableTitle } from '../metrics-table-title';
19
21
  import { MetricsTableHeader } from '../metrics-table-header';
20
- import { MetricsTreemap } from '../metrics-treemap';
22
+ import { MetricsTreemap, getTreemapNodes } from '../metrics-treemap';
21
23
  import { ComponentLink } from '../component-link';
22
- import css from './bundle-assets-totals.module.css';
24
+
25
+ const metricsTableTitle = (
26
+ <MetricsTableTitle
27
+ title={I18N.ASSET_TOTALS}
28
+ popoverInfo={I18N.ASSET_TOTALS_INFO}
29
+ popoverHref={config.documentation.assets}
30
+ />
31
+ );
23
32
 
24
33
  export const BundleAssetsTotals = ({
25
34
  className,
@@ -31,18 +40,21 @@ export const BundleAssetsTotals = ({
31
40
  const [displayType, setDisplayType] = useMetricsDisplayType();
32
41
  const history = useHistory();
33
42
 
34
- const items = webpack.compareBySection.sizes(jobs);
43
+ const items = useMemo(() => webpack.compareBySection.sizes(jobs), [jobs]);
35
44
 
36
- const renderRowHeader = (item) => {
37
- const fileType = ASSETS_SIZES_FILE_TYPE_MAP[item.key];
38
- const { section, title, params } = getBundleAssetsFileTypeComponentLink(fileType, item.label);
45
+ const renderRowHeader = useCallback(
46
+ (item) => {
47
+ const fileType = ASSETS_SIZES_FILE_TYPE_MAP[item.key];
48
+ const { section, title, params } = getBundleAssetsFileTypeComponentLink(fileType, item.label);
39
49
 
40
- return (
41
- <CustomComponentLink section={section} title={title} params={params}>
42
- {item.label}
43
- </CustomComponentLink>
44
- );
45
- };
50
+ return (
51
+ <CustomComponentLink section={section} title={title} params={params}>
52
+ {item.label}
53
+ </CustomComponentLink>
54
+ );
55
+ },
56
+ [CustomComponentLink],
57
+ );
46
58
 
47
59
  const handleMetricsTreemapItemClick = useCallback(
48
60
  (entryId) => {
@@ -56,47 +68,42 @@ export const BundleAssetsTotals = ({
56
68
  [history],
57
69
  );
58
70
 
59
- const metricsTableTitle = useMemo(
60
- () => (
61
- <MetricsTableTitle
62
- title={I18N.ASSET_TOTALS}
63
- popoverInfo={I18N.ASSET_TOTALS_INFO}
64
- popoverHref={config.documentation.assets}
65
- />
66
- ),
67
- [],
68
- );
69
-
70
71
  return (
71
- <div className={className}>
72
+ <Stack space="xsmall" as="section" className={className}>
72
73
  <Toolbar
73
- className={css.toolbar}
74
74
  renderActions={() => (
75
- <MetricsDisplaySelector onSelect={setDisplayType} value={displayType} />
75
+ <MetricsDisplaySelector onSelect={setDisplayType} value={displayType.value} />
76
76
  )}
77
77
  />
78
- {displayType === MetricsDisplayType.TABLE && (
79
- <MetricsTable
80
- title={metricsTableTitle}
81
- runs={jobs}
82
- items={items}
83
- renderRowHeader={renderRowHeader}
84
- showHeaderSum
85
- {...restProps}
86
- />
87
- )}
88
- {displayType === MetricsDisplayType.TREEMAP && (
89
- <>
90
- <Table compact>
91
- <MetricsTableHeader metricTitle={metricsTableTitle} showSum jobs={jobs} rows={items} />
92
- </Table>
93
- <MetricsTreemap
78
+ <Box outline as="main">
79
+ {displayType.value === MetricsDisplayType.TABLE && (
80
+ <MetricsTable
81
+ title={metricsTableTitle}
82
+ runs={jobs}
94
83
  items={items}
95
- onItemClick={onTreemapItemClick || handleMetricsTreemapItemClick}
84
+ renderRowHeader={renderRowHeader}
85
+ showHeaderSum
86
+ {...restProps}
96
87
  />
97
- </>
98
- )}
99
- </div>
88
+ )}
89
+ {displayType.value === MetricsDisplayType.TREEMAP && (
90
+ <>
91
+ <Table compact>
92
+ <MetricsTableHeader
93
+ metricTitle={metricsTableTitle}
94
+ showSum
95
+ jobs={jobs}
96
+ rows={items}
97
+ />
98
+ </Table>
99
+ <MetricsTreemap
100
+ treeNodes={getTreemapNodes(items)}
101
+ onItemClick={onTreemapItemClick || handleMetricsTreemapItemClick}
102
+ />
103
+ </>
104
+ )}
105
+ </Box>
106
+ </Stack>
100
107
  );
101
108
  };
102
109
 
@@ -1,4 +1,4 @@
1
- export const SEARCH = 'Search by module name';
1
+ export const SEARCH = 'Search by module path';
2
2
  export const CHANGED = 'Changed';
3
3
  export const DUPLICATE = 'Duplicate';
4
4
  export const CHUNK = 'Chunk';
@@ -2,14 +2,9 @@
2
2
  color: var(--color-text-light);
3
3
  }
4
4
 
5
- .toolbar {
6
- border-bottom: 1px solid var(--color-outline);
7
- }
8
-
9
5
  .toolbarSearch {
10
6
  width: 100%;
11
7
  max-width: 240px;
12
- margin-right: -1px; /** collapse border */
13
8
  }
14
9
 
15
10
  .metricSelector {