ydb-embedded-ui 4.25.0 → 4.27.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (112) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +39 -0
  3. package/dist/components/BasicNodeViewer/BasicNodeViewer.scss +3 -11
  4. package/dist/components/CircularProgressBar/CircularProgressBar.scss +4 -4
  5. package/dist/components/DateRange/DateRange.scss +3 -3
  6. package/dist/components/DiagnosticCard/DiagnosticCard.scss +4 -4
  7. package/dist/components/Divider/Divider.scss +1 -1
  8. package/dist/components/EmptyState/EmptyState.scss +8 -9
  9. package/dist/components/EntityStatus/EntityStatus.scss +19 -29
  10. package/dist/components/ExternalLinkWithIcon/ExternalLinkWithIcon.tsx +2 -2
  11. package/dist/components/FullNodeViewer/FullNodeViewer.scss +1 -4
  12. package/dist/components/Fullscreen/Fullscreen.scss +2 -9
  13. package/dist/components/Icon/Icon.tsx +1 -5
  14. package/dist/components/InfoViewer/InfoViewer.scss +6 -6
  15. package/dist/components/LabelWithPopover/LabelWithPopover.tsx +3 -2
  16. package/dist/components/NodeHostWrapper/NodeHostWrapper.tsx +2 -2
  17. package/dist/components/PoolBar/PoolBar.scss +6 -6
  18. package/dist/components/PoolUsage/PoolUsage.scss +15 -17
  19. package/dist/components/ProgressViewer/ProgressViewer.scss +17 -16
  20. package/dist/components/QueryExecutionStatus/QueryExecutionStatus.scss +3 -3
  21. package/dist/components/SpeedMultiMeter/SpeedMultiMeter.scss +5 -5
  22. package/dist/components/SpeedMultiMeter/SpeedMultiMeter.tsx +12 -13
  23. package/dist/components/SplitPane/SplitPane.scss +5 -5
  24. package/dist/components/TableSkeleton/TableSkeleton.scss +1 -1
  25. package/dist/components/Tablet/Tablet.scss +10 -10
  26. package/dist/components/TabletsStatistic/TabletsStatistic.scss +13 -13
  27. package/dist/components/Tag/Tag.scss +3 -3
  28. package/dist/components/TruncatedQuery/TruncatedQuery.scss +1 -1
  29. package/dist/components/UsageLabel/UsageLabel.scss +2 -2
  30. package/dist/components/UsageLabel/UsageLabel.tsx +1 -1
  31. package/dist/components/VirtualTable/VirtualTable.scss +3 -3
  32. package/dist/containers/App/App.scss +20 -24
  33. package/dist/containers/App/Content.js +5 -4
  34. package/dist/containers/AsideNavigation/AsideNavigation.scss +1 -4
  35. package/dist/containers/AsideNavigation/AsideNavigation.tsx +12 -27
  36. package/dist/containers/Authentication/Authentication.scss +4 -4
  37. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -6
  38. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +1 -1
  39. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss +3 -3
  40. package/dist/containers/Cluster/VersionsBar/VersionsBar.tsx +1 -1
  41. package/dist/containers/Header/Header.scss +1 -1
  42. package/dist/containers/Heatmap/Heatmap.scss +3 -5
  43. package/dist/containers/Heatmap/Histogram/Histogram.scss +6 -6
  44. package/dist/containers/Node/NodeStructure/NodeStructure.scss +10 -13
  45. package/dist/containers/Node/NodeStructure/Pdisk.tsx +1 -1
  46. package/dist/containers/ReduxTooltip/ReduxTooltip.js +1 -1
  47. package/dist/containers/ReduxTooltip/ReduxTooltip.scss +1 -18
  48. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +23 -23
  49. package/dist/containers/Storage/PDisk/PDisk.scss +4 -4
  50. package/dist/containers/Storage/PDiskPopup/PDiskPopup.tsx +1 -1
  51. package/dist/containers/Storage/Storage.scss +1 -1
  52. package/dist/containers/Storage/StorageGroups/StorageGroups.scss +1 -1
  53. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +7 -6
  54. package/dist/containers/Storage/VDiskPopup/VDiskPopup.scss +1 -1
  55. package/dist/containers/Storage/VDiskPopup/VDiskPopup.tsx +1 -1
  56. package/dist/containers/Tablet/Tablet.scss +5 -5
  57. package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -3
  58. package/dist/containers/Tenant/Acl/Acl.scss +1 -15
  59. package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +0 -4
  60. package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +5 -4
  61. package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -6
  62. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
  63. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +2 -2
  64. package/dist/containers/Tenant/Diagnostics/Network/Network.scss +8 -10
  65. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +8 -8
  66. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +1 -5
  67. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.tsx +1 -4
  68. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +0 -1
  69. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +12 -12
  70. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +1 -36
  71. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +3 -3
  72. package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +7 -7
  73. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -2
  74. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.scss +1 -1
  75. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +4 -8
  76. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +2 -1
  77. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +3 -6
  78. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +2 -5
  79. package/dist/containers/Tenant/Query/Issues/Issues.scss +11 -14
  80. package/dist/containers/Tenant/Query/Preview/Preview.scss +3 -7
  81. package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +1 -1
  82. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +4 -8
  83. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +3 -9
  84. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +0 -9
  85. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +11 -13
  86. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +5 -5
  87. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +3 -3
  88. package/dist/containers/Tenant/Tenant.scss +1 -2
  89. package/dist/containers/Tenant/utils/schemaControls.tsx +2 -2
  90. package/dist/containers/UserSettings/Setting.tsx +5 -1
  91. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -3
  92. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -1
  93. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +1 -1
  94. package/dist/index.tsx +1 -0
  95. package/dist/services/api.ts +4 -3
  96. package/dist/services/settings.ts +113 -0
  97. package/dist/store/reducers/executeQuery.ts +6 -3
  98. package/dist/store/reducers/settings/settings.ts +7 -74
  99. package/dist/store/reducers/settings/types.ts +4 -3
  100. package/dist/styles/mixins.scss +37 -35
  101. package/dist/styles/themes/dark-hc.scss +296 -0
  102. package/dist/styles/themes/dark.scss +297 -0
  103. package/dist/styles/themes/light-hc.scss +289 -0
  104. package/dist/styles/themes/light.scss +291 -0
  105. package/dist/styles/themes.scss +73 -0
  106. package/dist/types/window.d.ts +2 -2
  107. package/dist/utils/hooks/useSetting.ts +6 -7
  108. package/dist/utils/i18n/i18n.ts +2 -2
  109. package/package.json +7 -6
  110. package/dist/containers/App/TipPopup/TipPopup.js +0 -66
  111. package/dist/containers/App/TipPopup/TipPopup.scss +0 -46
  112. package/dist/utils/settings.ts +0 -13
