ydb-embedded-ui 4.24.0 → 4.26.0
Sign up to get free protection for your applications and to get access to all the features.
- package/CHANGELOG.md +15 -0
- package/README.md +39 -0
- package/dist/components/BasicNodeViewer/BasicNodeViewer.scss +3 -11
- package/dist/components/CircularProgressBar/CircularProgressBar.scss +4 -4
- package/dist/components/DateRange/DateRange.scss +3 -3
- package/dist/components/DiagnosticCard/DiagnosticCard.scss +4 -4
- package/dist/components/Divider/Divider.scss +1 -1
- package/dist/components/EmptyState/EmptyState.scss +8 -9
- package/dist/components/EntityStatus/EntityStatus.scss +19 -29
- package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.tsx +2 -2
- package/dist/components/FullNodeViewer/FullNodeViewer.scss +1 -4
- package/dist/components/Fullscreen/Fullscreen.scss +2 -9
- package/dist/components/Icon/Icon.tsx +1 -5
- package/dist/components/InfoViewer/InfoViewer.scss +6 -6
- package/dist/components/LabelWithPopover/LabelWithPopover.tsx +3 -2
- package/dist/components/NodeHostWrapper/NodeHostWrapper.tsx +2 -2
- package/dist/components/PoolBar/PoolBar.scss +6 -6
- package/dist/components/PoolUsage/PoolUsage.scss +15 -17
- package/dist/components/ProgressViewer/ProgressViewer.scss +17 -16
- package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +3 -3
- package/dist/components/SpeedMultiMeter/SpeedMultiMeter.scss +5 -5
- package/dist/components/SpeedMultiMeter/SpeedMultiMeter.tsx +12 -13
- package/dist/components/SplitPane/SplitPane.scss +5 -5
- package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
- package/dist/components/Tablet/Tablet.scss +10 -10
- package/dist/components/TabletsStatistic/TabletsStatistic.scss +13 -13
- package/dist/components/Tag/Tag.scss +3 -3
- package/dist/components/TruncatedQuery/TruncatedQuery.scss +1 -1
- package/dist/components/UsageLabel/UsageLabel.scss +2 -2
- package/dist/components/UsageLabel/UsageLabel.tsx +1 -1
- package/dist/components/VirtualTable/VirtualTable.scss +3 -3
- package/dist/containers/App/App.scss +20 -24
- package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -4
- package/dist/containers/Authentication/Authentication.scss +4 -4
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -6
- package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +1 -1
- package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss +3 -3
- package/dist/containers/Cluster/VersionsBar/VersionsBar.tsx +1 -1
- package/dist/containers/Header/Header.scss +1 -1
- package/dist/containers/Heatmap/Heatmap.scss +3 -5
- package/dist/containers/Heatmap/Histogram/Histogram.scss +6 -6
- package/dist/containers/Node/NodeStructure/NodeStructure.scss +10 -13
- package/dist/containers/Node/NodeStructure/Pdisk.tsx +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.js +1 -1
- package/dist/containers/ReduxTooltip/ReduxTooltip.scss +1 -18
- package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +23 -23
- package/dist/containers/Storage/PDisk/PDisk.scss +4 -4
- package/dist/containers/Storage/PDiskPopup/PDiskPopup.tsx +1 -1
- package/dist/containers/Storage/Storage.scss +1 -1
- package/dist/containers/Storage/StorageGroups/StorageGroups.scss +1 -1
- package/dist/containers/Storage/UsageFilter/UsageFilter.scss +7 -6
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.scss +1 -1
- package/dist/containers/Storage/VDiskPopup/VDiskPopup.tsx +1 -1
- package/dist/containers/Tablet/Tablet.scss +5 -5
- package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -3
- package/dist/containers/Tenant/Acl/Acl.scss +1 -15
- package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +0 -4
- package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +5 -4
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -6
- package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.tsx +11 -79
- package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +2 -2
- package/dist/containers/Tenant/Diagnostics/Network/Network.scss +8 -10
- package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +8 -8
- package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +1 -5
- package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +12 -12
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +1 -36
- package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +3 -3
- package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +7 -7
- package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -53
- package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.scss +1 -1
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +4 -8
- package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +2 -1
- package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +3 -6
- package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +2 -5
- package/dist/containers/Tenant/Query/Issues/Issues.scss +11 -14
- package/dist/containers/Tenant/Query/Preview/Preview.scss +3 -7
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.tsx +5 -12
- package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -10
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +3 -9
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +3 -25
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +15 -40
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +5 -5
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +3 -3
- package/dist/containers/Tenant/Query/i18n/en.json +0 -2
- package/dist/containers/Tenant/Query/i18n/ru.json +0 -2
- package/dist/containers/Tenant/Tenant.scss +1 -2
- package/dist/containers/Tenant/utils/schemaActions.ts +11 -18
- package/dist/containers/Tenant/utils/schemaControls.tsx +2 -2
- package/dist/containers/UserSettings/Setting.tsx +5 -1
- package/dist/containers/UserSettings/i18n/en.json +1 -7
- package/dist/containers/UserSettings/i18n/ru.json +1 -7
- package/dist/containers/UserSettings/settings.ts +1 -19
- package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -3
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -1
- package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +1 -1
- package/dist/index.tsx +1 -0
- package/dist/services/api.ts +1 -0
- package/dist/store/reducers/settings/settings.ts +0 -10
- package/dist/styles/mixins.scss +37 -35
- package/dist/styles/themes/dark-hc.scss +296 -0
- package/dist/styles/themes/dark.scss +297 -0
- package/dist/styles/themes/light-hc.scss +289 -0
- package/dist/styles/themes/light.scss +291 -0
- package/dist/styles/themes.scss +73 -0
- package/dist/utils/constants.ts +0 -11
- package/dist/utils/hooks/useQueryModes.ts +3 -32
- package/dist/utils/query.ts +0 -4
- package/package.json +7 -6
- package/dist/containers/App/TipPopup/TipPopup.js +0 -66
- package/dist/containers/App/TipPopup/TipPopup.scss +0 -46
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Details/Details.tsx +0 -64
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Details/index.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Healthcheck.scss +0 -137
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Healthcheck.tsx +0 -92
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Preview/Preview.tsx +0 -82
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Preview/index.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/OldHealthcheck/index.ts +0 -1
- package/dist/containers/Tenant/Diagnostics/TenantOverview/OldTenantOverview.tsx +0 -155
- package/dist/utils/hooks/i18n/en.json +0 -3
- package/dist/utils/hooks/i18n/index.ts +0 -11
- package/dist/utils/hooks/i18n/ru.json +0 -3
@@ -11,12 +11,6 @@
|
|
11
11
|
|
12
12
|
@include query-data-table;
|
13
13
|
|
14
|
-
& .yc-button__text {
|
15
|
-
display: flex;
|
16
|
-
justify-content: center;
|
17
|
-
align-items: center;
|
18
|
-
}
|
19
|
-
|
20
14
|
&__monaco {
|
21
15
|
position: relative;
|
22
16
|
|
@@ -25,7 +19,7 @@
|
|
25
19
|
width: 100%;
|
26
20
|
height: 100%;
|
27
21
|
|
28
|
-
border: 1px solid var(--
|
22
|
+
border: 1px solid var(--g-color-line-generic);
|
29
23
|
}
|
30
24
|
|
31
25
|
&__monaco-wrapper {
|
@@ -40,12 +34,12 @@
|
|
40
34
|
display: flex;
|
41
35
|
flex-direction: column;
|
42
36
|
|
43
|
-
background-color: var(--
|
37
|
+
background-color: var(--g-color-base-background);
|
44
38
|
|
45
39
|
&_top {
|
46
40
|
padding: 0 16px;
|
47
41
|
|
48
|
-
border-bottom: 1px solid var(--
|
42
|
+
border-bottom: 1px solid var(--g-color-line-generic);
|
49
43
|
}
|
50
44
|
}
|
51
45
|
}
|
@@ -14,20 +14,11 @@
|
|
14
14
|
gap: 12px;
|
15
15
|
}
|
16
16
|
|
17
|
-
&__run {
|
18
|
-
.yc-button__text {
|
19
|
-
display: flex;
|
20
|
-
justify-content: center;
|
21
|
-
align-items: center;
|
22
|
-
gap: 8px;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
17
|
&__mode-selector {
|
27
18
|
$b: &;
|
28
19
|
|
29
20
|
&__button {
|
30
|
-
width:
|
21
|
+
width: 241px;
|
31
22
|
margin-left: 2px;
|
32
23
|
}
|
33
24
|
|
@@ -36,24 +27,11 @@
|
|
36
27
|
justify-content: space-between;
|
37
28
|
align-items: center;
|
38
29
|
|
39
|
-
width:
|
30
|
+
width: 215px;
|
40
31
|
}
|
41
32
|
|
42
33
|
&__popup {
|
43
|
-
width:
|
44
|
-
|
45
|
-
&_extended {
|
46
|
-
width: 241px;
|
47
|
-
}
|
48
|
-
}
|
49
|
-
|
50
|
-
&_extended {
|
51
|
-
#{$b}__button {
|
52
|
-
width: 241px;
|
53
|
-
}
|
54
|
-
#{$b}__button-content {
|
55
|
-
width: 215px;
|
56
|
-
}
|
34
|
+
width: 241px;
|
57
35
|
}
|
58
36
|
}
|
59
37
|
|
@@ -19,17 +19,6 @@ const queryModeSelectorPopupQa = 'query-mode-selector-popup';
|
|
19
19
|
|
20
20
|
const b = block('ydb-query-editor-controls');
|
21
21
|
|
22
|
-
const OldQueryModeSelectorOptions = {
|
23
|
-
[QUERY_MODES.script]: {
|
24
|
-
title: QUERY_MODES_TITLES[QUERY_MODES.script],
|
25
|
-
description: i18n('method-description.script'),
|
26
|
-
},
|
27
|
-
[QUERY_MODES.scan]: {
|
28
|
-
title: QUERY_MODES_TITLES[QUERY_MODES.scan],
|
29
|
-
description: i18n('method-description.scan'),
|
30
|
-
},
|
31
|
-
} as const;
|
32
|
-
|
33
22
|
const QueryModeSelectorOptions = {
|
34
23
|
[QUERY_MODES.script]: {
|
35
24
|
title: QUERY_MODES_TITLES[QUERY_MODES.script],
|
@@ -63,7 +52,6 @@ interface QueryEditorControlsProps {
|
|
63
52
|
disabled: boolean;
|
64
53
|
onUpdateQueryMode: (mode: QueryMode) => void;
|
65
54
|
queryMode: QueryMode;
|
66
|
-
enableAdditionalQueryModes: boolean;
|
67
55
|
highlitedAction: QueryAction;
|
68
56
|
}
|
69
57
|
|
@@ -78,14 +66,9 @@ export const QueryEditorControls = ({
|
|
78
66
|
onUpdateQueryMode,
|
79
67
|
queryMode,
|
80
68
|
highlitedAction,
|
81
|
-
enableAdditionalQueryModes,
|
82
69
|
}: QueryEditorControlsProps) => {
|
83
70
|
const querySelectorMenuItems = useMemo(() => {
|
84
|
-
|
85
|
-
? QueryModeSelectorOptions
|
86
|
-
: OldQueryModeSelectorOptions;
|
87
|
-
|
88
|
-
return Object.entries(options).map(([mode, {title, description}]) => {
|
71
|
+
return Object.entries(QueryModeSelectorOptions).map(([mode, {title, description}]) => {
|
89
72
|
return {
|
90
73
|
text: (
|
91
74
|
<LabelWithPopover
|
@@ -100,7 +83,7 @@ export const QueryEditorControls = ({
|
|
100
83
|
},
|
101
84
|
};
|
102
85
|
});
|
103
|
-
}, [onUpdateQueryMode
|
86
|
+
}, [onUpdateQueryMode]);
|
104
87
|
|
105
88
|
const runView: ButtonView | undefined = highlitedAction === 'execute' ? 'action' : undefined;
|
106
89
|
const explainView: ButtonView | undefined =
|
@@ -109,19 +92,17 @@ export const QueryEditorControls = ({
|
|
109
92
|
return (
|
110
93
|
<div className={b()}>
|
111
94
|
<div className={b('left')}>
|
112
|
-
<
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
</Button>
|
124
|
-
</div>
|
95
|
+
<Button
|
96
|
+
onClick={() => {
|
97
|
+
onRunButtonClick(queryMode);
|
98
|
+
}}
|
99
|
+
disabled={disabled}
|
100
|
+
loading={runIsLoading}
|
101
|
+
view={runView}
|
102
|
+
>
|
103
|
+
<Icon name="startPlay" viewBox="0 0 16 16" width={16} height={16} />
|
104
|
+
{'Run'}
|
105
|
+
</Button>
|
125
106
|
<Button
|
126
107
|
onClick={() => {
|
127
108
|
onExplainButtonClick(queryMode);
|
@@ -132,17 +113,11 @@ export const QueryEditorControls = ({
|
|
132
113
|
>
|
133
114
|
Explain
|
134
115
|
</Button>
|
135
|
-
<div
|
136
|
-
className={b('mode-selector', {
|
137
|
-
extended: enableAdditionalQueryModes,
|
138
|
-
})}
|
139
|
-
>
|
116
|
+
<div className={b('mode-selector')}>
|
140
117
|
<DropdownMenu
|
141
118
|
items={querySelectorMenuItems}
|
142
119
|
popupProps={{
|
143
|
-
className: b('mode-selector__popup',
|
144
|
-
extended: enableAdditionalQueryModes,
|
145
|
-
}),
|
120
|
+
className: b('mode-selector__popup'),
|
146
121
|
qa: queryModeSelectorPopupQa,
|
147
122
|
}}
|
148
123
|
switcher={
|
@@ -4,7 +4,7 @@
|
|
4
4
|
align-items: flex-start;
|
5
5
|
|
6
6
|
& + & {
|
7
|
-
margin-top: var(--
|
7
|
+
margin-top: var(--g-text-body-1-line-height);
|
8
8
|
}
|
9
9
|
}
|
10
10
|
&__field-title {
|
@@ -18,7 +18,7 @@
|
|
18
18
|
&::after {
|
19
19
|
content: '*';
|
20
20
|
|
21
|
-
color: var(--
|
21
|
+
color: var(--g-color-text-danger);
|
22
22
|
}
|
23
23
|
}
|
24
24
|
}
|
@@ -32,7 +32,7 @@
|
|
32
32
|
|
33
33
|
height: 17px;
|
34
34
|
|
35
|
-
color: var(--
|
35
|
+
color: var(--g-color-text-danger);
|
36
36
|
}
|
37
37
|
&__embedded-tooltip {
|
38
38
|
display: flex;
|
@@ -41,11 +41,11 @@
|
|
41
41
|
height: 100%;
|
42
42
|
margin-left: -10px;
|
43
43
|
|
44
|
-
color: var(--
|
44
|
+
color: var(--g-color-text-secondary);
|
45
45
|
&:hover {
|
46
46
|
cursor: pointer;
|
47
47
|
|
48
|
-
color: var(--
|
48
|
+
color: var(--g-color-text-complementary);
|
49
49
|
}
|
50
50
|
}
|
51
51
|
|
@@ -11,7 +11,7 @@ import {setQueryTab} from '../../../../store/reducers/tenant/tenant';
|
|
11
11
|
import {TENANT_QUERY_TABS_ID} from '../../../../store/reducers/tenant/constants';
|
12
12
|
|
13
13
|
import {TruncatedQuery} from '../../../../components/TruncatedQuery/TruncatedQuery';
|
14
|
-
import {
|
14
|
+
import {Icon} from '../../../../components/Icon';
|
15
15
|
|
16
16
|
import {MAX_QUERY_HEIGHT, QUERY_TABLE_SETTINGS} from '../../utils/constants';
|
17
17
|
|
@@ -110,10 +110,10 @@ export const SavedQueries = ({savedQueries, changeUserInput, onDeleteQuery}: Sav
|
|
110
110
|
</div>
|
111
111
|
<span className={b('controls')}>
|
112
112
|
<Button view="flat-secondary">
|
113
|
-
<
|
113
|
+
<Icon name="pencil" viewBox="0 0 24 24" />
|
114
114
|
</Button>
|
115
115
|
<Button view="flat-secondary" onClick={onDeleteQueryClick(query.name)}>
|
116
|
-
<
|
116
|
+
<Icon name="trash" viewBox="0 0 24 24" />
|
117
117
|
</Button>
|
118
118
|
</span>
|
119
119
|
</div>
|
@@ -8,8 +8,6 @@
|
|
8
8
|
"history.empty": "History is empty",
|
9
9
|
"saved.empty": "There are no saved queries",
|
10
10
|
|
11
|
-
"history.cannot-set-mode": "This query is available only with '{{mode}}' query mode. You need to turn in additional query modes in settings to enable it",
|
12
|
-
|
13
11
|
"delete-dialog.header": "Delete query",
|
14
12
|
"delete-dialog.question": "Are you sure you want to delete query",
|
15
13
|
"delete-dialog.delete": "Delete",
|
@@ -8,8 +8,6 @@
|
|
8
8
|
"history.empty": "История пуста",
|
9
9
|
"saved.empty": "Нет сохраненных запросов",
|
10
10
|
|
11
|
-
"history.cannot-set-mode": "Этот запрос доступен только в режиме '{{mode}}'. Вам необходимо включить дополнительные режимы выполнения запросов в настройках",
|
12
|
-
|
13
11
|
"delete-dialog.header": "Удалить запрос",
|
14
12
|
"delete-dialog.question": "Вы уверены что хотите удалить запрос",
|
15
13
|
"delete-dialog.delete": "Удалить",
|
@@ -4,7 +4,6 @@ import copy from 'copy-to-clipboard';
|
|
4
4
|
import type {NavigationTreeNodeType, NavigationTreeProps} from 'ydb-ui-components';
|
5
5
|
|
6
6
|
import type {QueryMode} from '../../../types/store/query';
|
7
|
-
import type {SetQueryModeIfAvailable} from '../../../utils/hooks';
|
8
7
|
import {changeUserInput} from '../../../store/reducers/executeQuery';
|
9
8
|
import {setQueryTab, setTenantPage} from '../../../store/reducers/tenant/tenant';
|
10
9
|
import {TENANT_QUERY_TABS_ID, TENANT_PAGES_IDS} from '../../../store/reducers/tenant/constants';
|
@@ -25,7 +24,7 @@ import {
|
|
25
24
|
} from './queryTemplates';
|
26
25
|
|
27
26
|
interface ActionsAdditionalEffects {
|
28
|
-
setQueryMode:
|
27
|
+
setQueryMode: (mode: QueryMode) => void;
|
29
28
|
setActivePath: (path: string) => void;
|
30
29
|
}
|
31
30
|
|
@@ -36,18 +35,16 @@ const bindActions = (
|
|
36
35
|
) => {
|
37
36
|
const {setActivePath, setQueryMode} = additionalEffects;
|
38
37
|
|
39
|
-
const inputQuery =
|
40
|
-
|
41
|
-
|
42
|
-
|
38
|
+
const inputQuery = (tmpl: (path: string) => string, mode?: QueryMode) => () => {
|
39
|
+
if (mode) {
|
40
|
+
setQueryMode(mode);
|
41
|
+
}
|
43
42
|
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
}
|
50
|
-
};
|
43
|
+
dispatch(changeUserInput({input: tmpl(path)}));
|
44
|
+
dispatch(setTenantPage(TENANT_PAGES_IDS.query));
|
45
|
+
dispatch(setQueryTab(TENANT_QUERY_TABS_ID.newQuery));
|
46
|
+
setActivePath(path);
|
47
|
+
};
|
51
48
|
|
52
49
|
return {
|
53
50
|
createTable: inputQuery(createTableTemplate, 'script'),
|
@@ -56,11 +53,7 @@ const bindActions = (
|
|
56
53
|
upsertQuery: inputQuery(upsertQueryTemplate),
|
57
54
|
createExternalTable: inputQuery(createExternalTableTemplate, 'script'),
|
58
55
|
dropExternalTable: inputQuery(dropExternalTableTemplate, 'script'),
|
59
|
-
selectQueryFromExternalTable: inputQuery(
|
60
|
-
selectQueryTemplate,
|
61
|
-
'query',
|
62
|
-
i18n('actions.externalTableSelectUnavailable'),
|
63
|
-
),
|
56
|
+
selectQueryFromExternalTable: inputQuery(selectQueryTemplate, 'query'),
|
64
57
|
createTopic: inputQuery(createTopicTemplate, 'script'),
|
65
58
|
alterTopic: inputQuery(alterTopicTemplate, 'script'),
|
66
59
|
dropTopic: inputQuery(dropTopicTemplate, 'script'),
|
@@ -6,7 +6,7 @@ import {Button} from '@gravity-ui/uikit';
|
|
6
6
|
import {setShowPreview} from '../../../store/reducers/schema/schema';
|
7
7
|
import {setQueryTab, setTenantPage} from '../../../store/reducers/tenant/tenant';
|
8
8
|
import {TENANT_PAGES_IDS, TENANT_QUERY_TABS_ID} from '../../../store/reducers/tenant/constants';
|
9
|
-
import {
|
9
|
+
import {Icon} from '../../../components/Icon';
|
10
10
|
|
11
11
|
import i18n from '../i18n';
|
12
12
|
|
@@ -44,7 +44,7 @@ export const getControls =
|
|
44
44
|
title={i18n('actions.openPreview')}
|
45
45
|
size="s"
|
46
46
|
>
|
47
|
-
<
|
47
|
+
<Icon name="tablePreview" />
|
48
48
|
</Button>
|
49
49
|
);
|
50
50
|
|
@@ -82,7 +82,11 @@ export const Setting = ({
|
|
82
82
|
};
|
83
83
|
|
84
84
|
return (
|
85
|
-
<Settings.Item
|
85
|
+
<Settings.Item
|
86
|
+
title={title}
|
87
|
+
highlightedTitle={title}
|
88
|
+
renderTitleComponent={renderTitleComponent}
|
89
|
+
>
|
86
90
|
{getSettingsElement(type)}
|
87
91
|
</Settings.Item>
|
88
92
|
);
|
@@ -22,12 +22,6 @@
|
|
22
22
|
"settings.useBackendParamsForTables.title": "Use virtual table for cluster Nodes tab",
|
23
23
|
"settings.useBackendParamsForTables.popover": "Use table with data load on scroll. It will increase performance, but could work unstable",
|
24
24
|
|
25
|
-
"settings.enableAdditionalQueryModes.title": "Enable additional query modes",
|
26
|
-
"settings.enableAdditionalQueryModes.popover": "Adds 'Data', 'YQL - QueryService' and 'PostgreSQL' modes. May not work on some versions",
|
27
|
-
|
28
25
|
"settings.queryUseMultiSchema.title": "Allow queries with multiple result sets",
|
29
|
-
"settings.queryUseMultiSchema.popover": "Use 'multi' schema for queries that enables queries with multiple result sets. Returns nothing on versions 23-3 and older"
|
30
|
-
|
31
|
-
"settings.tenantDiagnostics.title": "Display metrics cards for database diagnostics",
|
32
|
-
"settings.tenantDiagnostics.popover": "Adds indicators of database resources usage. Incomplete data may be displayed for some databases"
|
26
|
+
"settings.queryUseMultiSchema.popover": "Use 'multi' schema for queries that enables queries with multiple result sets. Returns nothing on versions 23-3 and older"
|
33
27
|
}
|
@@ -22,12 +22,6 @@
|
|
22
22
|
"settings.useBackendParamsForTables.title": "Использовать виртуализированную таблицу для вкладки Nodes кластера",
|
23
23
|
"settings.useBackendParamsForTables.popover": "Использовать таблицу с загрузкой данных по скроллу. Это улучшит производительность, но может работать нестабильно",
|
24
24
|
|
25
|
-
"settings.enableAdditionalQueryModes.title": "Включить дополнительные режимы выполнения запросов",
|
26
|
-
"settings.enableAdditionalQueryModes.popover": "Добавляет режимы 'Data', 'YQL - QueryService' и 'PostgreSQL'. Может работать некорректно на некоторых версиях",
|
27
|
-
|
28
25
|
"settings.queryUseMultiSchema.title": "Разрешить запросы с несколькими результатами",
|
29
|
-
"settings.queryUseMultiSchema.popover": "Использовать для запросов схему 'multi', которая позволяет выполнять запросы с несколькими результатами. На версиях 23-3 и старше результат не возвращается вообще"
|
30
|
-
|
31
|
-
"settings.tenantDiagnostics.title": "Показывать карточки с метриками в диагностике базы данных",
|
32
|
-
"settings.tenantDiagnostics.popover": "Добавляет индикаторы использования ресурсов базы данных. Для некоторых баз могут отображаться неполные данные"
|
26
|
+
"settings.queryUseMultiSchema.popover": "Использовать для запросов схему 'multi', которая позволяет выполнять запросы с несколькими результатами. На версиях 23-3 и старше результат не возвращается вообще"
|
33
27
|
}
|
@@ -4,8 +4,6 @@ import favoriteFilledIcon from '../../assets/icons/star.svg';
|
|
4
4
|
import flaskIcon from '../../assets/icons/flask.svg';
|
5
5
|
|
6
6
|
import {
|
7
|
-
ENABLE_ADDITIONAL_QUERY_MODES,
|
8
|
-
DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS,
|
9
7
|
INVERTED_DISKS_KEY,
|
10
8
|
LANGUAGE_KEY,
|
11
9
|
THEME_KEY,
|
@@ -91,21 +89,11 @@ export const useBackendParamsForTables: SettingProps = {
|
|
91
89
|
title: i18n('settings.useBackendParamsForTables.title'),
|
92
90
|
helpPopoverContent: i18n('settings.useBackendParamsForTables.popover'),
|
93
91
|
};
|
94
|
-
export const enableQueryModesForExplainSetting: SettingProps = {
|
95
|
-
settingKey: ENABLE_ADDITIONAL_QUERY_MODES,
|
96
|
-
title: i18n('settings.enableAdditionalQueryModes.title'),
|
97
|
-
helpPopoverContent: i18n('settings.enableAdditionalQueryModes.popover'),
|
98
|
-
};
|
99
92
|
export const queryUseMultiSchemaSetting: SettingProps = {
|
100
93
|
settingKey: QUERY_USE_MULTI_SCHEMA_KEY,
|
101
94
|
title: i18n('settings.queryUseMultiSchema.title'),
|
102
95
|
helpPopoverContent: i18n('settings.queryUseMultiSchema.popover'),
|
103
96
|
};
|
104
|
-
export const enableNewTenantDiagnosticsDesign: SettingProps = {
|
105
|
-
settingKey: DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS,
|
106
|
-
title: i18n('settings.tenantDiagnostics.title'),
|
107
|
-
helpPopoverContent: i18n('settings.tenantDiagnostics.popover'),
|
108
|
-
};
|
109
97
|
|
110
98
|
export const appearanceSection: SettingsSection = {
|
111
99
|
id: 'appearanceSection',
|
@@ -115,13 +103,7 @@ export const appearanceSection: SettingsSection = {
|
|
115
103
|
export const experimentsSection: SettingsSection = {
|
116
104
|
id: 'experimentsSection',
|
117
105
|
title: i18n('section.experiments'),
|
118
|
-
settings: [
|
119
|
-
useNodesEndpointSetting,
|
120
|
-
useBackendParamsForTables,
|
121
|
-
enableQueryModesForExplainSetting,
|
122
|
-
queryUseMultiSchemaSetting,
|
123
|
-
enableNewTenantDiagnosticsDesign,
|
124
|
-
],
|
106
|
+
settings: [useNodesEndpointSetting, useBackendParamsForTables, queryUseMultiSchemaSetting],
|
125
107
|
};
|
126
108
|
|
127
109
|
export const generalPage: SettingsPage = {
|
@@ -8,7 +8,7 @@
|
|
8
8
|
margin-top: 10px;
|
9
9
|
margin-bottom: 10px;
|
10
10
|
|
11
|
-
border: 1px solid var(--
|
11
|
+
border: 1px solid var(--g-color-line-generic);
|
12
12
|
border-radius: 10px;
|
13
13
|
}
|
14
14
|
|
@@ -29,8 +29,7 @@
|
|
29
29
|
}
|
30
30
|
|
31
31
|
.ydb-tree-view {
|
32
|
-
|
33
|
-
line-height: var(--yc-text-body-2-line-height);
|
32
|
+
@include body-2-typography();
|
34
33
|
|
35
34
|
// Apply margin ignoring first element of the tree
|
36
35
|
.ydb-tree-view {
|
@@ -53,7 +53,7 @@ export const NodesTreeTitle = ({
|
|
53
53
|
{versionsValues ? (
|
54
54
|
<div className={b('version-progress')}>
|
55
55
|
<span className={b('info-label', {margin: 'right'})}>Versions</span>
|
56
|
-
<Progress
|
56
|
+
<Progress size="s" value={100} stack={versionsValues} />
|
57
57
|
</div>
|
58
58
|
) : null}
|
59
59
|
</div>
|
package/dist/index.tsx
CHANGED
package/dist/services/api.ts
CHANGED
@@ -10,12 +10,10 @@ import {
|
|
10
10
|
USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY,
|
11
11
|
PARTITIONS_HIDDEN_COLUMNS_KEY,
|
12
12
|
QUERY_INITIAL_MODE_KEY,
|
13
|
-
ENABLE_ADDITIONAL_QUERY_MODES,
|
14
13
|
CLUSTER_INFO_HIDDEN_KEY,
|
15
14
|
LAST_USED_QUERY_ACTION_KEY,
|
16
15
|
USE_BACKEND_PARAMS_FOR_TABLES_KEY,
|
17
16
|
LANGUAGE_KEY,
|
18
|
-
DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS,
|
19
17
|
QUERY_USE_MULTI_SCHEMA_KEY,
|
20
18
|
} from '../../../utils/constants';
|
21
19
|
import '../../../services/api';
|
@@ -58,15 +56,7 @@ export const initialState = {
|
|
58
56
|
USE_NODES_ENDPOINT_IN_DIAGNOSTICS_KEY,
|
59
57
|
'false',
|
60
58
|
),
|
61
|
-
[ENABLE_ADDITIONAL_QUERY_MODES]: readSavedSettingsValue(
|
62
|
-
ENABLE_ADDITIONAL_QUERY_MODES,
|
63
|
-
'true',
|
64
|
-
),
|
65
59
|
[QUERY_USE_MULTI_SCHEMA_KEY]: readSavedSettingsValue(QUERY_USE_MULTI_SCHEMA_KEY, 'false'),
|
66
|
-
[DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS]: readSavedSettingsValue(
|
67
|
-
DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS,
|
68
|
-
'true',
|
69
|
-
),
|
70
60
|
[SAVED_QUERIES_KEY]: readSavedSettingsValue(SAVED_QUERIES_KEY, '[]'),
|
71
61
|
[TENANT_INITIAL_PAGE_KEY]: readSavedSettingsValue(
|
72
62
|
TENANT_INITIAL_PAGE_KEY,
|