Skip to content

Commit 4c02f0d

Browse files
committed
Merge origin/main
2 parents a03208d + e7f9b84 commit 4c02f0d

File tree

36 files changed

+11879
-3027
lines changed

36 files changed

+11879
-3027
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.949](https://github.com/parca-dev/parca/compare/@parca/web@0.16.948...@parca/web@0.16.949) (2025-10-21)
7+
8+
**Note:** Version bump only for package @parca/web
9+
10+
## [0.16.948](https://github.com/parca-dev/parca/compare/@parca/web@0.16.947...@parca/web@0.16.948) (2025-10-21)
11+
12+
**Note:** Version bump only for package @parca/web
13+
614
## [0.16.947](https://github.com/parca-dev/parca/compare/@parca/web@0.16.946...@parca/web@0.16.947) (2025-10-16)
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.947",
4+
"version": "0.16.949",
55
"description": "Parca Web Interface",
66
"type": "module",
77
"scripts": {

ui/packages/shared/client/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.17.7 (2025-10-21)
7+
8+
**Note:** Version bump only for package @parca/client
9+
610
## 0.17.6 (2025-10-02)
711

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

ui/packages/shared/client/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@parca/client",
3-
"version": "0.17.6",
3+
"version": "0.17.7",
44
"description": "Parca API Client",
55
"main": "dist/index.js",
66
"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.378](https://github.com/parca-dev/parca/compare/@parca/components@0.16.377...@parca/components@0.16.378) (2025-10-21)
7+
8+
**Note:** Version bump only for package @parca/components
9+
10+
## 0.16.377 (2025-10-21)
11+
12+
**Note:** Version bump only for package @parca/components
13+
614
## [0.16.376](https://github.com/parca-dev/parca/compare/@parca/components@0.16.375...@parca/components@0.16.376) (2025-10-08)
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.376",
3+
"version": "0.16.378",
44
"description": "A component library for Parca",
55
"main": "dist/index.js",
66
"scripts": {
Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
// Copyright 2022 The Parca Authors
2+
// Licensed under the Apache License, Version 2.0 (the "License");
3+
// you may not use this file except in compliance with the License.
4+
// You may obtain a copy of the License at
5+
//
6+
// http://www.apache.org/licenses/LICENSE-2.0
7+
//
8+
// Unless required by applicable law or agreed to in writing, software
9+
// distributed under the License is distributed on an "AS IS" BASIS,
10+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
11+
// See the License for the specific language governing permissions and
12+
// limitations under the License.
13+
14+
import {Icon} from '@iconify/react';
15+
import cx from 'classnames';
16+
17+
interface RefreshButtonProps {
18+
onClick: () => void;
19+
disabled: boolean;
20+
title: string;
21+
testId: string;
22+
loading?: boolean;
23+
sticky?: boolean;
24+
}
25+
26+
const RefreshButton = ({
27+
onClick,
28+
disabled,
29+
title,
30+
testId,
31+
sticky = false,
32+
}: RefreshButtonProps): JSX.Element => {
33+
return (
34+
<div
35+
className={cx(
36+
'w-full flex items-center justify-center px-3 py-2 bg-gray-50 dark:bg-gray-900 border-t border-gray-200 dark:border-gray-700',
37+
sticky && 'sticky bottom-0 z-20 mt-auto'
38+
)}
39+
>
40+
<button
41+
onClick={e => {
42+
e.preventDefault();
43+
e.stopPropagation();
44+
onClick();
45+
}}
46+
disabled={disabled}
47+
className={cx(
48+
'py-1 px-2 flex items-center gap-1 rounded-full transition-all duration-200 w-auto justify-center',
49+
disabled
50+
? 'cursor-wait opacity-50'
51+
: 'hover:bg-gray-200 dark:hover:bg-gray-700 cursor-pointer'
52+
)}
53+
title={title}
54+
type="button"
55+
data-testid={testId}
56+
>
57+
<Icon
58+
icon="system-uicons:reset"
59+
className={cx('w-3 h-3 text-gray-500 dark:text-gray-400', disabled && 'animate-spin')}
60+
/>
61+
<span className="text-xs text-gray-500 dark:text-gray-400">Refresh results</span>
62+
</button>
63+
</div>
64+
);
65+
};
66+
67+
export default RefreshButton;

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ import Modal from './Modal';
2626
import {NoDataPrompt} from './NoDataPrompt';
2727
import ParcaContext from './ParcaContext';
2828
import Pill, {PillVariant} from './Pill';
29+
import RefreshButton from './RefreshButton';
2930
import ResponsiveSvg from './ResponsiveSvg';
3031
import Select, {type SelectElement, type SelectItem} from './Select';
3132
import FlameGraphSkeleton, {FlameActionButtonPlaceholder} from './Skeletons/FlamegraphSkeleton';
@@ -69,6 +70,7 @@ export {
6970
ParcaContext,
7071
Pill,
7172
ResponsiveSvg,
73+
RefreshButton,
7274
Select,
7375
SourceSkeleton,
7476
Spinner,

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.106 (2025-10-21)
7+
8+
**Note:** Version bump only for package @parca/hooks
9+
610
## [0.0.105](https://github.com/parca-dev/parca/compare/@parca/hooks@0.0.104...@parca/hooks@0.0.105) (2025-10-08)
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.105",
3+
"version": "0.0.106",
44
"description": "A library containing React hooks used in the Parca UI",
55
"main": "dist/index.js",
66
"scripts": {

0 commit comments

Comments
 (0)