@@ -9,8 +9,7 @@
9
9
  max-width: 1305px;
10
10
  height: 100%;
11
11
 
12
- font-size: var(--yc-text-body-2-font-size);
13
- line-height: var(--yc-text-body-2-line-height);
12
+ @include body-2-typography();
14
13
 
15
14
  &__nodes-row {
16
15
  display: flex;
@@ -36,7 +35,7 @@
36
35
  &__left {
37
36
  height: 100%;
38
37
 
39
- border-right: 1px solid var(--yc-color-base-generic-accent);
38
+ border-right: 1px solid var(--g-color-base-generic-accent);
40
39
  }
41
40
 
42
41
  &__placeholder {
@@ -74,25 +73,24 @@
74
73
  &__nodes-title {
75
74
  margin: 0 0 15px;
76
75
 
77
- font-size: var(--yc-text-body-2-font-size);
78
- line-height: var(--yc-text-body-2-line-height);
76
+ color: var(--g-color-text-secondary);
77
+ border-bottom: 1px solid var(--g-color-base-generic-accent);
79
78
 
80
- color: var(--yc-color-text-secondary);
81
- border-bottom: 1px solid var(--yc-color-base-generic-accent);
79
+ @include body-2-typography();
82
80
  }
83
81
 
84
82
  &__link {
85
83
  text-decoration: none;
86
84
 
87
- color: var(--yc-color-base-special);
85
+ color: var(--g-color-base-brand);
88
86
  }
89
87
 
90
88
  &__title {
91
89
  margin: 20px 0;
92
90
 
93
- font-size: var(--yc-text-body-1-font-size);
94
91
  font-weight: 500;
95
- line-height: var(--yc-text-body-1-line-height);
92
+
93
+ @include body-1-typography();
96
94
  }
97
95
 
98
96
  &__checkbox-wrapper {
@@ -14,7 +14,7 @@
14
14
  text-align: center;
15
15
  text-transform: uppercase;
16
16
 
17
- color: var(--yc-color-text-complementary);
17
+ color: var(--g-color-text-complementary);
18
18
  border: 1px solid transparent;
19
19
  border-radius: 4px;
20
20
 
@@ -28,27 +28,27 @@
28
28
  }
29
29
 
30
30
  &_gray {
31
- background: var(--yc-color-text-secondary);
31
+ background: var(--ydb-color-status-grey);
32
32
  }
33
33
 
34
34
  &_black {
35
- color: var(--yc-color-text-light-primary);
36
- background-color: var(--yc-color-text-primary);
35
+ color: var(--g-color-text-light-primary);
36
+ background-color: var(--ydb-color-status-black);
37
37
  }
38
38
 
39
39
  &_green {
40
- background-color: var(--yc-color-base-positive-heavy);
40
+ background-color: var(--ydb-color-status-green);
41
41
  }
42
42
 
43
43
  &_yellow {
44
- background-color: var(--yc-color-base-warning-heavy);
44
+ background-color: var(--ydb-color-status-yellow);
45
45
  }
46
46
 
47
47
  &_red {
48
- background-color: var(--yc-color-text-yandex-red);
48
+ background-color: var(--ydb-color-status-red);
49
49
  }
50
50
 
51
51
  &:hover {
52
- border: 1px solid var(--yc-color-text-primary);
52
+ border: 1px solid var(--g-color-text-primary);
53
53
  }
54
54
  }
@@ -17,7 +17,7 @@
17
17
  }
