ydb-embedded-ui 4.20.1 → 4.20.2

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
@@ -1,5 +1,14 @@
1
1
  # Changelog
2
2
 
3
+ ## [4.20.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.20.1...v4.20.2) (2023-10-25)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * fix diagnostics top queries width ([#574](https://github.com/ydb-platform/ydb-embedded-ui/issues/574)) ([afa17f2](https://github.com/ydb-platform/ydb-embedded-ui/commit/afa17f236331692167a0a37936b090a8baa772df))
9
+ * fix sticky storage info ([#573](https://github.com/ydb-platform/ydb-embedded-ui/issues/573)) ([4b923d1](https://github.com/ydb-platform/ydb-embedded-ui/commit/4b923d1db73c53c63e95f43487127b4c2c1e4cac))
10
+ * use UsageLabel in top groups by usage table ([#572](https://github.com/ydb-platform/ydb-embedded-ui/issues/572)) ([752888d](https://github.com/ydb-platform/ydb-embedded-ui/commit/752888d26ac2cab75307011fb1354830b1cb6db6))
11
+
3
12
  ## [4.20.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.20.0...v4.20.1) (2023-10-24)
4
13
 
5
14
 
@@ -2,6 +2,8 @@ import cn from 'bem-cn-lite';
2
2
 
3
3
  import {Label, type LabelProps} from '@gravity-ui/uikit';
4
4
 
5
+ import './UsageLabel.scss';
6
+
5
7
  const b = cn('ydb-usage-label');
6
8
 
7
9
  interface UsageLabelProps extends LabelProps {
@@ -31,12 +31,6 @@
31
31
  width: 230px;
32
32
  }
33
33
 
34
- &__usage-label {
35
- &_overload {
36
- color: var(--yc-color-text-light-primary);
37
- background-color: var(--yc-color-base-danger-heavy);
38
- }
39
- }
40
34
  &__group-id {
41
35
  font-weight: 500;
42
36
  }
@@ -13,6 +13,7 @@ import {stringifyVdiskId} from '../../../utils/dataFormatters/dataFormatters';
13
13
  import EntityStatus from '../../../components/EntityStatus/EntityStatus';
14
14
  import {Stack} from '../../../components/Stack/Stack';
15
15
  import {CellWithPopover} from '../../../components/CellWithPopover/CellWithPopover';
16
+ import {UsageLabel} from '../../../components/UsageLabel/UsageLabel';
16
17
  import {VDisk} from '../VDisk';
17
18
  import {getDegradedSeverity, getUsageSeverityForStorageGroup} from '../utils';
18
19
  import i18n from './i18n';
@@ -128,12 +129,7 @@ const usageColumn: Column<PreparedStorageGroup> = {
128
129
  // without a limit the usage can be evaluated as 0,
129
130
  // but the absence of a value is more clear
130
131
  return row.Limit ? (
131
- <Label
132
- theme={getUsageSeverityForStorageGroup(row.Usage)}
133
- className={b('usage-label', {overload: row.Usage >= 90})}
134
- >
135
- {row.Usage}%
136
- </Label>
132
+ <UsageLabel value={row.Usage} theme={getUsageSeverityForStorageGroup(row.Usage)} />
137
133
  ) : (
138
134
  '-'
139
135
  );
@@ -119,7 +119,7 @@
119
119
  }
120
120
  }
121
121
 
122
- &__info {
122
+ &__storage-info {
123
123
  margin-bottom: 36px;
124
124
  }
125
125
  }
@@ -62,7 +62,7 @@ export function TenantStorage({tenantName, metrics}: TenantStorageProps) {
62
62
  ];
63
63
  return (
64
64
  <>
65
- <InfoViewer className={b('info')} title="Storage details" info={info} />
65
+ <InfoViewer className={b('storage-info')} title="Storage details" info={info} />
66
66
  <TopTables path={tenantName} />
67
67
  <TopGroups tenant={tenantName} />
68
68
  </>
@@ -39,6 +39,8 @@
39
39
  &__query {
40
40
  overflow: hidden;
41
41
 
42
+ width: 500px;
43
+
42
44
  vertical-align: top;
43
45
  white-space: pre-wrap;
44
46
  text-overflow: ellipsis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "4.20.1",
3
+ "version": "4.20.2",
4
4
  "files": [
5
5
  "dist"
6
6
  ],