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.
Files changed (124) hide show
  1. package/CHANGELOG.md +15 -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/AsideNavigation/AsideNavigation.scss +1 -4
  34. package/dist/containers/Authentication/Authentication.scss +4 -4
  35. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.scss +4 -6
  36. package/dist/containers/Cluster/ClusterInfo/ClusterInfo.tsx +1 -1
  37. package/dist/containers/Cluster/ClusterInfoSkeleton/ClusterInfoSkeleton.scss +3 -3
  38. package/dist/containers/Cluster/VersionsBar/VersionsBar.tsx +1 -1
  39. package/dist/containers/Header/Header.scss +1 -1
  40. package/dist/containers/Heatmap/Heatmap.scss +3 -5
  41. package/dist/containers/Heatmap/Histogram/Histogram.scss +6 -6
  42. package/dist/containers/Node/NodeStructure/NodeStructure.scss +10 -13
  43. package/dist/containers/Node/NodeStructure/Pdisk.tsx +1 -1
  44. package/dist/containers/ReduxTooltip/ReduxTooltip.js +1 -1
  45. package/dist/containers/ReduxTooltip/ReduxTooltip.scss +1 -18
  46. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.scss +23 -23
  47. package/dist/containers/Storage/PDisk/PDisk.scss +4 -4
  48. package/dist/containers/Storage/PDiskPopup/PDiskPopup.tsx +1 -1
  49. package/dist/containers/Storage/Storage.scss +1 -1
  50. package/dist/containers/Storage/StorageGroups/StorageGroups.scss +1 -1
  51. package/dist/containers/Storage/UsageFilter/UsageFilter.scss +7 -6
  52. package/dist/containers/Storage/VDiskPopup/VDiskPopup.scss +1 -1
  53. package/dist/containers/Storage/VDiskPopup/VDiskPopup.tsx +1 -1
  54. package/dist/containers/Tablet/Tablet.scss +5 -5
  55. package/dist/containers/TabletsFilters/TabletsFilters.scss +2 -3
  56. package/dist/containers/Tenant/Acl/Acl.scss +1 -15
  57. package/dist/containers/Tenant/Diagnostics/Consumers/Consumers.scss +0 -4
  58. package/dist/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +5 -4
  59. package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +0 -6
  60. package/dist/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.tsx +11 -79
  61. package/dist/containers/Tenant/Diagnostics/Diagnostics.scss +2 -2
  62. package/dist/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +2 -2
  63. package/dist/containers/Tenant/Diagnostics/Network/Network.scss +8 -10
  64. package/dist/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +8 -8
  65. package/dist/containers/Tenant/Diagnostics/Partitions/Partitions.scss +1 -5
  66. package/dist/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +0 -1
  67. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/Healthcheck.scss +12 -12
  68. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTree.scss +1 -36
  69. package/dist/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/IssuesViewer/IssueTreeItem/IssueTreeItem.scss +3 -3
  70. package/dist/containers/Tenant/Diagnostics/TenantOverview/MetricsCards/MetricCard/MetricCard.scss +7 -7
  71. package/dist/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +2 -53
  72. package/dist/containers/Tenant/Diagnostics/TopShards/TopShards.scss +1 -1
  73. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.scss +4 -8
  74. package/dist/containers/Tenant/ObjectSummary/ObjectSummary.tsx +2 -1
  75. package/dist/containers/Tenant/Query/ExecuteResult/ExecuteResult.scss +3 -6
  76. package/dist/containers/Tenant/Query/ExplainResult/ExplainResult.scss +2 -5
  77. package/dist/containers/Tenant/Query/Issues/Issues.scss +11 -14
  78. package/dist/containers/Tenant/Query/Preview/Preview.scss +3 -7
  79. package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.tsx +5 -12
  80. package/dist/containers/Tenant/Query/QueryDuration/QueryDuration.scss +1 -1
  81. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.js +1 -10
  82. package/dist/containers/Tenant/Query/QueryEditor/QueryEditor.scss +3 -9
  83. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +3 -25
  84. package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +15 -40
  85. package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.scss +5 -5
  86. package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +3 -3
  87. package/dist/containers/Tenant/Query/i18n/en.json +0 -2
  88. package/dist/containers/Tenant/Query/i18n/ru.json +0 -2
  89. package/dist/containers/Tenant/Tenant.scss +1 -2
  90. package/dist/containers/Tenant/utils/schemaActions.ts +11 -18
  91. package/dist/containers/Tenant/utils/schemaControls.tsx +2 -2
  92. package/dist/containers/UserSettings/Setting.tsx +5 -1
  93. package/dist/containers/UserSettings/i18n/en.json +1 -7
  94. package/dist/containers/UserSettings/i18n/ru.json +1 -7
  95. package/dist/containers/UserSettings/settings.ts +1 -19
  96. package/dist/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +2 -3
  97. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +1 -1
  98. package/dist/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +1 -1
  99. package/dist/index.tsx +1 -0
  100. package/dist/services/api.ts +1 -0
  101. package/dist/store/reducers/settings/settings.ts +0 -10
  102. package/dist/styles/mixins.scss +37 -35
  103. package/dist/styles/themes/dark-hc.scss +296 -0
  104. package/dist/styles/themes/dark.scss +297 -0
  105. package/dist/styles/themes/light-hc.scss +289 -0
  106. package/dist/styles/themes/light.scss +291 -0
  107. package/dist/styles/themes.scss +73 -0
  108. package/dist/utils/constants.ts +0 -11
  109. package/dist/utils/hooks/useQueryModes.ts +3 -32
  110. package/dist/utils/query.ts +0 -4
  111. package/package.json +7 -6
  112. package/dist/containers/App/TipPopup/TipPopup.js +0 -66
  113. package/dist/containers/App/TipPopup/TipPopup.scss +0 -46
  114. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Details/Details.tsx +0 -64
  115. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Details/index.ts +0 -1
  116. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Healthcheck.scss +0 -137
  117. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Healthcheck.tsx +0 -92
  118. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Preview/Preview.tsx +0 -82
  119. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/Preview/index.ts +0 -1
  120. package/dist/containers/Tenant/Diagnostics/OldHealthcheck/index.ts +0 -1
  121. package/dist/containers/Tenant/Diagnostics/TenantOverview/OldTenantOverview.tsx +0 -155
  122. package/dist/utils/hooks/i18n/en.json +0 -3
  123. package/dist/utils/hooks/i18n/index.ts +0 -11
  124. package/dist/utils/hooks/i18n/ru.json +0 -3