18
18
 
19
19
  &__select-option_empty {
20
- color: var(--yc-color-text-hint);
20
+ color: var(--g-color-text-hint);
21
21
  }
22
22
 
23
23
  &__search {
@@ -30,10 +30,6 @@
30
30
  }
31
31
  }
32
32
 
33
- &__table-settings .yc-icon {
34
- width: 20px;
35
- }
36
-
37
33
  &__table-wrapper {
38
34
  overflow: auto;
39
35
  @include flex-container();
@@ -70,10 +70,7 @@ export const Partitions = ({path}: PartitionsProps) => {
70
70
  error: nodesError,
71
71
  } = useTypedSelector((state) => state.nodesList);
72
72
 
73
- const [hiddenColumns, setHiddenColumns] = useSetting<string[]>(
74
- PARTITIONS_HIDDEN_COLUMNS_KEY,
75
- [],
76
- );
73
+ const [hiddenColumns, setHiddenColumns] = useSetting<string[]>(PARTITIONS_HIDDEN_COLUMNS_KEY);
77
74
 
78
75
  const [columns, columnsIdsForSelector] = useGetPartitionsColumns(selectedConsumer);
79
76
 
@@ -169,7 +169,6 @@ export const PartitionsControls = ({
169
169
  items={columnsToSelect}
170
170
  showStatus
171
171
  onUpdate={hadleTableColumnsSetupChange}
172
- className={b('table-settings')}
173
172
  />
174
173
  </div>
175
174
  );
@@ -74,35 +74,35 @@
74
74
 
75
75
  &_good,
76
76
  &_green {
77
- color: var(--yc-color-text-positive);
78
- background-color: var(--yc-color-base-positive);
77
+ color: var(--g-color-text-positive);
78
+ background-color: var(--g-color-base-positive-light);
79
79
  }
80
80
  &_degraded,
81
81
  &_yellow {
82
- color: var(--yc-color-text-warning);
83
- background-color: var(--yc-color-base-warning);
82
+ color: var(--g-color-text-warning);
83
+ background-color: var(--g-color-base-warning-light);
84
84
  }
85
85
 
86
86
  &_blue {
87
- color: var(--yc-color-text-info);
88
- background-color: var(--yc-color-base-info);
87
+ color: var(--g-color-text-info);
88
+ background-color: var(--g-color-base-info-light);
89
89
  }
90
90
 
91
91
  &_emergency,
92
92
  &_red {
93
- color: var(--yc-color-text-danger);
94
- background-color: var(--yc-color-base-danger);
93
+ color: var(--g-color-text-danger);
94
+ background-color: var(--g-color-base-danger-light);
95
95
  }
96
96
  &_unspecified,
97
97
  &_gray,
98
98
  &_grey {
99
- color: var(--yc-color-text-misc);
100
- background-color: var(--yc-color-base-misc);
99
+ color: var(--g-color-text-misc);
100
+ background-color: var(--g-color-base-misc-light);
101
101
  }
102
102
  &_maintenance_required,
103
103
  &_orange {
104
- color: var(--yc-color-text-warning-heavy);
105
- background-color: var(--yc-color-infographics-warning-light);
104
+ color: var(--g-color-text-warning-heavy);
105
+ background-color: var(--g-color-base-warning-light);
106
106
  }
107
107
  }
108
108
  }
