Skip to content

Commit 5d3a7c6

Browse files
fix: revert release, fix package (#920)
Release-as: 6.6.0
1 parent 293cb7c commit 5d3a7c6

File tree

13 files changed

+26
-54
lines changed

13 files changed

+26
-54
lines changed

CHANGELOG.md

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,5 @@
11
# Changelog
22

3-
## [6.6.0](https://github.com/ydb-platform/ydb-embedded-ui/compare/v6.5.0...v6.6.0) (2024-06-14)
4-
5-
6-
### Features
7-
8-
* @gravity-ui/websql-autocomplete -> 9.1.0, enable autocomplete by default ([#904](https://github.com/ydb-platform/ydb-embedded-ui/issues/904)) ([e71fad9](https://github.com/ydb-platform/ydb-embedded-ui/commit/e71fad97fe16ec56dd3ee14e2e1f9ac76eb1bed9))
9-
* **Diagnostics:** add tablets tab to all entities with tablets ([#892](https://github.com/ydb-platform/ydb-embedded-ui/issues/892)) ([e94d53a](https://github.com/ydb-platform/ydb-embedded-ui/commit/e94d53a1fb293119dc3383add220da5f0cf601c3))
10-
* **Overview:** add view info ([#912](https://github.com/ydb-platform/ydb-embedded-ui/issues/912)) ([02e0cd6](https://github.com/ydb-platform/ydb-embedded-ui/commit/02e0cd66739b442eed649c9edd257ac1de87dcae))
11-
* **SchemaViewer:** refactor, add view schema ([#910](https://github.com/ydb-platform/ydb-embedded-ui/issues/910)) ([3a10460](https://github.com/ydb-platform/ydb-embedded-ui/commit/3a1046031b0ced98494c821b8dc5bf13b87081c4))
12-
* **UserSettings:** display app version ([#889](https://github.com/ydb-platform/ydb-embedded-ui/issues/889)) ([e52639e](https://github.com/ydb-platform/ydb-embedded-ui/commit/e52639e84dc5e1ca2707bb38ed917cd613a9c395))
13-
14-
15-
### Bug Fixes
16-
17-
* **AsyncReplication:** fix table styles ([#891](https://github.com/ydb-platform/ydb-embedded-ui/issues/891)) ([f879369](https://github.com/ydb-platform/ydb-embedded-ui/commit/f87936951e28e18823c8743b3634f6f7d0d18b55))
18-
* **TenantOverview:** increase section margin ([#916](https://github.com/ydb-platform/ydb-embedded-ui/issues/916)) ([d8f97f0](https://github.com/ydb-platform/ydb-embedded-ui/commit/d8f97f0de7d452a5f741cca023e233968be97bfa))
19-
203
## [6.5.0](https://github.com/ydb-platform/ydb-embedded-ui/compare/v6.4.0...v6.5.0) (2024-06-06)
214

225

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"name": "ydb-embedded-ui",
3-
"version": "6.6.0",
3+
"version": "6.5.0",
44
"files": [
55
"dist"
66
],
7-
"main": "dist/lib.js",
7+
"main": "dist/src/lib.js",
88
"repository": {
99
"type": "git",
1010
"url": "[email protected]:ydb-platform/ydb-embedded-ui.git"
@@ -65,7 +65,7 @@
6565
"lint:other": "npm run prettier -- --check",
6666
"prettier": "prettier '**/*.{json,yaml,yml,md}'",
6767
"unimported": "npx unimported --no-cache",
68-
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist",
68+
"package": "rm -rf dist && tsc -p tsconfig.package.json && copyfiles -u 1 'src/**/*.{css,scss,svg}' dist/src",
6969
"test": "react-app-rewired test",
7070
"eject": "react-scripts eject",
7171
"prepublishOnly": "npm run package",

src/containers/App/App.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ body,
2828
:root {
2929
--g-color-base-yellow-light: rgba(255, 199, 0, 0.15);
3030
--g-color-base-yellow-medium: rgba(255, 219, 77, 0.4);
31+
32+
--tenant-object-info-max-value-width: 300px;
33+
--diagnostics-section-title-margin: 20px;
34+
--diagnostics-section-margin: 30px;
35+
--diagnostics-section-table-width: 872px;
3136
}
3237

3338
.g-root {

src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import {MonitoringButton} from '../../../components/MonitoringButton/MonitoringButton';
2+
import type {ETenantType} from '../../../types/api/tenant';
23
import type {GetMonitoringLink} from '../../../utils/monitoring';
34
import type Tenant from '../../Tenant/Tenant';
45
import {useClusterData} from '../useClusterData';
@@ -15,7 +16,7 @@ export function ExtendedTenant({
1516
const {additionalNodesProps, cluster, monitoring} = useClusterData();
1617

1718
const additionalTenantProps = {
18-
getMonitoringLink: (dbName?: string, dbType?: string) => {
19+
getMonitoringLink: (dbName?: string, dbType?: ETenantType) => {
1920
if (monitoring && dbName && dbType && getMonitoringLink) {
2021
const href = getMonitoringLink({
2122
monitoring,

src/containers/Tenant/utils/schema.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import type {NavigationTreeNodeType} from 'ydb-ui-components';
22

33
import {EPathSubType, EPathType} from '../../../types/api/schema';
4-
import {ETenantType} from '../../../types/api/tenant';
4+
import type {ETenantType} from '../../../types/api/tenant';
55

66
// this file contains verbose mappings that are typed in a way that ensures
77
// correctness when a new node type or a new path type is added
@@ -89,11 +89,11 @@ export const mapPathTypeToEntityName = (
8989
// ====================
9090

9191
const databaseTypeToDBName: Record<ETenantType, string | undefined> = {
92-
[ETenantType.UnknownTenantType]: 'Database',
93-
[ETenantType.Domain]: 'Cluster Root',
94-
[ETenantType.Dedicated]: 'Dedicated Database',
95-
[ETenantType.Shared]: 'Shared Database',
96-
[ETenantType.Serverless]: 'Serverless Database',
92+
UnknownTenantType: 'Database',
93+
Domain: 'Cluster Root',
94+
Dedicated: 'Dedicated Database',
95+
Shared: 'Shared Database',
96+
Serverless: 'Serverless Database',
9797
};
9898

9999
export const mapDatabaseTypeToDBName = (type?: ETenantType) => type && databaseTypeToDBName[type];

src/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import reportWebVitals from './reportWebVitals';
88
import {history, store} from './store/defaultStore';
99

1010
import './styles/themes.scss';
11-
import './styles/constants.scss';
1211
import './index.css';
1312

1413
async function render() {

src/lib.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ export {setUserSettings} from './store/reducers/settings/settings';
1616
export {componentsRegistry} from './components/ComponentsProvider/componentsRegistry';
1717
export {useSetting, useTypedSelector} from './utils/hooks';
1818
export {getMonitoringLink, getMonitoringClusterLink} from './utils/monitoring';
19-
export {i18n, Lang} from './utils/i18n';
19+
export {i18n, Lang, registerKeysets} from './utils/i18n';
2020
export {toaster} from './utils/createToast';
2121
export {cn} from './utils/cn';
2222
export * from './utils/constants';
@@ -31,3 +31,4 @@ export type {
3131
} from './containers/UserSettings/settings';
3232
export type {SettingProps} from './containers/UserSettings/Setting';
3333
export type {AsideNavigationProps} from './containers/AsideNavigation/AsideNavigation';
34+
export type {GetMonitoringLink, GetMonitoringClusterLink} from './utils/monitoring';

src/styles/constants.scss

Lines changed: 0 additions & 9 deletions
This file was deleted.

src/types/api/tenant.ts

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,7 @@ export interface ControlPlane {
128128
name?: string;
129129
}
130130

131-
export enum ETenantType {
132-
'UnknownTenantType' = 'UnknownTenantType',
133-
'Domain' = 'Domain',
134-
'Dedicated' = 'Dedicated',
135-
'Shared' = 'Shared',
136-
'Serverless' = 'Serverless',
137-
}
131+
export type ETenantType = 'UnknownTenantType' | 'Domain' | 'Dedicated' | 'Shared' | 'Serverless';
138132

139133
export enum State {
140134
'STATE_UNSPECIFIED' = 'STATE_UNSPECIFIED',

0 commit comments

Comments
 (0)