@@ -13,22 +13,22 @@
13
13
  margin-top: 30px;
14
14
  margin-left: 50px;
15
15
 
16
- border-bottom: 1px solid var(--yc-color-base-generic);
17
- border-left: 1px solid var(--yc-color-base-generic);
16
+ border-bottom: 1px solid var(--g-color-base-generic);
17
+ border-left: 1px solid var(--g-color-base-generic);
18
18
  }
19
19
  &__x-min {
20
20
  position: absolute;
21
21
  bottom: -25px;
22
22
  left: -3px;
23
23
 
24
- color: var(--yc-color-text-secondary);
24
+ color: var(--g-color-text-secondary);
25
25
  }
26
26
  &__x-max {
27
27
  position: absolute;
28
28
  right: 0;
29
29
  bottom: -25px;
30
30
 
31
- color: var(--yc-color-text-secondary);
31
+ color: var(--g-color-text-secondary);
32
32
  }
33
33
  &__y-min {
34
34
  position: absolute;
@@ -39,7 +39,7 @@
39
39
 
40
40
  text-align: right;
41
41
 
42
- color: var(--yc-color-text-secondary);
42
+ color: var(--g-color-text-secondary);
43
43
  }
44
44
  &__y-max {
45
45
  position: absolute;
@@ -50,7 +50,7 @@
50
50
 
51
51
  text-align: right;
52
52
 
53
- color: var(--yc-color-text-secondary);
53
+ color: var(--g-color-text-secondary);
54
54
  }
55
55
  &__item {
56
56
  width: 1.5%;
@@ -8,7 +8,7 @@
8
8
  flex-direction: column;
9
9
  flex-shrink: 0;
10
10
  @include flex-container();
11
- @include body2-typography();
11
+ @include body-2-typography();
12
12
 
13
13
  &__pdisk {
14
14
  display: flex;
@@ -18,7 +18,7 @@
18
18
  margin-bottom: 8px;
19
19
  padding: 0 10px 0 20px;
20
20
 
21
- border: 1px solid var(--yc-color-line-generic);
21
+ border: 1px solid var(--g-color-line-generic);
22
22
  border-radius: 5px;
23
23
  }
24
24
 
@@ -54,7 +54,7 @@
54
54
  &-label {
55
55
  font-weight: 400;
56
56
 
57
- color: var(--yc-color-text-secondary);
57
+ color: var(--g-color-text-secondary);
58
58
  }
59
59
  }