@@ -1,40 +1,5 @@
1
1
  @import '../../../../../../styles/mixins.scss';
2
2
 
3
- .indicator {
4
- width: 12px;
5
- height: 12px;
6
- margin-right: 4px;
7
-
8
- border-radius: 4px;
9
-
10
- &_good,
11
- &_green {
12
- background-color: var(--yc-color-base-positive-heavy);
13
- }
14
- &_degraded,
15
- &_yellow {
16
- background-color: var(--yc-color-base-warning-heavy);
17
- }
18
-
19
- &_blue {
20
- background-color: var(--yc-color-base-info-heavy);
21
- }
22
-
23
- &_emergency,
24
- &_red {
25
- background: var(--yc-color-base-danger-heavy);
26
- }
27
- &_unspecified,
28
- &_gray,
29
- &_grey {
30
- background: var(--yc-color-text-complementary);
31
- }
32
- &_maintenance_required,
33
- &_orange {
34
- background: var(--yc-color-text-warning-heavy);
35
- }
36
- }
37
-
38
3
  .issue-tree {
39
4
  display: flex;
40
5
 
@@ -54,7 +19,7 @@
54
19
  padding: 8px 20px;
55
20
 
56
21
  border-radius: 4px;
57
- background: var(--yc-color-base-generic);
22
+ background: var(--g-color-base-generic);
58
23
  }
59
24
 
60
25
  &__inspector {
@@ -21,10 +21,10 @@
21
21
 
22
22
  cursor: pointer;
23
23
 
24
- color: var(--yc-color-text-link);
24
+ color: var(--g-color-text-link);
25
25
 
26
26
  &:hover {
27
- color: var(--yc-color-text-link-hover);
27
+ color: var(--g-color-text-link-hover);
28
28
  }
29
29
  }
30
30
  &_message {
@@ -45,6 +45,6 @@
45
45
  }
46
46
 
47
47
  &__field-label {
48
- color: var(--yc-color-text-secondary);
48
+ color: var(--g-color-text-secondary);
49
49
  }
50
50
  }
@@ -20,11 +20,11 @@
20
20
  flex-direction: column;
21
21
  align-items: center;
22
22
 
23
- font-size: var(--yc-text-header-1-font-size);
24
- line-height: var(--yc-text-header-1-line-height);
25
23
  text-align: center;
26
24
 
27
- color: var(--yc-color-text-secondary);
25
+ color: var(--g-color-text-secondary);
26
+
27
+ @include header-1-typography();
28
28
  }
29
29
 
30
30
  &__progress {
@@ -35,18 +35,18 @@
35
35
  }
36
36
 
37
37
  &__resources {
38
- font-size: var(--yc-text-body-1-font-size);
38
+ font-size: var(--g-text-body-1-font-size);
39
39
 
40
- color: var(--yc-color-text-secondary);
40
+ color: var(--g-color-text-secondary);
41
41
  }
