@bundle-stats/ui 4.13.0-beta.16 → 4.13.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/assets/icons.svg +70 -67
- package/lib/assets/icons.svg.js +14 -12
- package/lib/assets/icons.svg.js.map +1 -1
- package/lib/components/bundle-assets/bundle-assets.js +39 -7
- package/lib/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib/components/bundle-assets-totals/bundle-assets-totals.js +4 -4
- package/lib/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
- package/lib/components/bundle-modules/bundle-modules.js +28 -7
- package/lib/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib/components/bundle-packages/bundle-packages.js +39 -7
- package/lib/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib/components/metrics-display-selector/metrics-display-selector.js +41 -4
- package/lib/components/metrics-display-selector/metrics-display-selector.js.map +1 -1
- package/lib/components/metrics-display-selector/metrics-display-selector.module.css +15 -7
- package/lib/components/metrics-treemap/index.js +4 -0
- package/lib/components/metrics-treemap/index.js.map +1 -1
- package/lib/components/metrics-treemap/metrics-treemap.constants.js +3 -0
- package/lib/components/metrics-treemap/metrics-treemap.constants.js.map +1 -0
- package/lib/components/metrics-treemap/metrics-treemap.js +63 -44
- package/lib/components/metrics-treemap/metrics-treemap.js.map +1 -1
- package/lib/components/metrics-treemap/metrics-treemap.module.css +60 -28
- package/lib/components/metrics-treemap/metrics-treemap.utils.js +70 -0
- package/lib/components/metrics-treemap/metrics-treemap.utils.js.map +1 -0
- package/lib/hooks/metrics-display-type.js +56 -24
- package/lib/hooks/metrics-display-type.js.map +1 -1
- package/lib/hooks/search-params.js +1 -0
- package/lib/hooks/search-params.js.map +1 -1
- package/lib/ui/icon/icon.js +1 -0
- package/lib/ui/icon/icon.js.map +1 -1
- package/lib/ui/input-search/input-search.js +1 -1
- package/lib/ui/input-search/input-search.js.map +1 -1
- package/lib-esm/assets/icons.svg +70 -67
- package/lib-esm/assets/icons.svg.js +14 -12
- package/lib-esm/assets/icons.svg.js.map +1 -1
- package/lib-esm/components/bundle-assets/bundle-assets.js +40 -8
- package/lib-esm/components/bundle-assets/bundle-assets.js.map +1 -1
- package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js +5 -5
- package/lib-esm/components/bundle-assets-totals/bundle-assets-totals.js.map +1 -1
- package/lib-esm/components/bundle-modules/bundle-modules.js +29 -8
- package/lib-esm/components/bundle-modules/bundle-modules.js.map +1 -1
- package/lib-esm/components/bundle-packages/bundle-packages.js +40 -8
- package/lib-esm/components/bundle-packages/bundle-packages.js.map +1 -1
- package/lib-esm/components/metrics-display-selector/metrics-display-selector.js +41 -4
- package/lib-esm/components/metrics-display-selector/metrics-display-selector.js.map +1 -1
- package/lib-esm/components/metrics-display-selector/metrics-display-selector.module.css +15 -7
- package/lib-esm/components/metrics-treemap/index.js +1 -0
- package/lib-esm/components/metrics-treemap/index.js.map +1 -1
- package/lib-esm/components/metrics-treemap/metrics-treemap.constants.js +2 -0
- package/lib-esm/components/metrics-treemap/metrics-treemap.constants.js.map +1 -0
- package/lib-esm/components/metrics-treemap/metrics-treemap.js +64 -45
- package/lib-esm/components/metrics-treemap/metrics-treemap.js.map +1 -1
- package/lib-esm/components/metrics-treemap/metrics-treemap.module.css +60 -28
- package/lib-esm/components/metrics-treemap/metrics-treemap.utils.js +65 -0
- package/lib-esm/components/metrics-treemap/metrics-treemap.utils.js.map +1 -0
- package/lib-esm/hooks/metrics-display-type.js +57 -24
- package/lib-esm/hooks/metrics-display-type.js.map +1 -1
- package/lib-esm/hooks/search-params.js +1 -0
- package/lib-esm/hooks/search-params.js.map +1 -1
- package/lib-esm/ui/icon/icon.js +1 -0
- package/lib-esm/ui/icon/icon.js.map +1 -1
- package/lib-esm/ui/input-search/input-search.js +1 -1
- package/lib-esm/ui/input-search/input-search.js.map +1 -1
- package/package.json +7 -7
- package/src/assets/icons/check.svg +4 -0
- package/src/assets/icons.svg +70 -67
- package/src/assets/icons.svg.jsx +12 -12
- package/src/components/bundle-assets/bundle-assets.jsx +76 -20
- package/src/components/bundle-assets-totals/bundle-assets-totals.jsx +5 -4
- package/src/components/bundle-modules/bundle-modules.tsx +76 -16
- package/src/components/bundle-packages/bundle-packages.jsx +71 -16
- package/src/components/metrics-display-selector/metrics-display-selector.module.css +15 -7
- package/src/components/metrics-display-selector/metrics-display-selector.stories.tsx +33 -0
- package/src/components/metrics-display-selector/metrics-display-selector.tsx +83 -25
- package/src/components/metrics-treemap/__tests__/metrics-treemap.utils.ts +143 -0
- package/src/components/metrics-treemap/index.ts +1 -0
- package/src/components/metrics-treemap/metrics-treemap.constants.ts +43 -0
- package/src/components/metrics-treemap/metrics-treemap.module.css +60 -28
- package/src/components/metrics-treemap/metrics-treemap.stories.tsx +44 -10
- package/src/components/metrics-treemap/metrics-treemap.tsx +258 -90
- package/src/components/metrics-treemap/metrics-treemap.utils.ts +107 -0
- package/src/hooks/metrics-display-type.ts +87 -29
- package/src/hooks/search-params.js +1 -0
- package/src/ui/icon/icon.tsx +1 -0
- package/src/ui/input-search/input-search.tsx +1 -0
- package/types/components/metrics-display-selector/metrics-display-selector.d.ts +3 -1
- package/types/components/metrics-treemap/index.d.ts +1 -0
- package/types/components/metrics-treemap/metrics-treemap.constants.d.ts +15 -0
- package/types/components/metrics-treemap/metrics-treemap.d.ts +7 -5
- package/types/components/metrics-treemap/metrics-treemap.utils.d.ts +4 -0
- package/types/hooks/metrics-display-type.d.ts +8 -2
- package/types/ui/icon/icon.d.ts +2 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-params.js","sourceRoot":"","sources":["../../src/hooks/search-params.js"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAC1E,OAAO,OAAO,MAAM,gBAAgB,CAAC;AACrC,OAAO,KAAK,MAAM,cAAc,CAAC;AAEjC,MAA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
@@ -28,6 +28,6 @@ export const InputSearch = (props) => {
|
|
|
28
28
|
}, [changeValue]);
|
|
29
29
|
return (React.createElement("div", { className: rootClassname },
|
|
30
30
|
React.createElement(Input, { className: css.input, placeholder: placeholder, onChange: inputOnChange, value: value, size: "small", autoComplete: "off" }),
|
|
31
|
-
value && (React.createElement(Button, { radius: "circle", glyph: Icon.ICONS.CANCEL, type: "button", onClick: clearButtonOnClick, "aria-label": "Clear search", className: css.cancelButton }))));
|
|
31
|
+
value && (React.createElement(Button, { size: "small", radius: "circle", glyph: Icon.ICONS.CANCEL, type: "button", onClick: clearButtonOnClick, "aria-label": "Clear search", className: css.cancelButton }))));
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=input-search.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-search.js","sourceRoot":"","sources":["../../../src/ui/input-search/input-search.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,EAAE,MAAM,YAAY,CAAC;AAC5B,OAAO,QAAQ,MAAM,iBAAiB,CAAC;AACvC,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACnC,OAAO,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAC/B,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AAEjC,OAAO,GAAG,MAAM,2BAA2B,CAAC;AAS5C,MAAM,CAAC,MAAM,WAAW,GAAG,CACzB,KAAuE,EACvE,EAAE;IACF,MAAM,EACJ,SAAS,GAAG,EAAE,EACd,WAAW,GAAG,QAAQ,EACtB,YAAY,GAAG,EAAE,EACjB,QAAQ,GAAG,IAAI,EACf,YAAY,GAAG,GAAG,GACnB,GAAG,KAAK,CAAC;IACV,MAAM,aAAa,GAAG,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,SA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,CAC7B,CAAC,QAAgB,EAAE,EAAE;QACnB,IAAI,QAAQ,KAAK,KAAK,EAAE;YACtB,qBAAqB,CAAC,QAAQ,CAAC,CAAC;YAChC,QAAQ,CAAC,QAAQ,CAAC,CAAC;SACpB;IACH,CAAC,EACD,CAAC,QAAQ,EAAE,KAAK,CAAC,CAClB,CAAC;IAEF,MAAM,aAAa,GAAG,WAAW,CAC/B,CAAC,KAA0C,EAAE,EAAE;QAC7C,WAAW,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAClC,CAAC,EACD,CAAC,WAAW,CAAC,CACd,CAAC;IAEF,MAAM,kBAAkB,GAAG,WAAW,CAAC,GAAG,EAAE;QAC1C,WAAW,CAAC,EAAE,CAAC,CAAC;IAClB,CAAC,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;IAElB,OAAO,CACL,6BAAK,SAAS,EAAE,aAAa;QAC3B,oBAAC,KAAK,IACJ,SAAS,EAAE,GAAG,CAAC,KAAK,EACpB,WAAW,EAAE,WAAW,EACxB,QAAQ,EAAE,aAAa,EACvB,KAAK,EAAE,KAAK,EACZ,IAAI,EAAC,OAAO,EACZ,YAAY,EAAC,KAAK,GAClB;QACD,KAAK,IAAI,CACR,oBAAC,MAAM,IACL,IAAI,EAAC,OAAO,EACZ,MAAM,EAAC,QAAQ,EACf,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,EACxB,IAAI,EAAC,QAAQ,EACb,OAAO,EAAE,kBAAkB,gBAChB,cAAc,EACzB,SAAS,EAAE,GAAG,CAAC,YAAY,GAC3B,CACH,CACG,CACP,CAAC;AACJ,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bundle-stats/ui",
|
|
3
|
-
"version": "4.13.0-beta.
|
|
3
|
+
"version": "4.13.0-beta.18",
|
|
4
4
|
"description": "UI components for BundleStats projects.",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "lib-esm/index.js",
|
|
@@ -36,14 +36,14 @@
|
|
|
36
36
|
},
|
|
37
37
|
"homepage": "https://github.com/relative-ci/bundle-stats/blob/master/packages/ui#readme",
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@babel/preset-env": "7.24.
|
|
39
|
+
"@babel/preset-env": "7.24.5",
|
|
40
40
|
"@babel/preset-react": "7.24.1",
|
|
41
41
|
"@babel/preset-typescript": "7.24.1",
|
|
42
42
|
"@storybook/addon-essentials": "7.6.17",
|
|
43
43
|
"@storybook/react": "7.6.17",
|
|
44
44
|
"@storybook/react-webpack5": "7.6.17",
|
|
45
45
|
"@types/d3": "7.4.3",
|
|
46
|
-
"@types/react": "18.
|
|
46
|
+
"@types/react": "18.3.1",
|
|
47
47
|
"@types/react-router-dom": "5.3.3",
|
|
48
48
|
"babel-plugin-require-context-hook": "1.0.0",
|
|
49
49
|
"classnames": "2.5.1",
|
|
@@ -56,8 +56,8 @@
|
|
|
56
56
|
"jest-environment-jsdom": "29.7.0",
|
|
57
57
|
"lodash": "4.17.21",
|
|
58
58
|
"prop-types": "15.8.1",
|
|
59
|
-
"react": "18.
|
|
60
|
-
"react-dom": "18.
|
|
59
|
+
"react": "18.3.1",
|
|
60
|
+
"react-dom": "18.3.1",
|
|
61
61
|
"react-router-dom": "5.3.4",
|
|
62
62
|
"rimraf": "5.0.5",
|
|
63
63
|
"storybook": "7.6.17",
|
|
@@ -73,12 +73,12 @@
|
|
|
73
73
|
"react-router-dom": "^5.0.0"
|
|
74
74
|
},
|
|
75
75
|
"dependencies": {
|
|
76
|
-
"@bundle-stats/utils": "4.13.0-beta.
|
|
76
|
+
"@bundle-stats/utils": "4.13.0-beta.18",
|
|
77
77
|
"ariakit": "2.0.0-next.44",
|
|
78
78
|
"d3": "^7.8.5",
|
|
79
79
|
"modern-css-reset": "1.4.0",
|
|
80
80
|
"react-use": "^17.5.0",
|
|
81
81
|
"use-query-params": "2.2.1"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "edee52adad2211bae86091ad6314b2ad2da43b50"
|
|
84
84
|
}
|
package/src/assets/icons.svg
CHANGED
|
@@ -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"
|
|
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"
|
|
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"
|
|
10
|
-
<path d="
|
|
11
|
-
</symbol>
|
|
12
|
-
<symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
|
13
|
-
<path d="
|
|
14
|
-
</symbol>
|
|
15
|
-
<symbol
|
|
16
|
-
<
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<
|
|
20
|
-
<
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
<
|
|
24
|
-
<
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
<
|
|
28
|
-
<
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
<
|
|
32
|
-
<path d="
|
|
33
|
-
</symbol>
|
|
34
|
-
<symbol
|
|
35
|
-
<path d="
|
|
36
|
-
</symbol>
|
|
37
|
-
<symbol viewBox="0 0
|
|
38
|
-
<path
|
|
39
|
-
</symbol>
|
|
40
|
-
<symbol viewBox="0 0
|
|
41
|
-
<
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<
|
|
45
|
-
<
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
<
|
|
49
|
-
<path d="
|
|
50
|
-
</symbol>
|
|
51
|
-
<symbol fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"
|
|
52
|
-
<
|
|
53
|
-
|
|
54
|
-
<
|
|
55
|
-
|
|
56
|
-
<
|
|
57
|
-
<
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
<
|
|
61
|
-
<path d="
|
|
62
|
-
</symbol>
|
|
63
|
-
<symbol fill="none" stroke="currentColor" stroke-
|
|
64
|
-
<path d="M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9
|
|
65
|
-
</symbol>
|
|
66
|
-
<symbol
|
|
67
|
-
<path d="
|
|
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>
|
package/src/assets/icons.svg.jsx
CHANGED
|
@@ -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
|
>
|
|
@@ -35,7 +35,7 @@ import { MetricsTableOptions } from '../metrics-table-options';
|
|
|
35
35
|
import { MetricsTableTitle } from '../metrics-table-title';
|
|
36
36
|
import { MetricsDisplaySelector } from '../metrics-display-selector';
|
|
37
37
|
import { MetricsTableHeader } from '../metrics-table-header';
|
|
38
|
-
import { MetricsTreemap } from '../metrics-treemap';
|
|
38
|
+
import { MetricsTreemap, getTreemapNodes, getTreemapNodesGroupedByPath } from '../metrics-treemap';
|
|
39
39
|
import { SEARCH_PLACEHOLDER } from './bundle-assets.i18n';
|
|
40
40
|
import css from './bundle-assets.module.css';
|
|
41
41
|
|
|
@@ -43,6 +43,10 @@ const RUN_TITLE_CURRENT = 'Current';
|
|
|
43
43
|
const RUN_TITLE_BASELINE = 'Baseline';
|
|
44
44
|
const RUNS_LABELS = [RUN_TITLE_CURRENT, RUN_TITLE_BASELINE];
|
|
45
45
|
|
|
46
|
+
const DISPLAY_TYPE_GROUPS = {
|
|
47
|
+
[MetricsDisplayType.TREEMAP]: ['folder'],
|
|
48
|
+
};
|
|
49
|
+
|
|
46
50
|
const getFileTypeFilters = (filters) =>
|
|
47
51
|
Object.entries(FILE_TYPE_LABELS)
|
|
48
52
|
.map(([key, label]) => ({
|
|
@@ -163,6 +167,60 @@ RowHeader.defaultProps = {
|
|
|
163
167
|
chunks: [],
|
|
164
168
|
};
|
|
165
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
|
+
|
|
166
224
|
export const BundleAssets = (props) => {
|
|
167
225
|
const {
|
|
168
226
|
className,
|
|
@@ -187,7 +245,7 @@ export const BundleAssets = (props) => {
|
|
|
187
245
|
|
|
188
246
|
const jobLabels = jobs?.map((job) => job?.label);
|
|
189
247
|
|
|
190
|
-
const [displayType, setDisplayType] = useMetricsDisplayType();
|
|
248
|
+
const [displayType, setDisplayType] = useMetricsDisplayType(DISPLAY_TYPE_GROUPS);
|
|
191
249
|
|
|
192
250
|
const dropdownFilters = useMemo(
|
|
193
251
|
() => getFilters({ compareMode: jobs?.length > 1, filters }),
|
|
@@ -238,7 +296,12 @@ export const BundleAssets = (props) => {
|
|
|
238
296
|
<Toolbar
|
|
239
297
|
renderActions={({ actionClassName }) => (
|
|
240
298
|
<FlexStack space="xxsmall" className={cx(css.dropdown, actionClassName)}>
|
|
241
|
-
<MetricsDisplaySelector
|
|
299
|
+
<MetricsDisplaySelector
|
|
300
|
+
value={displayType.value}
|
|
301
|
+
groupBy={displayType.groupBy}
|
|
302
|
+
groups={DISPLAY_TYPE_GROUPS}
|
|
303
|
+
onSelect={setDisplayType}
|
|
304
|
+
/>
|
|
242
305
|
<MetricsTableOptions
|
|
243
306
|
handleViewAll={resetAllFilters}
|
|
244
307
|
handleResetFilters={resetFilters}
|
|
@@ -262,7 +325,7 @@ export const BundleAssets = (props) => {
|
|
|
262
325
|
</FlexStack>
|
|
263
326
|
</Toolbar>
|
|
264
327
|
<Box outline as="main">
|
|
265
|
-
{displayType === MetricsDisplayType.TABLE && (
|
|
328
|
+
{displayType.value === MetricsDisplayType.TABLE && (
|
|
266
329
|
<MetricsTable
|
|
267
330
|
runs={jobs}
|
|
268
331
|
items={items}
|
|
@@ -274,22 +337,15 @@ export const BundleAssets = (props) => {
|
|
|
274
337
|
updateSort={updateSort}
|
|
275
338
|
/>
|
|
276
339
|
)}
|
|
277
|
-
{displayType === MetricsDisplayType.TREEMAP && (
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
</Table>
|
|
287
|
-
<MetricsTreemap
|
|
288
|
-
emptyMessage={emptyMessage}
|
|
289
|
-
items={items}
|
|
290
|
-
onItemClick={showEntryInfo}
|
|
291
|
-
/>
|
|
292
|
-
</>
|
|
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
|
+
/>
|
|
293
349
|
)}
|
|
294
350
|
</Box>
|
|
295
351
|
</Stack>
|
|
@@ -19,7 +19,7 @@ import { MetricsDisplaySelector } from '../metrics-display-selector';
|
|
|
19
19
|
import { MetricsTable } from '../metrics-table';
|
|
20
20
|
import { MetricsTableTitle } from '../metrics-table-title';
|
|
21
21
|
import { MetricsTableHeader } from '../metrics-table-header';
|
|
22
|
-
import { MetricsTreemap } from '../metrics-treemap';
|
|
22
|
+
import { MetricsTreemap, getTreemapNodes } from '../metrics-treemap';
|
|
23
23
|
import { ComponentLink } from '../component-link';
|
|
24
24
|
|
|
25
25
|
const metricsTableTitle = (
|
|
@@ -72,11 +72,11 @@ export const BundleAssetsTotals = ({
|
|
|
72
72
|
<Stack space="xsmall" as="section" className={className}>
|
|
73
73
|
<Toolbar
|
|
74
74
|
renderActions={() => (
|
|
75
|
-
<MetricsDisplaySelector onSelect={setDisplayType} value={displayType} />
|
|
75
|
+
<MetricsDisplaySelector onSelect={setDisplayType} value={displayType.value} />
|
|
76
76
|
)}
|
|
77
77
|
/>
|
|
78
78
|
<Box outline as="main">
|
|
79
|
-
{displayType === MetricsDisplayType.TABLE && (
|
|
79
|
+
{displayType.value === MetricsDisplayType.TABLE && (
|
|
80
80
|
<MetricsTable
|
|
81
81
|
title={metricsTableTitle}
|
|
82
82
|
runs={jobs}
|
|
@@ -86,7 +86,7 @@ export const BundleAssetsTotals = ({
|
|
|
86
86
|
{...restProps}
|
|
87
87
|
/>
|
|
88
88
|
)}
|
|
89
|
-
{displayType === MetricsDisplayType.TREEMAP && (
|
|
89
|
+
{displayType.value === MetricsDisplayType.TREEMAP && (
|
|
90
90
|
<>
|
|
91
91
|
<Table compact>
|
|
92
92
|
<MetricsTableHeader
|
|
@@ -98,6 +98,7 @@ export const BundleAssetsTotals = ({
|
|
|
98
98
|
</Table>
|
|
99
99
|
<MetricsTreemap
|
|
100
100
|
items={items}
|
|
101
|
+
treeNodes={getTreemapNodes(items)}
|
|
101
102
|
onItemClick={onTreemapItemClick || handleMetricsTreemapItemClick}
|
|
102
103
|
/>
|
|
103
104
|
</>
|