60
60
 
@@ -79,7 +79,7 @@
79
79
  &__link {
80
80
  text-decoration: none;
81
81
 
82
- color: var(--yc-color-base-special);
82
+ color: var(--g-color-base-brand);
83
83
  }
84
84
 
85
85
  &__vdisks-header {
@@ -94,6 +94,7 @@
94
94
  overflow: auto;
95
95
 
96
96
  min-width: 200px;
97
+ max-width: unset;
97
98
  max-height: 90vh;
98
99
 
99
100
  .vdisk-pdisk-node__column {
@@ -109,13 +110,13 @@
109
110
  align-items: center;
110
111
 
111
112
  &_selected {
112
- color: var(--yc-color-text-info);
113
+ color: var(--g-color-text-info);
113
114
  }
114
115
  }
115
116
 
116
117
  &__vdisk-details-button {
117
118
  &_selected {
118
- color: var(--yc-color-text-info);
119
+ color: var(--g-color-text-info);
119
120
  }
120
121
  }
121
122
 
@@ -127,10 +128,6 @@
127
128
 
128
129
  transform: translateY(-1px);
129
130
 
130
- .yc-button__text {
131
- margin: 0 4px;
132
- }
133
-
134
131
  &_hidden {
135
132
  visibility: hidden;
136
133
  }
@@ -160,15 +157,15 @@
160
157
  &__title {
161
158
  margin-right: 16px;
162
159
 
163
- font-size: var(--yc-text-body-2-font-size);
164
160
  font-weight: 500;
165
- line-height: var(--yc-text-body-2-line-height);
166
161
  text-transform: uppercase;
162
+
163
+ @include body-2-typography();
167
164
  }
168
165
  }
169
166
 
170
167
  @keyframes onSelectedVdiskAnimation {
171
168
  0% {
172
- background-color: var(--yc-color-base-info-hover);
169
+ background-color: var(--g-color-base-info-light-hover);
173
170
  }
174
171
  }
@@ -143,7 +143,7 @@ function getColumns({
143
143
  <Popover
144
144
  placement={['right']}
145
145
  content={<Vdisk {...row} />}
146
- contentClassName={b('vdisk-details')}
146
+ tooltipContentClassName={b('vdisk-details')}
147
147
  >
148
148
  <Button
149
149
  view="flat-secondary"
@@ -43,7 +43,7 @@ function ReduxTooltip(props) {
43
43
  <Popup
44
44
  open={visible}
45
45
  placement={['top', 'bottom', 'left', 'right']}
46
- className={popupClassName}
46
+ contentClassName={popupClassName}
47
47
  anchorRef={fakeAnchor}
48
48
  onOutsideClick={hideTooltip}
49
49
  >
@@ -6,8 +6,6 @@
6
6
  animation: none !important;
7
7
  }
8
8
 
9
- .pool-tooltip,
10
- .tablet-tooltip,
11
9
  .node-tootltip,
12
10
  .tabletsOverall-tooltip,
13
11
  .histogram-tooltip {
@@ -16,7 +14,7 @@
16
14
  &__label {
17
15
  padding-right: 15px;
18
16
 
19
- color: var(--yc-color-text-secondary);
17
+ color: var(--g-color-text-secondary);
20
18
  }
21
19
  }
22
20
 
@@ -54,18 +52,3 @@
54
52
 
55
53
  word-break: break-word;
56
54
  }
57
-
58
- .tablet-tooltip {
59
- padding: 10px;
60
- &__label {
61
- padding-right: 15px;
62
-
63
- color: var(--yc-color-text-secondary);
64
- }
65
-
66
- &__value {
67
- &_blue {
68
- color: var(--yc-color-base-special);
69
- }
70
- }
71
- }
@@ -10,14 +10,14 @@
10
10
  display: block;
11
11
 
12
12
  min-width: 50px;
13
- height: var(--yc-text-body-3-line-height);
13
+ height: var(--g-text-body-3-line-height);
14
14
 
15
15
  text-align: center;
16
16
 
17
- color: var(--yc-color-text-primary);
18
- border: $border-width solid var(--yc-color-infographics-misc-heavy);
17
+ color: var(--g-color-text-primary);
18
+ border: $border-width solid var(--g-color-base-misc-heavy);
19
19
  border-radius: $outer-border-radius;
20
- background-color: var(--yc-color-infographics-misc-light);
20
+ background-color: var(--g-color-base-misc-light);
21
21
 
22
22
  &_compact {
23
23
  min-width: 0;
@@ -31,16 +31,16 @@
31
31
  }
32
32
 
33
33
  #{$block}__filled {
34
- background-color: var(--yc-color-infographics-misc-medium);
34
+ background-color: var(--g-color-base-misc-medium);
35
35
  }
