ydb-embedded-ui 3.1.0 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/README.md +2 -0
  3. package/dist/components/DateRange/DateRange.scss +11 -0
  4. package/dist/{containers/Tenant/Diagnostics/TopShards → components}/DateRange/DateRange.tsx +7 -7
  5. package/dist/{containers/Tenant/Diagnostics/TopShards → components}/DateRange/index.ts +0 -0
  6. package/dist/components/Illustration/Illustration.tsx +4 -11
  7. package/dist/components/InfoViewer/InfoViewer.scss +2 -0
  8. package/dist/containers/Storage/DiskStateProgressBar/DiskStateProgressBar.tsx +1 -1
  9. package/dist/containers/Storage/StorageNodes/StorageNodes.tsx +16 -0
  10. package/dist/containers/Tenant/Diagnostics/Diagnostics.tsx +4 -5
  11. package/dist/containers/Tenant/Diagnostics/DiagnosticsPages.ts +7 -7
  12. package/dist/containers/Tenant/Diagnostics/{TopShards/TopShards.scss → OverloadedShards/OverloadedShards.scss} +1 -1
  13. package/dist/containers/Tenant/Diagnostics/{TopShards/TopShards.tsx → OverloadedShards/OverloadedShards.tsx} +10 -11
  14. package/dist/containers/Tenant/Diagnostics/{TopShards → OverloadedShards}/i18n/en.json +0 -0
  15. package/dist/containers/Tenant/Diagnostics/OverloadedShards/i18n/index.ts +11 -0
  16. package/dist/containers/Tenant/Diagnostics/{TopShards → OverloadedShards}/i18n/ru.json +0 -0
  17. package/dist/containers/Tenant/Diagnostics/OverloadedShards/index.ts +1 -0
  18. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +16 -19
  19. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx +202 -0
  20. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +4 -0
  21. package/dist/containers/Tenant/Diagnostics/{TopShards → TopQueries}/i18n/index.ts +1 -1
  22. package/dist/containers/Tenant/Diagnostics/TopQueries/i18n/ru.json +4 -0
  23. package/dist/containers/Tenant/Diagnostics/TopQueries/index.ts +1 -0
  24. package/dist/containers/UserSettings/UserSettings.tsx +1 -1
  25. package/dist/services/api.d.ts +7 -0
  26. package/dist/store/reducers/describe.ts +4 -1
  27. package/dist/store/reducers/executeTopQueries.ts +170 -0
  28. package/dist/store/reducers/settings.js +1 -1
  29. package/dist/store/reducers/shardsWorkload.ts +9 -9
  30. package/dist/store/reducers/storage.js +2 -0
  31. package/dist/store/reducers/{tablets.js → tablets.ts} +30 -17
  32. package/dist/store/state-url-mapping.js +10 -2
  33. package/dist/types/api/compute.ts +52 -0
  34. package/dist/types/api/consumer.ts +257 -0
  35. package/dist/types/api/enums.ts +2 -2
  36. package/dist/types/api/nodes.ts +5 -2
  37. package/dist/types/api/pdisk.ts +3 -0
  38. package/dist/types/api/schema.ts +1 -0
  39. package/dist/types/api/storage.ts +31 -28
  40. package/dist/types/api/tablet.ts +18 -2
  41. package/dist/types/api/tenant.ts +4 -1
  42. package/dist/types/api/topic.ts +157 -0
  43. package/dist/types/api/vdisk.ts +3 -0
  44. package/dist/types/store/executeTopQueries.ts +29 -0
  45. package/dist/types/store/schema.ts +3 -3
  46. package/dist/types/store/shardsWorkload.ts +3 -3
  47. package/dist/types/store/tablets.ts +42 -0
  48. package/dist/utils/getNodesColumns.js +8 -1
  49. package/package.json +3 -3
  50. package/dist/containers/Tenant/Diagnostics/TopQueries/TopQueries.js +0 -188
  51. package/dist/containers/Tenant/Diagnostics/TopShards/DateRange/DateRange.scss +0 -13
  52. package/dist/containers/Tenant/Diagnostics/TopShards/index.ts +0 -1
  53. package/dist/store/reducers/executeTopQueries.js +0 -66
  54. package/dist/types/api/consumers.ts +0 -3
@@ -1,13 +0,0 @@
1
- .top-shards {
2
- &__date-range {
3
- &-input {
4
- min-width: 190px;
5
- padding: 5px 8px;
6
-
7
- color: var(--yc-color-text-primary);
8
- border: 1px solid var(--yc-color-line-generic);
9
- border-radius: var(--yc-border-radius-m);
10
- background: transparent;
11
- }
12
- }
13
- }
@@ -1 +0,0 @@
1
- export * from './TopShards';
@@ -1,66 +0,0 @@
1
- import '../../services/api';
2
-
3
- import {parseQueryAPIExecuteResponse} from '../../utils/query';
4
-
5
- import {createRequestActionTypes, createApiRequest} from '../utils';
6
-
7
- const SEND_QUERY = createRequestActionTypes('top-queries', 'SEND_QUERY');
8
- const SET_QUERY_OPTIONS = createRequestActionTypes('top-queries', 'SET_QUERY_OPTIONS');
9
-
10
- const initialState = {
11
- loading: false,
12
- wasLoaded: false,
13
- };
14
-
15
- const executeTopQueries = (state = initialState, action) => {
16
- switch (action.type) {
17
- case SEND_QUERY.REQUEST: {
18
- return {
19
- ...state,
20
- loading: true,
21
- error: undefined,
22
- };
23
- }
24
- case SEND_QUERY.SUCCESS: {
25
- return {
26
- ...state,
27
- data: action.data,
28
- loading: false,
29
- error: undefined,
30
- wasLoaded: true,
31
- };
32
- }
33
- // 401 Unauthorized error is handled by GenericAPI
34
- case SEND_QUERY.FAILURE: {
35
- return {
36
- ...state,
37
- error: action.error || 'Unauthorized',
38
- loading: false,
39
- };
40
- }
41
- case SET_QUERY_OPTIONS:
42
- return {
43
- ...state,
44
- ...action.data,
45
- };
46
- default:
47
- return state;
48
- }
49
- };
50
-
51
- export const sendQuery = ({query, database, action}) => {
52
- return createApiRequest({
53
- request: window.api.sendQuery({schema: 'modern', query, database, action}),
54
- actions: SEND_QUERY,
55
- dataHandler: parseQueryAPIExecuteResponse,
56
- });
57
- };
58
-
59
- export function setQueryOptions(options) {
60
- return {
61
- type: SET_QUERY_OPTIONS,
62
- data: options,
63
- };
64
- }
65
-
66
- export default executeTopQueries;
@@ -1,3 +0,0 @@
1
- export interface IConsumer {
2
- name: string;
3
- }