Skip to content

Commit ff3812c

Browse files
committed
fix: review
1 parent 9fbd2a5 commit ff3812c

File tree

19 files changed

+61
-36
lines changed

19 files changed

+61
-36
lines changed

src/components/Drawer/Drawer.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
}
99

1010
&__item {
11-
z-index: 11;
11+
z-index: 4;
1212

1313
height: 100%;
1414
}

src/components/Drawer/Drawer.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface DrawerPaneContentWrapperProps {
3232
detectClickOutside?: boolean;
3333
defaultWidth?: number;
3434
isPercentageWidth?: boolean;
35-
showVeil?: boolean;
35+
hideVeil?: boolean;
3636
}
3737

3838
const DrawerPaneContentWrapper = ({
@@ -46,7 +46,7 @@ const DrawerPaneContentWrapper = ({
4646
className,
4747
detectClickOutside = false,
4848
isPercentageWidth,
49-
showVeil,
49+
hideVeil = true,
5050
}: DrawerPaneContentWrapperProps) => {
5151
const [drawerWidth, setDrawerWidth] = React.useState(() => {
5252
const savedWidth = localStorage.getItem(storageKey);
@@ -115,7 +115,7 @@ const DrawerPaneContentWrapper = ({
115115
<GravityDrawer
116116
onEscape={onClose}
117117
onVeilClick={onClose}
118-
hideVeil={!showVeil}
118+
hideVeil={hideVeil}
119119
className={b('container', className)}
120120
>
121121
<DrawerItem
@@ -158,7 +158,7 @@ interface DrawerPaneProps {
158158
drawerControls?: DrawerControl[];
159159
title?: React.ReactNode;
160160
headerClassName?: string;
161-
showVeil?: boolean;
161+
hideVeil?: boolean;
162162
}
163163

164164
export const DrawerWrapper = ({
@@ -176,7 +176,7 @@ export const DrawerWrapper = ({
176176
drawerControls = [],
177177
title,
178178
headerClassName,
179-
showVeil,
179+
hideVeil,
180180
}: DrawerPaneProps) => {
181181
React.useEffect(() => {
182182
return () => {
@@ -224,7 +224,7 @@ export const DrawerWrapper = ({
224224
<React.Fragment>
225225
{children}
226226
<DrawerPaneContentWrapper
227-
showVeil={showVeil}
227+
hideVeil={hideVeil}
228228
isVisible={isDrawerVisible}
229229
onClose={onCloseDrawer}
230230
drawerId={drawerId}

src/components/EmptyState/EmptyState.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
width: 321px;
2020
height: 100px;
2121
#{$block}__image {
22-
margin-right: 20px;
22+
margin-right: var(--g-spacing-5);
2323
}
2424
}
2525
&_size_s {

src/components/EnableFullscreenButton/EnableFullscreenButton.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import {ActionTooltip, Button, Icon} from '@gravity-ui/uikit';
55
import {enableFullscreen} from '../../store/reducers/fullscreen';
66
import {useTypedDispatch} from '../../utils/hooks';
77

8+
import i18n from './i18n';
9+
810
interface EnableFullscreenButtonProps {
911
disabled?: boolean;
1012
view?: ButtonView;
@@ -16,7 +18,7 @@ function EnableFullscreenButton({disabled, view = 'flat-secondary'}: EnableFulls
1618
dispatch(enableFullscreen());
1719
};
1820
return (
19-
<ActionTooltip title="Fullscreen">
21+
<ActionTooltip title={i18n('title_fullscreen')}>
2022
<Button onClick={onEnableFullscreen} view={view} disabled={disabled}>
2123
<Icon data={SquareDashed} />
2224
</Button>
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"title_fullscreen": "Fullscreen"
3+
}
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import {registerKeysets} from '../../../utils/i18n';
2+
3+
import en from './en.json';
4+
5+
const COMPONENT = 'ydb-fullscreen-button';
6+
7+
export default registerKeysets(COMPONENT, {en});

src/components/ProgressViewer/ProgressViewer.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Props description:
3535
6) inverseColorize - invert the colors of the progress bar
3636
7) warningThreshold - the percentage of fullness at which the color of the progress bar changes to yellow
3737
8) dangerThreshold - the percentage of fullness at which the color of the progress bar changes to red
38-
9) overflow - parcents may be more that 100%
38+
9) withOverflow - percents may be more that 100%
3939
*/
4040

4141
export interface ProgressViewerProps {
@@ -50,15 +50,15 @@ export interface ProgressViewerProps {
5050
warningThreshold?: number;
5151
dangerThreshold?: number;
5252
hideCapacity?: boolean;
53-
overflow?: boolean;
53+
withOverflow?: boolean;
5454
}
5555

5656
export function ProgressViewer({
5757
value,
5858
capacity,
5959
formatValues = defaultFormatValues,
6060
percents,
61-
overflow,
61+
withOverflow,
6262
className,
6363
size = 'xs',
6464
colorizeProgress,
@@ -77,7 +77,7 @@ export function ProgressViewer({
7777
capacityText: number | string | undefined = capacity,
7878
divider = '/';
7979
if (percents) {
80-
valueText = (overflow ? rawFillWidth : fillWidth) + '%';
80+
valueText = (withOverflow ? rawFillWidth : fillWidth) + '%';
8181
capacityText = '';
8282
divider = '';
8383
} else if (formatValues) {

src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/i18n/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"description_problems": [
3-
"There is {{count}} issues.",
3+
"There is {{count}} issue.",
44
"There are {{count}} issues.",
55
"There are {{count}} issues.",
66
"There are {{count}} issues."

src/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricsCards.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ function NetworkCard({networkStats}: NetworkCardProps) {
239239
value: used,
240240
capacity: limit,
241241
percents: true,
242-
overflow: true,
242+
withOverflow: true,
243243
};
244244
});
245245

src/containers/Tenant/Healthcheck/Healthcheck.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
&__controls {
99
position: sticky;
1010
z-index: 1;
11-
top: 0px;
11+
top: 0;
1212
left: 0;
1313

1414
padding: var(--g-spacing-4);

0 commit comments

Comments
 (0)