36
36
 
37
37
  &_green {
38
- border-color: var(--yc-color-infographics-positive-heavy);
39
- background-color: var(--yc-color-infographics-positive-light);
38
+ border-color: var(--g-color-base-positive-heavy);
39
+ background-color: var(--g-color-base-positive-light);
40
40
  #{$block}__filled {
41
- background-color: var(--yc-color-infographics-positive-medium);
41
+ background-color: var(--g-color-base-positive-medium);
42
42
 
43
- .yc-root_theme_dark & {
43
+ .g-root_theme_dark & {
44
44
  // the common medium green is too bright for this case
45
45
  background-color: rgb(124, 227, 121, 0.4);
46
46
  }
@@ -48,33 +48,33 @@
48
48
  }
49
49
 
50
50
  &_blue {
51
- border-color: var(--yc-color-infographics-info-heavy);
52
- background-color: var(--yc-color-infographics-info-light);
51
+ border-color: var(--g-color-base-info-heavy);
52
+ background-color: var(--g-color-base-info-light);
53
53
  #{$block}__filled {
54
- background-color: var(--yc-color-infographics-info-medium);
54
+ background-color: var(--g-color-base-info-medium);
55
55
  }
56
56
  }
57
57
 
58
58
  &_yellow {
59
- border-color: var(--yc-color-infographics-warning-heavy);
60
- background-color: var(--yc-color-infographics-yellow-light);
59
+ border-color: var(--g-color-base-warning-heavy);
60
+ background-color: var(--g-color-base-yellow-light);
61
61
  #{$block}__filled {
62
- background-color: var(--yc-color-infographics-yellow-medium);
62
+ background-color: var(--g-color-base-yellow-medium);
63
63
  }
64
64
  }
65
65
 
66
66
  &_orange {
67
- border-color: var(--yc-color-base-warning-orange);
68
- background-color: var(--yc-color-infographics-warning-light);
67
+ border-color: var(--ydb-color-status-orange);
68
+ background-color: var(--g-color-base-warning-light);
69
69
  #{$block}__filled {
70
- background-color: var(--yc-color-infographics-warning-medium);
70
+ background-color: var(--g-color-base-warning-medium);
71
71
  }
72
72
  }
73
73
  &_red {
74
- border-color: var(--yc-color-infographics-danger-heavy);
75
- background-color: var(--yc-color-infographics-danger-light);
74
+ border-color: var(--g-color-base-danger-heavy);
75
+ background-color: var(--g-color-base-danger-light);
76
76
  #{$block}__filled {
77
- background-color: var(--yc-color-infographics-danger-medium);
77
+ background-color: var(--g-color-base-danger-medium);
78
78
  }
79
79
  }
80
80
 
@@ -98,9 +98,9 @@
98
98
  position: relative;
99
99
  z-index: 2;
100
100
 
101
- font-size: var(--yc-text-body-1-font-size);
101
+ font-size: var(--g-text-body-1-font-size);
102
102
  // bar height minus borders
