ydb-embedded-ui 4.20.1 → 4.20.3
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +16 -0
- package/dist/components/UsageLabel/UsageLabel.tsx +2 -0
- package/dist/containers/Storage/StorageGroups/StorageGroups.scss +0 -6
- package/dist/containers/Storage/StorageGroups/getStorageGroupsColumns.tsx +2 -6
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +1 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.tsx +1 -1
- package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +2 -0
- package/dist/routes.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## [4.20.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.20.2...v4.20.3) (2023-10-25)
|
4
|
+
|
5
|
+
|
6
|
+
### Bug Fixes
|
7
|
+
|
8
|
+
* fix port doesnt match ([#576](https://github.com/ydb-platform/ydb-embedded-ui/issues/576)) ([147a2a9](https://github.com/ydb-platform/ydb-embedded-ui/commit/147a2a919c5fe8ec99f19620da70387ab6c0e519))
|
9
|
+
|
10
|
+
## [4.20.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.20.1...v4.20.2) (2023-10-25)
|
11
|
+
|
12
|
+
|
13
|
+
### Bug Fixes
|
14
|
+
|
15
|
+
* 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))
|
16
|
+
* 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))
|
17
|
+
* 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))
|
18
|
+
|
3
19
|
## [4.20.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v4.20.0...v4.20.1) (2023-10-24)
|
4
20
|
|
5
21
|
|
@@ -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
|
-
<
|
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
|
);
|
@@ -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
|
</>
|
package/dist/routes.ts
CHANGED
@@ -27,7 +27,7 @@ export const parseQuery = (location: Location) => {
|
|
27
27
|
|
28
28
|
const prepareRoute = (route: string) => {
|
29
29
|
let preparedRoute = route;
|
30
|
-
const portRegExp = /:\d{3,
|
30
|
+
const portRegExp = /:\d{3,5}/g;
|
31
31
|
const portMatch = route.match(portRegExp);
|
32
32
|
|
33
33
|
// if port exists in route we escape port to avoid errors in function compile()
|