@parca/profile 0.19.2 → 0.19.3
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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [0.19.3](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.2...@parca/profile@0.19.3) (2025-06-19)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @parca/profile
|
|
9
|
+
|
|
6
10
|
## 0.19.2 (2025-06-19)
|
|
7
11
|
|
|
8
12
|
**Note:** Version bump only for package @parca/profile
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MetricsGraph/MetricsContextMenu/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,iBAAiB,EAAC,MAAM,KAAK,CAAC;AAEtC,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,CACjB,MAAM,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,KACvE,IAAI,CAAC;IACV,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AASD,QAAA,MAAM,kBAAkB,qFAMrB,uBAAuB,KAAG,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/MetricsGraph/MetricsContextMenu/index.tsx"],"names":[],"mappings":"AAmBA,OAAO,EAAC,iBAAiB,EAAC,MAAM,KAAK,CAAC;AAEtC,UAAU,uBAAuB;IAC/B,MAAM,EAAE,MAAM,CAAC;IACf,iBAAiB,EAAE,CACjB,MAAM,EAAE;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,GAAG,KAAK,CAAC;QAAC,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAC,CAAC,KACvE,IAAI,CAAC;IACV,WAAW,EAAE,iBAAiB,GAAG,IAAI,CAAC;IACtC,eAAe,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAC;IAC9C,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AASD,QAAA,MAAM,kBAAkB,qFAMrB,uBAAuB,KAAG,GAAG,CAAC,OA4DhC,CAAC;AAEF,eAAe,kBAAkB,CAAC"}
|
|
@@ -30,11 +30,11 @@ const MetricsContextMenu = ({ menuId, onAddLabelMatcher, highlighted, trackVisib
|
|
|
30
30
|
}));
|
|
31
31
|
labelsToAdd !== undefined && onAddLabelMatcher(labelsToAdd);
|
|
32
32
|
};
|
|
33
|
-
return (_jsxs(Menu, { id: menuId, onVisibilityChange: trackVisibility, theme: isDarkMode ? 'dark' : '', children: [_jsx(Item, { id: "focus-on-single-series", onClick: handleFocusOnSingleSeries, children: _jsxs("div", { className: "flex w-full items-center gap-2", children: [_jsx(Icon, { icon: "ph:star" }), _jsx("div", { children: "Focus only on this series" })] }) }), _jsx(Submenu, { label: _jsxs("div", { className: "flex w-full items-center gap-2", children: [_jsx(Icon, { icon: "material-symbols:add" }), _jsx("div", { children: "Add to query" })] }), children: _jsx("div", { className: "max-h-[300px] overflow-
|
|
33
|
+
return (_jsxs(Menu, { id: menuId, onVisibilityChange: trackVisibility, theme: isDarkMode ? 'dark' : '', children: [_jsx(Item, { id: "focus-on-single-series", onClick: handleFocusOnSingleSeries, children: _jsxs("div", { className: "flex w-full items-center gap-2", children: [_jsx(Icon, { icon: "ph:star" }), _jsx("div", { children: "Focus only on this series" })] }) }), _jsx(Submenu, { label: _jsxs("div", { className: "flex w-full items-center gap-2", children: [_jsx(Icon, { icon: "material-symbols:add" }), _jsx("div", { children: "Add to query" })] }), children: _jsx("div", { className: "max-h-[300px] overflow-auto", children: labels == null || labels.length === 0 ? (_jsx(Item, { disabled: true, children: _jsxs("div", { className: "flex w-full items-center gap-2", children: [_jsx(Icon, { icon: "ph:warning" }), _jsx("div", { children: "No labels available" })] }) })) : (labels.map((label) => (_jsx(Item, { id: label.name, onClick: () => {
|
|
34
34
|
onAddLabelMatcher({
|
|
35
35
|
key: label.name,
|
|
36
36
|
value: label.value,
|
|
37
37
|
});
|
|
38
|
-
}, className: "max-w-[400px] overflow-hidden", children: _jsx("div", { className: "mr-3 inline-block rounded-lg bg-gray-200 px-2 py-1 text-xs font-bold text-gray-700 dark:bg-gray-700 dark:text-gray-300", children: `${transformUtilizationLabels(label.name, utilizationMetrics)}="${label.value}"` }) }, label.name))) }) })] }));
|
|
38
|
+
}, className: "max-w-[400px] overflow-hidden", children: _jsx("div", { className: "mr-3 inline-block rounded-lg bg-gray-200 px-2 py-1 text-xs font-bold text-gray-700 dark:bg-gray-700 dark:text-gray-300", children: `${transformUtilizationLabels(label.name, utilizationMetrics)}="${label.value}"` }) }, label.name)))) }) })] }));
|
|
39
39
|
};
|
|
40
40
|
export default MetricsContextMenu;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@parca/profile",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.3",
|
|
4
4
|
"description": "Profile viewing libraries",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@headlessui/react": "^1.7.19",
|
|
@@ -77,5 +77,5 @@
|
|
|
77
77
|
"access": "public",
|
|
78
78
|
"registry": "https://registry.npmjs.org/"
|
|
79
79
|
},
|
|
80
|
-
"gitHead": "
|
|
80
|
+
"gitHead": "20c7f506dd35795cbc417a5d94c75d72b4128b97"
|
|
81
81
|
}
|
|
@@ -71,24 +71,33 @@ const MetricsContextMenu = ({
|
|
|
71
71
|
</div>
|
|
72
72
|
}
|
|
73
73
|
>
|
|
74
|
-
<div className="max-h-[300px] overflow-
|
|
75
|
-
{labels
|
|
76
|
-
<Item
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
onAddLabelMatcher({
|
|
81
|
-
key: label.name,
|
|
82
|
-
value: label.value,
|
|
83
|
-
});
|
|
84
|
-
}}
|
|
85
|
-
className="max-w-[400px] overflow-hidden"
|
|
86
|
-
>
|
|
87
|
-
<div className="mr-3 inline-block rounded-lg bg-gray-200 px-2 py-1 text-xs font-bold text-gray-700 dark:bg-gray-700 dark:text-gray-300">
|
|
88
|
-
{`${transformUtilizationLabels(label.name, utilizationMetrics)}="${label.value}"`}
|
|
74
|
+
<div className="max-h-[300px] overflow-auto">
|
|
75
|
+
{labels == null || labels.length === 0 ? (
|
|
76
|
+
<Item disabled>
|
|
77
|
+
<div className="flex w-full items-center gap-2">
|
|
78
|
+
<Icon icon="ph:warning" />
|
|
79
|
+
<div>No labels available</div>
|
|
89
80
|
</div>
|
|
90
81
|
</Item>
|
|
91
|
-
)
|
|
82
|
+
) : (
|
|
83
|
+
labels.map((label: Label) => (
|
|
84
|
+
<Item
|
|
85
|
+
key={label.name}
|
|
86
|
+
id={label.name}
|
|
87
|
+
onClick={() => {
|
|
88
|
+
onAddLabelMatcher({
|
|
89
|
+
key: label.name,
|
|
90
|
+
value: label.value,
|
|
91
|
+
});
|
|
92
|
+
}}
|
|
93
|
+
className="max-w-[400px] overflow-hidden"
|
|
94
|
+
>
|
|
95
|
+
<div className="mr-3 inline-block rounded-lg bg-gray-200 px-2 py-1 text-xs font-bold text-gray-700 dark:bg-gray-700 dark:text-gray-300">
|
|
96
|
+
{`${transformUtilizationLabels(label.name, utilizationMetrics)}="${label.value}"`}
|
|
97
|
+
</div>
|
|
98
|
+
</Item>
|
|
99
|
+
))
|
|
100
|
+
)}
|
|
92
101
|
</div>
|
|
93
102
|
</Submenu>
|
|
94
103
|
</Menu>
|