103
- line-height: calc(var(--yc-text-body-3-line-height) - #{$border-width * 2});
103
+ line-height: calc(var(--g-text-body-3-line-height) - #{$border-width * 2});
104
104
 
105
105
  color: inherit;
106
106
  }
@@ -25,7 +25,7 @@
25
25
  flex-shrink: 0;
26
26
 
27
27
  .stack__layer {
28
- background: var(--yc-color-base-background);
28
+ background: var(--g-color-base-background);
29
29
 
30
30
  .data-table__row:hover & {
31
31
  background: var(--ydb-data-table-color-hover);
@@ -45,9 +45,9 @@
45
45
  top: 0;
46
46
  right: 4px;
47
47
 
48
- font-size: var(--yc-text-body-1-font-size);
49
- line-height: var(--yc-text-body-3-line-height);
48
+ font-size: var(--g-text-body-1-font-size);
49
+ line-height: var(--g-text-body-3-line-height);
50
50
 
51
- color: var(--yc-color-text-secondary);
51
+ color: var(--g-color-text-secondary);
52
52
  }
53
53
  }
@@ -66,7 +66,7 @@ export const PDiskPopup = ({data, nodes, ...props}: PDiskPopupProps) => {
66
66
 
67
67
  return (
68
68
  <Popup
69
- className={b()}
69
+ contentClassName={b()}
70
70
  placement={['top', 'bottom']}
71
71
  // bigger offset for easier switching to neighbour nodes
72
72
  // matches the default offset for popup with arrow out of a sense of beauty
@@ -8,7 +8,7 @@
8
8
  &__table {
9
9
  .yc-tooltip {
10
10
  // stylelint-disable-next-line declaration-no-important
11
- height: var(--yc-text-body-2-line-height) !important;
11
+ height: var(--g-text-body-2-line-height) !important;
12
12
  }
13
13
 
14
14
  table {
@@ -20,7 +20,7 @@
20
20
  }
21
21
 
22
22
  .stack__layer {
23
- background: var(--yc-color-base-background);
23
+ background: var(--g-color-base-background);
24
24
 
25
25
  .data-table__row:hover & {
26
26
  background: var(--ydb-data-table-color-hover);
@@ -1,3 +1,5 @@
1
+ @import '../../../styles/mixins.scss';
2
+
1
3
  .usage-filter {
2
4
  min-width: 100px;
3
5
 
@@ -5,10 +7,9 @@
5
7
  flex-grow: 1;
6
8
 
7
9
  &-title {
8
- height: var(--yc-text-body-1-line-height);
10
+ height: var(--g-text-body-1-line-height);
9
11
 
10
- font-size: var(--yc-text-body-1-font-size);
11
- line-height: var(--yc-text-body-1-line-height);
12
+ @include body-1-typography();
12
13
  }
13
14
 
14
15
  &-meta {
@@ -17,8 +18,8 @@
17
18
 
18
19
  padding: 0 5px;
19
20
 
20
- font-size: var(--yc-text-caption-2-font-size);
21
- line-height: var(--yc-text-caption-2-line-height);
21
+ font-size: var(--g-text-caption-2-font-size);
22
+ line-height: var(--g-text-caption-2-line-height);
22
23
 
23
24
  border-radius: 3px;
24
25
  }
@@ -31,7 +32,7 @@
31
32
  left: 0;
32
33
 
33
34
  border-radius: 3px;
34
- background-color: var(--yc-color-infographics-info-medium);
35
+ background-color: var(--g-color-base-info-medium);
35
36
  }
36
37
  }
37
38
  }
@@ -5,7 +5,7 @@
5
5
  margin-top: 8px;
6
6
  padding-top: 8px;
7
7
 
8
- border-top: 1px solid var(--yc-color-line-generic);
8
+ border-top: 1px solid var(--g-color-line-generic);
9
9
  }
10
10
 
11
11
  &__donor-label {
@@ -147,7 +147,7 @@ export const VDiskPopup = ({data, nodes, ...props}: VDiskPopupProps) => {
147
147
 
148
148
  return (
149
149
  <Popup
150
- className={b()}
150
+ contentClassName={b()}
151
151
  placement={['top', 'bottom']}
152
152
  // bigger offset for easier switching to neighbour nodes
153
153
  // matches the default offset for popup with arrow out of a sense of beauty
@@ -20,7 +20,7 @@
20
20
  }
21
21
  &__history-title {
22
22
  margin-bottom: 15px;
23
- @include body2-typography();
23
+ @include body-2-typography();
24
24
  }
25
25
 
26
26
  &__placeholder {
@@ -46,10 +46,10 @@
46
46
  &__title {
47
47
  margin-right: 16px;
48
48
 
49
- font-size: var(--yc-text-body-2-font-size);
50
49
  font-weight: 500;
51
- line-height: var(--yc-text-body-2-line-height);
52
50
  text-transform: uppercase;
51
+
52
+ @include body-2-typography();
53
53
  }
54
54
 
55
55
  &__loader {
@@ -88,10 +88,10 @@
88
88
  &__top-label {
89
89
  margin-right: 16px;
90
90
 
91
- font-size: var(--yc-text-body-2-font-size);
92
91
  font-weight: 500;
93
- line-height: var(--yc-text-body-2-line-height);
94
92
  text-transform: uppercase;
93
+
94
+ @include body-2-typography();
95
95
  }
96
96
 
97
97
  &__host {
@@ -8,8 +8,7 @@
8
8
  &__node {
9
9
  overflow: hidden;
10
10
 
11
- font-size: var(--yc-text-body-1-font-size);
12
- line-height: var(--yc-text-body-1-line-height);
11
+ @include body-1-typography();
13
12
  }
14
13
 
15
14
  &__node-meta {
@@ -18,7 +17,7 @@
18
17
  white-space: nowrap;
19
18
  text-overflow: ellipsis;
20
19
 
21
- color: var(--yc-color-text-secondary);
20
+ color: var(--g-color-text-secondary);
22
21
  }
23
22
 
24
23
  &__items {
@@ -23,20 +23,6 @@
23
23
 
24
24
  padding-bottom: 16px;
25
25
 
26
- background-color: var(--yc-color-base-background);
27
- .yc-staff-card {
28
- display: inline-block;
29
- }
30
- }
31
-
32
- &__text {
33
- font-size: var(--yc-text-body-1-font-size);
34
- line-height: var(--yc-text-body-1-line-height);
35
-
36
- color: var(--yc-color-text-primary);
37
-
38
- &::first-letter {
39
- color: var(--yc-color-text-danger);
40
- }
26
+ background-color: var(--g-color-base-background);
41
27
  }
42
28
  }
@@ -16,10 +16,6 @@
16
16
  @include search();
17
17
  }
18
18
 
19
- &__table-settings .yc-icon {
20
- width: 20px;
21
- }
22
-
23
19
  &__table-wrapper {
24
20
  overflow: auto;
25
21
  @include flex-container();
@@ -1,6 +1,7 @@
1
+ @import '../../../../../styles/mixins.scss';
2
+
1
3
  .ydb-diagnostics-consumers-topic-stats {
2
- font-size: var(--yc-text-body-2-font-size);
3
- line-height: var(--yc-text-body-2-line-height);
4
+ @include body-2-typography();
4
5
 
5
6
  &__wrapper {
6
7
  display: flex;
@@ -8,7 +9,7 @@
8
9
 
9
10
  padding-left: 16px;
10
11
 
11
- border-left: 1px solid var(--yc-color-line-generic);
12
+ border-left: 1px solid var(--g-color-line-generic);
12
13
  }
13
14
 
14
15
  &__item {
@@ -20,7 +21,7 @@
20
21
  &__label {
21
22
  margin-bottom: 4px;
22
23
 
23
- color: var(--yc-color-text-secondary);
24
+ color: var(--g-color-text-secondary);
24
25
  }
25
26
  &__value {
26
27
  display: flex;
@@ -23,11 +23,5 @@
23
23
  position: absolute;
24
24
  top: 23px;
25
25
  right: 13px;
26
-
27
- & .yc-button__text {
28
- display: flex;
29
-
30
- margin: 0 4px;
31
- }
32
26
  }
33
27
  }
@@ -1,18 +1,10 @@
1
- import React, {useState} from 'react';
2
1
  import {useSelector} from 'react-redux';
3
2
  import cn from 'bem-cn-lite';
4
3
 
5
- import {Button, Modal} from '@gravity-ui/uikit';
6
-
7
4
  import type {EPathType} from '../../../../types/api/schema';
8
5
  import type {AdditionalNodesProps, AdditionalTenantsProps} from '../../../../types/additionalProps';
9
- import {Icon} from '../../../../components/Icon';
10
- import {useSetting} from '../../../../utils/hooks';
11
- import {DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS} from '../../../../utils/constants';
12
6
  import Overview from '../Overview/Overview';
13
- import {Healthcheck} from '../OldHealthcheck';
14
7
  import {TenantOverview} from '../TenantOverview/TenantOverview';
15
- import {OldTenantOverview} from '../TenantOverview/OldTenantOverview';
16
8
 
17
9
  import './DetailedOverview.scss';
18
10
 
@@ -29,86 +21,26 @@ const b = cn('kv-detailed-overview');
29
21
  function DetailedOverview(props: DetailedOverviewProps) {
30
22
  const {type, tenantName, additionalTenantProps, additionalNodesProps} = props;
31
23
 
32
- const [isModalVisible, setIsModalVisible] = useState(false);
33
-
34
24
  const {currentSchemaPath} = useSelector((state: any) => state.schema);
35
25
 
36
- const [displayMetricsCards] = useSetting(DISPLAY_METRICS_CARDS_FOR_TENANT_DIAGNOSTICS);
37
-
38
- const openModalHandler = () => {
39
- setIsModalVisible(true);
40
- };
41
-
42
- const closeModalHandler = () => {
43
- setIsModalVisible(false);
44
- };
45
-
46
- const renderModal = () => {
47
- return (
48
- <Modal open={isModalVisible} onClose={closeModalHandler} className={b('modal')}>
49
- <Healthcheck tenant={props.tenantName} fetchData={false} />
50
- <Button
51
- className={b('close-modal-button')}
52
- onClick={closeModalHandler}
53
- view="flat-secondary"
54
- title="Close"
55
- >
56
- <Icon name="close" viewBox={'0 0 16 16 '} height={20} width={20} />
57
- </Button>
58
- </Modal>
59
- );
60
- };
61
-
62
26
  const renderTenantOverview = () => {
63
- if (displayMetricsCards) {
64
- return (
65
- <div className={b('section')}>
66
- <TenantOverview
67
- tenantName={tenantName}
68
- additionalTenantProps={additionalTenantProps}
69
- additionalNodesProps={additionalNodesProps}
70
- />
71
- </div>
72
- );
73
- }
74
-
75
- return (
76
- <>
77
- <div className={b('section')}>
78
- <OldTenantOverview
79
- tenantName={tenantName}
80
- additionalTenantProps={additionalTenantProps}
81
- />
82
- </div>
83
- <div className={b('section')}>
84
- <Healthcheck
85
- tenant={tenantName}
86
- preview={true}
87
- showMoreHandler={openModalHandler}
88
- />
89
- </div>
90
- </>
91
- );
92
- };
93
-
94
- const renderContent = () => {
95
- const isTenant = tenantName === currentSchemaPath;
96
27
  return (
97
- <div className={b()}>
98
- {isTenant ? (
99
- renderTenantOverview()
100
- ) : (
101
- <Overview type={type} tenantName={tenantName} />
102
- )}
28
+ <div className={b('section')}>
29
+ <TenantOverview
30
+ tenantName={tenantName}
31
+ additionalTenantProps={additionalTenantProps}
32
+ additionalNodesProps={additionalNodesProps}
33
+ />
103
34
  </div>
104
35
  );
105
36
  };
106
37
 
38
+ const isTenant = tenantName === currentSchemaPath;
39
+
107
40
  return (
108
- <React.Fragment>
109
- {renderContent()}
110
- {renderModal()}
111
- </React.Fragment>
41
+ <div className={b()}>
42
+ {isTenant ? renderTenantOverview() : <Overview type={type} tenantName={tenantName} />}
43
+ </div>
112
44
  );
113
45
  }
114
46
 
@@ -8,7 +8,7 @@
8
8
  &__header-wrapper {
9
9
  padding: 13px 20px 16px;
10
10
 
11
- background-color: var(--yc-color-base-background);
11
+ background-color: var(--g-color-base-background);
12
12
  }
13
13
 
14
14
  &__tabs {
@@ -16,7 +16,7 @@
16
16
  justify-content: space-between;
17
17
  align-items: center;
18
18
 
19
- box-shadow: inset 0 -1px 0 0 var(--yc-color-line-generic);
19
+ box-shadow: inset 0 -1px 0 0 var(--g-color-line-generic);
20
20
  & .yc-tabs_direction_horizontal {
21
21
  box-shadow: unset;
22
22
  }