42
42
 
43
43
  &_active {
44
44
  #{$b}__content {
45
- color: var(--yc-color-text-complementary);
45
+ color: var(--g-color-text-complementary);
46
46
  }
47
47
 
48
48
  #{$b}__progress-bar-circle-bg {
49
- stroke: var(--yc-color-base-float);
49
+ stroke: var(--g-color-base-float);
50
50
  }
51
51
  }
52
52
  }
@@ -43,9 +43,9 @@
43
43
  &__title {
44
44
  margin-bottom: 10px;
45
45
 
46
- font-size: var(--yc-text-body-2-font-size);
47
46
  font-weight: 700;
48
- line-height: var(--yc-text-body-2-line-height);
47
+
48
+ @include body-2-typography();
49
49
  }
50
50
 
51
51
  &__table {
@@ -5,7 +5,7 @@
5
5
 
6
6
  height: 100%;
7
7
 
8
- background-color: var(--yc-color-base-background);
8
+ background-color: var(--g-color-base-background);
9
9
 
10
10
  &__loader {
11
11
  display: flex;
@@ -29,7 +29,7 @@
29
29
  top: 19px; // centered relative to the heading
30
30
  right: 5px; // centered relative to the collapsed panel
31
31
 
32
- background-color: var(--yc-color-base-background);
32
+ background-color: var(--g-color-base-background);
33
33
  &_hidden {
34
34
  visibility: hidden;
35
35
  }
@@ -86,14 +86,10 @@
86
86
  &__info-controls {
87
87
  display: flex;
88
88
  gap: 4px;
89
-
90
- .yc-button__text {
91
- margin: 0 6px;
92
- }
93
89
  }
94
90
 
95
91
  &__info-action-button {
96
- background-color: var(--yc-color-base-background);
92
+ background-color: var(--g-color-base-background);
97
93
  &_hidden {
98
94
  display: none;
99
95
  }
@@ -116,7 +112,7 @@
116
112
 
117
113
  padding: 12px 12px 10px;
118
114
 
119
- border-bottom: 1px solid var(--yc-color-line-generic);
115
+ border-bottom: 1px solid var(--g-color-line-generic);
120
116
  }
121
117
 
122
118
  &__info-title {
@@ -144,7 +140,7 @@
144
140
  text-transform: lowercase;
145
141
 
146
142
  border-radius: 3px;
147
- background-color: var(--yc-color-base-generic);
143
+ background-color: var(--g-color-base-generic);
148
144
 
149
145
  &_error {
150
146
  padding: 3px 0;
@@ -5,7 +5,8 @@ import {Link} from 'react-router-dom';
5
5
  import qs from 'qs';
6
6
  import cn from 'bem-cn-lite';
7
7
 
8
- import {Button, HelpPopover, Tabs} from '@gravity-ui/uikit';
8
+ import {Button, Tabs} from '@gravity-ui/uikit';
9
+ import {HelpPopover} from '@gravity-ui/components';
9
10
 
10
11
  import SplitPane from '../../../components/SplitPane';
11
12
  import CopyToClipboard from '../../../components/CopyToClipboard/CopyToClipboard';
@@ -44,8 +44,8 @@
44
44
  height: 53px;
45
45
  padding: 12px 20px;
46
46
 
47
- border-bottom: 1px solid var(--yc-color-line-generic);
48
- background-color: var(--yc-color-base-background);
47
+ border-bottom: 1px solid var(--g-color-line-generic);
48
+ background-color: var(--g-color-base-background);
49
49
  }
50
50
 
51
51
  &__controls-right {
@@ -57,9 +57,6 @@
57
57
  &__controls-left {
58
58
  display: flex;
59
59
  gap: 4px;
60
- .yc-button__text {
61
- margin: 0 6px;
62
- }
63
60
  }
64
61
  &__inspector {
65
62
  max-width: calc(100% - 50px);
@@ -81,7 +78,7 @@
81
78
  height: 100%;
82
79
  margin: 20px;
83
80
 
84
- background-color: var(--yc-color-base-background);
81
+ background-color: var(--g-color-base-background);
85
82
  @include table-styles();
86
83
  table {
87
84
  width: 100% !important;
@@ -22,8 +22,8 @@
22
22
  height: 53px;
23
23
  padding: 12px 20px;
24
24
 
25
- border-bottom: 1px solid var(--yc-color-line-generic);
26
- background-color: var(--yc-color-base-background);
25
+ border-bottom: 1px solid var(--g-color-line-generic);
26
+ background-color: var(--g-color-base-background);
27
27
  }
28
28
  &__controls-right {
29
29
  display: flex;
@@ -34,9 +34,6 @@
34
34
  &__controls-left {
35
35
  display: flex;
36
36
  gap: 4px;
37
- .yc-button__text {
38
- margin: 0 6px;
39
- }
40
37
  }
41
38
  &__explain-canvas-container {
42
39
  overflow-y: auto;
@@ -12,7 +12,7 @@
12
12
 
13
13
  padding: 10px 0;
14
14
 
15
- background-color: var(--yc-color-base-background);
15
+ background-color: var(--g-color-base-background);
16
16
  }
17
17
 
18
18
  &__error-message-text {
@@ -48,7 +48,7 @@
48
48
 
49
49
  text-align: left;
50
50
 
51
- color: var(--yc-color-text-secondary);
51
+ color: var(--g-color-text-secondary);
52
52
  }
53
53
 
54
54
  &__message {
@@ -57,9 +57,9 @@
57
57
  margin-right: auto;
58
58
  margin-left: 10px;
59
59
 
60
- font-family: var(--yc-font-family-monospace);
61
- font-size: var(--yc-text-code-2-font-size);
62
- line-height: var(--yc-text-header-2-line-height);
60
+ font-family: var(--g-font-family-monospace);
61
+ font-size: var(--g-text-code-2-font-size);
62
+ line-height: var(--g-text-header-2-line-height);
63
63
  }
64
64
 
65
65
  &__message-text {
@@ -79,14 +79,11 @@
79
79
 
80
80
  font-size: 12px;
81
81
 
82
- color: var(--yc-color-text-complementary);
82
+ color: var(--g-color-text-complementary);
83
83
  }
84
84
 
85
85
  &__arrow-toggle {
86
86
  margin-right: 5px;
87
- .yc-button__text {
88
- margin: 0 5px;
89
- }
90
87
  }
91
88
  }
92
89
 
@@ -98,19 +95,19 @@
98
95
  white-space: nowrap;
99
96
 
100
97
  &_severity_fatal &__icon {
101
- color: var(--yc-color-text-danger);
98
+ color: var(--g-color-text-danger);
102
99
  }
103
100
 
104
101
  &_severity_error &__icon {
105
- color: var(--yc-color-text-danger);
102
+ color: var(--g-color-text-danger);
106
103
  }
107
104
 
108
105
  &_severity_warning &__icon {
109
- color: var(--yc-color-text-warning);
106
+ color: var(--g-color-text-warning);
110
107
  }
111
108
 
112
109
  &_severity_info &__icon {
113
- color: var(--yc-color-text-info);
110
+ color: var(--g-color-text-info);
114
111
  }
115
112
 
116
113
  &__title {
@@ -118,6 +115,6 @@
118
115
 
119
116
  text-transform: capitalize;
120
117
 
121
- color: var(--yc-color-text-complementary);
118
+ color: var(--g-color-text-complementary);
122
119
  }
123
120
  }
@@ -4,10 +4,6 @@
4
4
  height: 100%;
5
5
  @include query-data-table;
6
6
 
7
- .yc-button__text {
8
- margin: 0 6px;
9
- }
10
-
11
7
  &__header {
12
8
  position: sticky;
13
9
  top: 0;
@@ -19,8 +15,8 @@
19
15
  height: 53px;
20
16
  padding: 0 20px;
21
17
 
22
- border-bottom: 1px solid var(--yc-color-line-generic);
23
- background-color: var(--yc-color-base-background);
18
+ border-bottom: 1px solid var(--g-color-line-generic);
19
+ background-color: var(--g-color-base-background);
24
20
  }
25
21
 
26
22
  &__title {
@@ -30,7 +26,7 @@
30
26
  &__table-name {
31
27
  margin-left: 4px;
32
28
 
33
- color: var(--yc-color-text-complementary);
29
+ color: var(--g-color-text-complementary);
34
30
  }
35
31
 
36
32
  &__controls-left {
@@ -4,7 +4,7 @@
4
4
 
5
5
  margin-left: 10px;
6
6
 
7
- color: var(--yc-color-text-complementary);
7
+ color: var(--g-color-text-complementary);
8
8
 
9
9
  &__item-with-popover {
10
10
  white-space: nowrap;
@@ -17,7 +17,6 @@ import {
17
17
  setTenantPath,
18
18
  } from '../../../../store/reducers/executeQuery';
19
19
  import {getExplainQuery, getExplainQueryAst} from '../../../../store/reducers/explainQuery';
20
- import {getParsedSettingValue, setSettingValue} from '../../../../store/reducers/settings/settings';
21
20
  import {setShowPreview} from '../../../../store/reducers/schema/schema';
22
21
  import {
23
22
  DEFAULT_IS_QUERY_RESULT_COLLAPSED,
@@ -86,6 +85,7 @@ function QueryEditor(props) {
86
85
  const [queryMode, setQueryMode] = useQueryModes();
87
86
  const [useMultiSchema] = useSetting(QUERY_USE_MULTI_SCHEMA_KEY);
88
87
  const [lastUsedQueryAction, setLastUsedQueryAction] = useSetting(LAST_USED_QUERY_ACTION_KEY);
88
+ const [savedQueries, setSavedQueries] = useSetting(SAVED_QUERIES_KEY);
89
89
 
90
90
  useEffect(() => {
91
91
  if (savedPath !== path) {
@@ -417,7 +417,7 @@ function QueryEditor(props) {
417
417
 
418
418
  const storageEventHandler = (event) => {
419
419
  if (event.key === SAVED_QUERIES_KEY) {
420
- props.setSettingValue(SAVED_QUERIES_KEY, event.newValue);
420
+ setSavedQueries(event.newValue);
421
421
  }
422
422
  };
423
423
 
@@ -430,8 +430,6 @@ function QueryEditor(props) {
430
430
  const onSaveQueryHandler = (queryName) => {
431
431
  const {
432
432
  executeQuery: {input},
433
- savedQueries = [],
434
- setSettingValue,
435
433
  } = props;
436
434
 
437
435
  const queryIndex = savedQueries.findIndex(
@@ -445,11 +443,11 @@ function QueryEditor(props) {
445
443
  newSavedQueries.push(newQuery);
446
444
  }
447
445
 
448
- setSettingValue(SAVED_QUERIES_KEY, JSON.stringify(newSavedQueries));
446
+ setSavedQueries(newSavedQueries);
449
447
  };
450
448
 
451
449
  const renderControls = () => {
452
- const {executeQuery, explainQuery, savedQueries} = props;
450
+ const {executeQuery, explainQuery} = props;
453
451
 
454
452
  return (
455
453
  <QueryEditorControls
@@ -511,7 +509,6 @@ const mapStateToProps = (state) => {
511
509
  return {
512
510
  executeQuery: state.executeQuery,
513
511
  explainQuery: state.explainQuery,
514
- savedQueries: getParsedSettingValue(state, SAVED_QUERIES_KEY),
515
512
  showPreview: state.schema.showPreview,
516
513
  currentSchema: state.schema.currentSchema,
517
514
  monacoHotKey: state.executeQuery?.monacoHotKey,
@@ -525,7 +522,6 @@ const mapDispatchToProps = {
525
522
  goToNextQuery,
526
523
  getExplainQuery,
527
524
  getExplainQueryAst,
528
- setSettingValue,
529
525
  setShowPreview,
530
526
  setMonacoHotKey,
531
527
  setTenantPath,
@@ -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(--yc-color-line-generic);
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(--yc-color-base-background);
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(--yc-color-line-generic);
42
+ border-bottom: 1px solid var(--g-color-line-generic);
49
43
  }
50
44
  }
51
45
  }
@@ -14,15 +14,6 @@
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