Skip to content

Commit 42bb309

Browse files
committed
Merge remote-tracking branch 'origin/main' into flamecharts-zoom-feature
2 parents ebaab03 + 0df8d34 commit 42bb309

File tree

16 files changed

+88
-8
lines changed

16 files changed

+88
-8
lines changed

ui/packages/app/web/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.16.1006](https://github.com/parca-dev/parca/compare/@parca/web@0.16.1005...@parca/web@0.16.1006) (2026-02-12)
7+
8+
**Note:** Version bump only for package @parca/web
9+
10+
## [0.16.1005](https://github.com/parca-dev/parca/compare/@parca/web@0.16.1004...@parca/web@0.16.1005) (2026-02-12)
11+
12+
**Note:** Version bump only for package @parca/web
13+
614
## [0.16.1004](https://github.com/parca-dev/parca/compare/@parca/web@0.16.1003...@parca/web@0.16.1004) (2026-02-11)
715

816
**Note:** Version bump only for package @parca/web

ui/packages/app/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@parca/web",
33
"private": true,
4-
"version": "0.16.1004",
4+
"version": "0.16.1006",
55
"description": "Parca Web Interface",
66
"type": "module",
77
"scripts": {

ui/packages/shared/components/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.16.399](https://github.com/parca-dev/parca/compare/@parca/components@0.16.398...@parca/components@0.16.399) (2026-02-12)
7+
8+
**Note:** Version bump only for package @parca/components
9+
10+
## 0.16.398 (2026-02-12)
11+
12+
**Note:** Version bump only for package @parca/components
13+
614
## 0.16.397 (2026-02-06)
715

816
**Note:** Version bump only for package @parca/components

ui/packages/shared/components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@parca/components",
3-
"version": "0.16.397",
3+
"version": "0.16.399",
44
"description": "A component library for Parca",
55
"main": "dist/index.js",
66
"scripts": {

ui/packages/shared/components/src/ParcaContext/index.tsx

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import {RpcError} from '@protobuf-ts/runtime-rpc';
1818
import {QueryServiceClient} from '@parca/client';
1919
import type {ColorConfig, NavigateFunction} from '@parca/utilities';
2020

21+
import {DateTimeRange} from '../DateTimeRangePicker/utils';
2122
import {NoDataPrompt} from '../NoDataPrompt';
2223
import Spinner, {SpinnerProps} from '../Spinner';
2324

@@ -33,6 +34,23 @@ export interface SourceViewContextMenuItem {
3334
action: (selectedCode: string, profileData: ProfileData[]) => void;
3435
}
3536

37+
export interface AdditionalMetricsGraphProps {
38+
querySelection: {
39+
expression: string;
40+
from: number;
41+
to: number;
42+
timeSelection: string;
43+
sumBy?: string[];
44+
mergeFrom?: string;
45+
mergeTo?: string;
46+
};
47+
queryClient: QueryServiceClient;
48+
suffix?: '_a' | '_b';
49+
timeRange: DateTimeRange;
50+
onTimeRangeChange: (range: DateTimeRange) => void;
51+
commitTimeRange: () => void;
52+
}
53+
3654
interface Props {
3755
Spinner: FC<SpinnerProps>;
3856
loader?: ReactNode;
@@ -78,6 +96,7 @@ interface Props {
7896
preferencesModal?: boolean;
7997
checkDebuginfoStatusHandler?: (buildId: string) => void;
8098
flamechartHelpText?: ReactNode;
99+
additionalMetricsGraph?: (props: AdditionalMetricsGraphProps) => ReactNode;
81100
}
82101

83102
export const defaultValue: Props = {

ui/packages/shared/hooks/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## 0.0.118 (2026-02-12)
7+
8+
**Note:** Version bump only for package @parca/hooks
9+
610
## 0.0.117 (2026-02-06)
711

812
**Note:** Version bump only for package @parca/hooks

ui/packages/shared/hooks/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@parca/hooks",
3-
"version": "0.0.117",
3+
"version": "0.0.118",
44
"description": "A library containing React hooks used in the Parca UI",
55
"main": "dist/index.js",
66
"scripts": {

ui/packages/shared/profile/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,14 @@
33
All notable changes to this project will be documented in this file.
44
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
55

6+
## [0.19.120](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.119...@parca/profile@0.19.120) (2026-02-12)
7+
8+
**Note:** Version bump only for package @parca/profile
9+
10+
## [0.19.119](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.118...@parca/profile@0.19.119) (2026-02-12)
11+
12+
**Note:** Version bump only for package @parca/profile
13+
614
## [0.19.118](https://github.com/parca-dev/parca/compare/@parca/profile@0.19.117...@parca/profile@0.19.118) (2026-02-11)
715

816
**Note:** Version bump only for package @parca/profile

ui/packages/shared/profile/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@parca/profile",
3-
"version": "0.19.118",
3+
"version": "0.19.120",
44
"description": "Profile viewing libraries",
55
"dependencies": {
66
"@floating-ui/react": "^0.27.12",

ui/packages/shared/profile/src/ProfileSelector/index.tsx

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const ProfileSelector = ({
119119
onSearchHook,
120120
}: ProfileSelectorProps): JSX.Element => {
121121
const {heightStyle} = useMetricsGraphDimensions(comparing, false);
122-
const {viewComponent} = useParcaContext();
122+
const {viewComponent, additionalMetricsGraph} = useParcaContext();
123123
const [queryBrowserMode, setQueryBrowserMode] = useURLState('query_browser_mode');
124124
const batchUpdates = useURLStateBatch();
125125

@@ -290,7 +290,15 @@ const ProfileSelector = ({
290290

291291
return (
292292
<>
293-
<div className="mb-2 flex">
293+
<div className="mb-2 flex flex-col">
294+
{additionalMetricsGraph?.({
295+
querySelection,
296+
queryClient,
297+
suffix,
298+
timeRange: timeRangeSelection,
299+
onTimeRangeChange: handleTimeRangeChange,
300+
commitTimeRange: () => setQueryExpression(true),
301+
})}
294302
<LabelsQueryProvider
295303
setMatchersString={setMatchersString}
296304
runQuery={setQueryExpression}

0 commit comments

Comments
 (0)