ydb-embedded-ui 1.6.0 → 1.6.3

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,27 @@
1
1
  # Changelog
2
2
 
3
+ ## [1.6.3](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.6.2...v1.6.3) (2022-06-22)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **ClipboardButton:** clickable area now matches visual area ([8c0b5ef](https://github.com/ydb-platform/ydb-embedded-ui/commit/8c0b5ef27d5d31b28a29455b3019de23bdbf8f68))
9
+
10
+ ## [1.6.2](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.6.1...v1.6.2) (2022-06-07)
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * shouls always select result tab ([98d4bcb](https://github.com/ydb-platform/ydb-embedded-ui/commit/98d4bcbc94bc2b9db9fb9b9cd5aced9f079ecdae))
16
+
17
+ ## [1.6.1](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.6.0...v1.6.1) (2022-06-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * should show Pending instead of Pendin ([0b93f80](https://github.com/ydb-platform/ydb-embedded-ui/commit/0b93f8000dffca27cd26321eb86f41e4f458faa6))
23
+ * should show query error even if no issues ([708bac5](https://github.com/ydb-platform/ydb-embedded-ui/commit/708bac56c2e671ec23e23c5055d0c0a9d419cd86))
24
+
3
25
  ## [1.6.0](https://github.com/ydb-platform/ydb-embedded-ui/compare/v1.5.3...v1.6.0) (2022-06-06)
4
26
 
5
27
 
@@ -80,15 +80,15 @@ class EntityStatus extends React.Component {
80
80
  )}
81
81
  {this.renderLink()}
82
82
  {hasClipboardButton && (
83
- <span
83
+ <Button
84
+ component="span"
85
+ size="s"
84
86
  className={b('clipboard-button', {
85
87
  visible: false,
86
88
  })}
87
89
  >
88
- <Button size="s">
89
- <ClipboardButton text={name} size={16} />
90
- </Button>
91
- </span>
90
+ <ClipboardButton text={name} size={16} />
91
+ </Button>
92
92
  )}
93
93
  </div>
94
94
  );
@@ -17,11 +17,16 @@
17
17
  color: var(--yc-color-text-secondary);
18
18
 
19
19
  .yc-button__text {
20
- margin: 0 4px;
20
+ margin: 0;
21
+ }
22
+
23
+ .yc-clipboard-button {
24
+ width: 24px;
25
+ height: 24px;
21
26
  }
22
27
 
23
28
  &_visible {
24
- display: flex;
29
+ display: inline-flex;
25
30
  }
26
31
  }
27
32
 
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import {connect} from 'react-redux';
3
3
  import PropTypes from 'prop-types';
4
4
 
5
- import {i18n as YDBComponentsI18N} from 'ydb-ui-components/build/components/i18n';
5
+ import {i18n as YDBComponentsI18N} from 'ydb-ui-components';
6
6
  import {I18N, i18n} from '../../utils/i18n';
7
7
 
8
8
  import ContentWrapper, {Content} from './Content';
@@ -100,6 +100,7 @@ body,
100
100
 
101
101
  .yc-clipboard-button {
102
102
  display: inline-flex;
103
+ justify-content: center;
103
104
  align-items: center;
104
105
  }
105
106
 
@@ -28,9 +28,7 @@ const resultOptions = [
28
28
  ];
29
29
 
30
30
  function QueryResult(props) {
31
- const [activeSection, setActiveSection] = useState(
32
- props.result ? resultOptionsIds.result : resultOptionsIds.stats,
33
- );
31
+ const [activeSection, setActiveSection] = useState(resultOptionsIds.result);
34
32
  const isFullscreen = useSelector((state) => state.fullscreen);
35
33
  const dispatch = useDispatch();
36
34
 
@@ -111,7 +109,9 @@ function QueryResult(props) {
111
109
  </Fullscreen>
112
110
  )}
113
111
  </React.Fragment>
114
- ) : null;
112
+ ) : (
113
+ <span>{error?.data ?? error}</span>
114
+ );
115
115
  };
116
116
 
117
117
  return (
@@ -201,7 +201,7 @@ class Tenants extends React.Component {
201
201
  },
202
202
  {
203
203
  name: 'State',
204
- width: 80,
204
+ width: 90,
205
205
  render: ({value}) => (value ? value.toLowerCase() : '—'),
206
206
  customStyle: () => ({textTransform: 'capitalize'}),
207
207
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ydb-embedded-ui",
3
- "version": "1.6.0",
3
+ "version": "1.6.3",
4
4
  "files": [
5
5
  "dist"
6
6
  ],
@@ -40,7 +40,7 @@
40
40
  "reselect": "4.0.0",
41
41
  "sass": "1.32.8",
42
42
  "web-vitals": "1.1.2",
43
- "ydb-ui-components": "2.0.1"
43
+ "ydb-ui-components": "2.0.2"
44
44
  },
45
45
  "scripts": {
46
46
  "start": "react-app-rewired start",