ydb-embedded-ui 20.2.0 → 20.3.0
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/dist/components/EntityStatus/EntityStatus.js +2 -2
- package/dist/components/EntityStatus/EntityStatus.js.map +1 -1
- package/dist/components/StatusColor/StatusColor.scss +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js +1 -1
- package/dist/containers/Tenant/Query/Preview/Preview.js.map +1 -1
- package/dist/containers/Tenant/Query/Preview/components/PreviewView.js +1 -1
- package/dist/containers/Tenant/Query/Preview/components/PreviewView.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js +5 -18
- package/dist/containers/Tenant/Query/QueriesHistory/QueriesHistory.js.map +1 -1
- package/dist/containers/Tenant/Query/QueriesHistory/columns.js +10 -9
- package/dist/containers/Tenant/Query/QueriesHistory/columns.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabItem.js +8 -8
- package/dist/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabItem.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabs.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/EditorTabs/RenameQueryDialog.js +2 -4
- package/dist/containers/Tenant/Query/QueryEditor/EditorTabs/RenameQueryDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditorZeroTabsState.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/QueryEditorZeroTabsState.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.js +15 -15
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditor/hooks/useQueryTabsActions.js +14 -5
- package/dist/containers/Tenant/Query/QueryEditor/hooks/useQueryTabsActions.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/EditorButton.js +5 -5
- package/dist/containers/Tenant/Query/QueryEditorControls/EditorButton.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js +1 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js +3 -1
- package/dist/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.js.map +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.js +1 -1
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js +20 -20
- package/dist/containers/Tenant/Query/QuerySettingsDialog/constants.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryStoppedBanner/QueryStoppedBanner.js +1 -1
- package/dist/containers/Tenant/Query/QueryStoppedBanner/QueryStoppedBanner.js.map +1 -1
- package/dist/containers/Tenant/Query/QueryTabs/QueryTabs.js +3 -3
- package/dist/containers/Tenant/Query/QueryTabs/QueryTabs.js.map +1 -1
- package/dist/containers/Tenant/Query/SaveChangesDialog/SaveChangesDialog.d.ts +1 -1
- package/dist/containers/Tenant/Query/SaveChangesDialog/SaveChangesDialog.js +9 -11
- package/dist/containers/Tenant/Query/SaveChangesDialog/SaveChangesDialog.js.map +1 -1
- package/dist/containers/Tenant/Query/SaveChangesDialog/i18n/en.json +2 -3
- package/dist/containers/Tenant/Query/SaveChangesDialog/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.d.ts +2 -2
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js +10 -13
- package/dist/containers/Tenant/Query/SaveQuery/SaveQuery.js.map +1 -1
- package/dist/containers/Tenant/Query/SaveQuery/i18n/en.json +1 -2
- package/dist/containers/Tenant/Query/SaveQuery/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/SavedQueries/RenameSavedQueryDialog.d.ts +10 -0
- package/dist/containers/Tenant/Query/SavedQueries/RenameSavedQueryDialog.js +42 -0
- package/dist/containers/Tenant/Query/SavedQueries/RenameSavedQueryDialog.js.map +1 -0
- package/dist/containers/Tenant/Query/SavedQueries/RenameSavedQueryDialog.scss +21 -0
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js +136 -61
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.js.map +1 -1
- package/dist/containers/Tenant/Query/SavedQueries/SavedQueries.scss +52 -23
- package/dist/containers/Tenant/Query/SavedQueries/columns.d.ts +9 -0
- package/dist/containers/Tenant/Query/SavedQueries/columns.js +53 -0
- package/dist/containers/Tenant/Query/SavedQueries/columns.js.map +1 -0
- package/dist/containers/Tenant/Query/SavedQueries/shared.d.ts +1 -0
- package/dist/containers/Tenant/Query/SavedQueries/shared.js +3 -0
- package/dist/containers/Tenant/Query/SavedQueries/shared.js.map +1 -0
- package/dist/containers/Tenant/Query/hooks/useExternalQuerySingleTabProtection.js +1 -1
- package/dist/containers/Tenant/Query/hooks/useExternalQuerySingleTabProtection.js.map +1 -1
- package/dist/containers/Tenant/Query/i18n/en.json +91 -84
- package/dist/containers/Tenant/Query/i18n/index.d.ts +1 -1
- package/dist/containers/Tenant/Query/utils/QueryNameValidation.d.ts +1 -2
- package/dist/containers/Tenant/Query/utils/QueryNameValidation.js +0 -4
- package/dist/containers/Tenant/Query/utils/QueryNameValidation.js.map +1 -1
- package/dist/containers/Tenant/Query/utils/queryPreview.d.ts +1 -0
- package/dist/containers/Tenant/Query/utils/queryPreview.js +17 -0
- package/dist/containers/Tenant/Query/utils/queryPreview.js.map +1 -0
- package/dist/containers/Tenant/Query/utils/queryTabTitles.js +5 -5
- package/dist/containers/Tenant/Query/utils/queryTabTitles.js.map +1 -1
- package/dist/containers/Tenant/Query/utils/savedQueries.d.ts +11 -0
- package/dist/containers/Tenant/Query/utils/savedQueries.js +58 -0
- package/dist/containers/Tenant/Query/utils/savedQueries.js.map +1 -0
- package/dist/containers/Tenant/Query/utils/useSavedQueries.d.ts +4 -1
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js +43 -24
- package/dist/containers/Tenant/Query/utils/useSavedQueries.js.map +1 -1
- package/dist/containers/Tenant/Query/utils/useUpdateSavedQueryFromTab.d.ts +3 -0
- package/dist/containers/Tenant/Query/utils/useUpdateSavedQueryFromTab.js +34 -0
- package/dist/containers/Tenant/Query/utils/useUpdateSavedQueryFromTab.js.map +1 -0
- package/dist/containers/Tenant/utils/constants.js +1 -1
- package/dist/containers/Tenant/utils/constants.js.map +1 -1
- package/dist/store/reducers/query/hooks/useQueriesHistory.js +3 -1
- package/dist/store/reducers/query/hooks/useQueriesHistory.js.map +1 -1
- package/dist/store/reducers/query/query.d.ts +1 -1
- package/dist/store/reducers/query/query.js +1 -1
- package/dist/store/reducers/query/query.js.map +1 -1
- package/dist/store/reducers/query/slice.d.ts +12 -1
- package/dist/store/reducers/query/slice.js +50 -1
- package/dist/store/reducers/query/slice.js.map +1 -1
- package/dist/types/store/query.d.ts +1 -0
- package/dist/utils/sortByTimestamp.d.ts +1 -0
- package/dist/utils/sortByTimestamp.js +21 -0
- package/dist/utils/sortByTimestamp.js.map +1 -0
- package/package.json +9 -8
- package/src/.eslintrc +35 -0
- package/src/assets/icons/cluster.svg +1 -0
- package/src/assets/icons/cry-cat.svg +14 -0
- package/src/assets/icons/databases.svg +3 -0
- package/src/assets/icons/decommission.svg +6 -0
- package/src/assets/icons/disableFullscreen.svg +4 -0
- package/src/assets/icons/emptyState.svg +13 -0
- package/src/assets/icons/key.svg +6 -0
- package/src/assets/icons/monium.svg +3 -0
- package/src/assets/icons/network.svg +21 -0
- package/src/assets/icons/overview.svg +1 -0
- package/src/assets/icons/sso-user.svg +12 -0
- package/src/assets/icons/user-secret.svg +1 -0
- package/src/assets/icons/ydb.svg +4 -0
- package/src/components/AsyncReplicationState/AsyncReplicationState.tsx +28 -0
- package/src/components/AsyncReplicationState/index.ts +1 -0
- package/src/components/AutoRefreshControl/AutoRefreshControl.scss +5 -0
- package/src/components/AutoRefreshControl/AutoRefreshControl.tsx +52 -0
- package/src/components/AutoRefreshControl/i18n/en.json +8 -0
- package/src/components/AutoRefreshControl/i18n/index.ts +7 -0
- package/src/components/ButtonWithConfirmDialog/ButtonWithConfirmDialog.tsx +125 -0
- package/src/components/CellWithPopover/CellWithPopover.scss +37 -0
- package/src/components/CellWithPopover/CellWithPopover.tsx +41 -0
- package/src/components/CircularProgressBar/CircularProgressBar.scss +42 -0
- package/src/components/CircularProgressBar/CircularProgressBar.tsx +57 -0
- package/src/components/ClipboardButton/ClipboardButton.tsx +31 -0
- package/src/components/ClipboardButton/i18n/en.json +3 -0
- package/src/components/ClipboardButton/i18n/index.ts +7 -0
- package/src/components/ComponentsProvider/ComponentsProvider.tsx +25 -0
- package/src/components/ComponentsProvider/componentsRegistry.ts +20 -0
- package/src/components/ComponentsProvider/registry.ts +40 -0
- package/src/components/ConfirmationDialog/ConfirmationDialog.scss +6 -0
- package/src/components/ConfirmationDialog/ConfirmationDialog.tsx +111 -0
- package/src/components/ConfirmationDialog/i18n/en.json +3 -0
- package/src/components/ConfirmationDialog/i18n/index.ts +7 -0
- package/src/components/ConnectToDB/ConnectToDB.scss +13 -0
- package/src/components/ConnectToDB/ConnectToDBDialog.tsx +134 -0
- package/src/components/ConnectToDB/getDocsLink.ts +34 -0
- package/src/components/ConnectToDB/i18n/en.json +17 -0
- package/src/components/ConnectToDB/i18n/index.ts +7 -0
- package/src/components/ConnectToDB/snippets.ts +245 -0
- package/src/components/ConnectToDB/types.ts +14 -0
- package/src/components/ConnectToDB/utils.ts +20 -0
- package/src/components/ContentWithPopup/ContentWithPopup.tsx +65 -0
- package/src/components/CopyLinkButton/CopyLinkButton.scss +6 -0
- package/src/components/CopyLinkButton/CopyLinkButton.tsx +82 -0
- package/src/components/CopyLinkButton/i18n/en.json +4 -0
- package/src/components/CopyLinkButton/i18n/index.ts +7 -0
- package/src/components/CriticalActionDialog/CriticalActionDialog.scss +3 -0
- package/src/components/CriticalActionDialog/CriticalActionDialog.tsx +172 -0
- package/src/components/CriticalActionDialog/i18n/en.json +11 -0
- package/src/components/CriticalActionDialog/i18n/index.ts +7 -0
- package/src/components/CriticalActionDialog/utils.ts +9 -0
- package/src/components/DateRange/DateRange.scss +19 -0
- package/src/components/DateRange/DateRange.tsx +65 -0
- package/src/components/DateRange/i18n/en.json +4 -0
- package/src/components/DateRange/i18n/index.ts +8 -0
- package/src/components/DateRange/i18n/ru.json +4 -0
- package/src/components/DateRange/index.ts +1 -0
- package/src/components/DateRange/utils.ts +46 -0
- package/src/components/DebouncedInput/DebouncedNumerInput.tsx +23 -0
- package/src/components/DebouncedInput/DebouncedTextInput.tsx +19 -0
- package/src/components/DiskCapacityInfo/DiskCapacityInfo.tsx +184 -0
- package/src/components/DiskCapacityInfo/i18n/en.json +7 -0
- package/src/components/DiskCapacityInfo/i18n/index.ts +7 -0
- package/src/components/DiskStateProgressBar/AllModeCapacityAlertIndicator.tsx +24 -0
- package/src/components/DiskStateProgressBar/AllModeIndicators.tsx +34 -0
- package/src/components/DiskStateProgressBar/DiskBarLabel.tsx +23 -0
- package/src/components/DiskStateProgressBar/DiskIndicator.tsx +50 -0
- package/src/components/DiskStateProgressBar/DiskStateProgressBar.scss +636 -0
- package/src/components/DiskStateProgressBar/DiskStateProgressBar.tsx +113 -0
- package/src/components/DiskStateProgressBar/PDiskAllModeIndicators.tsx +40 -0
- package/src/components/Divider/Divider.scss +7 -0
- package/src/components/Divider/Divider.tsx +11 -0
- package/src/components/DoughnutMetrics/DoughnutMetrics.scss +73 -0
- package/src/components/DoughnutMetrics/DoughnutMetrics.tsx +146 -0
- package/src/components/DoughnutMetrics/SvgCircle.tsx +40 -0
- package/src/components/DoughnutMetrics/utils.ts +45 -0
- package/src/components/Drawer/Drawer.scss +81 -0
- package/src/components/Drawer/Drawer.tsx +309 -0
- package/src/components/Drawer/DrawerContext.tsx +180 -0
- package/src/components/Drawer/DrawerWidthUtils.ts +103 -0
- package/src/components/Drawer/i18n/en.json +3 -0
- package/src/components/Drawer/i18n/index.ts +7 -0
- package/src/components/Drawer/index.ts +4 -0
- package/src/components/DropdownMenu/DropdownMenu.scss +14 -0
- package/src/components/DropdownMenu/DropdownMenu.tsx +75 -0
- package/src/components/DropdownMenu/index.ts +2 -0
- package/src/components/EmptyFilter/EmptyFilter.tsx +49 -0
- package/src/components/EmptyFilter/i18n/en.json +4 -0
- package/src/components/EmptyFilter/i18n/index.ts +8 -0
- package/src/components/EmptyFilter/i18n/ru.json +4 -0
- package/src/components/EmptyState/EmptyState.scss +91 -0
- package/src/components/EmptyState/EmptyState.tsx +89 -0
- package/src/components/EmptyState/index.ts +1 -0
- package/src/components/EnableFullscreenButton/EnableFullscreenButton.tsx +35 -0
- package/src/components/EnableFullscreenButton/i18n/en.json +3 -0
- package/src/components/EnableFullscreenButton/i18n/index.ts +7 -0
- package/src/components/EntitiesCount/EntitiesCount.tsx +39 -0
- package/src/components/EntitiesCount/i18n/en.json +3 -0
- package/src/components/EntitiesCount/i18n/index.ts +8 -0
- package/src/components/EntitiesCount/i18n/ru.json +3 -0
- package/src/components/EntitiesCount/index.ts +1 -0
- package/src/components/EntityName/EntityName.scss +140 -0
- package/src/components/EntityName/EntityName.tsx +126 -0
- package/src/components/EntityPageTitle/EntityPageTitle.scss +16 -0
- package/src/components/EntityPageTitle/EntityPageTitle.tsx +32 -0
- package/src/components/EntityStatus/EntityStatus.scss +11 -0
- package/src/components/EntityStatus/EntityStatus.tsx +102 -0
- package/src/components/EntityStatus/i18n/en.json +14 -0
- package/src/components/EntityStatus/i18n/index.ts +7 -0
- package/src/components/EntityStatus/utils.ts +24 -0
- package/src/components/ErrorBoundary/ErrorBoundary.scss +38 -0
- package/src/components/ErrorBoundary/ErrorBoundary.tsx +144 -0
- package/src/components/ErrorBoundary/i18n/en.json +10 -0
- package/src/components/ErrorBoundary/i18n/index.ts +7 -0
- package/src/components/ErrorBoundary/utils.tsx +60 -0
- package/src/components/Errors/401/Unauthenticated.tsx +30 -0
- package/src/components/Errors/401/index.ts +1 -0
- package/src/components/Errors/403/AccessDenied.tsx +30 -0
- package/src/components/Errors/403/index.ts +1 -0
- package/src/components/Errors/PageError/PageError.scss +11 -0
- package/src/components/Errors/PageError/PageError.tsx +195 -0
- package/src/components/Errors/PageError/utils.ts +35 -0
- package/src/components/Errors/ResponseError/ErrorDetails.scss +57 -0
- package/src/components/Errors/ResponseError/ErrorDetails.tsx +87 -0
- package/src/components/Errors/ResponseError/ResponseError.scss +22 -0
- package/src/components/Errors/ResponseError/ResponseError.tsx +117 -0
- package/src/components/Errors/ResponseError/index.ts +1 -0
- package/src/components/Errors/i18n/en.json +30 -0
- package/src/components/Errors/i18n/index.ts +7 -0
- package/src/components/Errors/shared/ErrorFieldsList.tsx +233 -0
- package/src/components/Errors/shared/IssuesSection.tsx +36 -0
- package/src/components/Errors/shared/ResponseBodySection.scss +38 -0
- package/src/components/Errors/shared/ResponseBodySection.tsx +50 -0
- package/src/components/EvictVDiskButton/EvictVDiskButton.tsx +96 -0
- package/src/components/EvictVDiskButton/i18n/en.json +10 -0
- package/src/components/EvictVDiskButton/i18n/index.ts +7 -0
- package/src/components/FixedHeightQuery/FixedHeightQuery.scss +46 -0
- package/src/components/FixedHeightQuery/FixedHeightQuery.tsx +94 -0
- package/src/components/FormattedBytes/FormattedBytes.tsx +12 -0
- package/src/components/FormattedBytes/utils.tsx +15 -0
- package/src/components/FullNodeViewer/FullNodeViewer.scss +33 -0
- package/src/components/FullNodeViewer/FullNodeViewer.tsx +124 -0
- package/src/components/FullNodeViewer/i18n/en.json +21 -0
- package/src/components/FullNodeViewer/i18n/index.ts +7 -0
- package/src/components/Fullscreen/Fullscreen.scss +37 -0
- package/src/components/Fullscreen/Fullscreen.tsx +103 -0
- package/src/components/Fullscreen/FullscreenContext.tsx +25 -0
- package/src/components/Graph/Graph.tsx +70 -0
- package/src/components/Graph/colors.ts +75 -0
- package/src/components/HealthcheckStatus/HealthcheckStatus.scss +7 -0
- package/src/components/HealthcheckStatus/HealthcheckStatus.tsx +32 -0
- package/src/components/HealthcheckStatus/config.ts +62 -0
- package/src/components/HealthcheckStatus/i18n/en.json +7 -0
- package/src/components/HealthcheckStatus/i18n/index.ts +7 -0
- package/src/components/HelpMarkWithDocs/HelpMarkWithDocs.tsx +35 -0
- package/src/components/HelpMarkWithDocs/i18n/en.json +3 -0
- package/src/components/HelpMarkWithDocs/i18n/index.ts +7 -0
- package/src/components/HoverPopup/HoverPopup.tsx +167 -0
- package/src/components/InfoViewer/InfoViewer.scss +110 -0
- package/src/components/InfoViewer/InfoViewer.tsx +67 -0
- package/src/components/InfoViewer/formatters/cdcStream.ts +9 -0
- package/src/components/InfoViewer/formatters/common.ts +16 -0
- package/src/components/InfoViewer/formatters/index.ts +5 -0
- package/src/components/InfoViewer/formatters/pqGroup.ts +50 -0
- package/src/components/InfoViewer/formatters/schema.ts +19 -0
- package/src/components/InfoViewer/formatters/table.ts +51 -0
- package/src/components/InfoViewer/i18n/en.json +5 -0
- package/src/components/InfoViewer/i18n/index.ts +7 -0
- package/src/components/InfoViewer/index.ts +5 -0
- package/src/components/InfoViewer/schemaInfo/TableIndexInfo.tsx +53 -0
- package/src/components/InfoViewer/schemaInfo/i18n/en.json +41 -0
- package/src/components/InfoViewer/schemaInfo/i18n/index.ts +7 -0
- package/src/components/InfoViewer/schemaInfo/index.ts +2 -0
- package/src/components/InfoViewer/schemaInfo/utils.tsx +264 -0
- package/src/components/InfoViewer/utils.ts +57 -0
- package/src/components/InfoViewerSkeleton/InfoViewerSkeleton.scss +40 -0
- package/src/components/InfoViewerSkeleton/InfoViewerSkeleton.tsx +45 -0
- package/src/components/InternalLink/InternalLink.scss +13 -0
- package/src/components/InternalLink/InternalLink.tsx +37 -0
- package/src/components/InternalLink/index.ts +1 -0
- package/src/components/InternalLinkButton/InternalLinkButton.tsx +43 -0
- package/src/components/InternalLinkButton/index.ts +1 -0
- package/src/components/JsonViewer/JsonViewer.scss +57 -0
- package/src/components/JsonViewer/JsonViewer.tsx +142 -0
- package/src/components/JsonViewer/components/Filter.tsx +103 -0
- package/src/components/JsonViewer/constants.ts +2 -0
- package/src/components/JsonViewer/i18n/en.json +11 -0
- package/src/components/JsonViewer/i18n/index.ts +7 -0
- package/src/components/LabelWithHelpMark/LabelWithHelpMark.tsx +31 -0
- package/src/components/LabelWithPopover/LabelWithPopover.tsx +21 -0
- package/src/components/LabelWithPopover/index.ts +1 -0
- package/src/components/LagImages/LagImages.tsx +205 -0
- package/src/components/LagImages/index.ts +1 -0
- package/src/components/LagPopoverContent/LagPopoverContent.scss +13 -0
- package/src/components/LagPopoverContent/LagPopoverContent.tsx +18 -0
- package/src/components/LagPopoverContent/index.ts +1 -0
- package/src/components/LinkToSchemaObject/LinkToSchemaObject.tsx +74 -0
- package/src/components/LinkToSchemaObject/utils.ts +33 -0
- package/src/components/LinkWithIcon/LinkWithIcon.scss +7 -0
- package/src/components/LinkWithIcon/LinkWithIcon.tsx +66 -0
- package/src/components/Loader/Loader.scss +8 -0
- package/src/components/Loader/Loader.tsx +27 -0
- package/src/components/Loader/index.ts +1 -0
- package/src/components/LoaderWrapper/LoaderWrapper.tsx +26 -0
- package/src/components/MemoryViewer/MemoryViewer.scss +94 -0
- package/src/components/MemoryViewer/MemoryViewer.tsx +171 -0
- package/src/components/MemoryViewer/i18n/en.json +12 -0
- package/src/components/MemoryViewer/i18n/index.ts +7 -0
- package/src/components/MemoryViewer/utils.ts +110 -0
- package/src/components/MetricChart/MetricChart.scss +34 -0
- package/src/components/MetricChart/MetricChart.tsx +203 -0
- package/src/components/MetricChart/colors.ts +23 -0
- package/src/components/MetricChart/convertResponse.ts +34 -0
- package/src/components/MetricChart/getChartData.ts +26 -0
- package/src/components/MetricChart/getDefaultDataFormatter.ts +45 -0
- package/src/components/MetricChart/i18n/en.json +3 -0
- package/src/components/MetricChart/i18n/index.ts +7 -0
- package/src/components/MetricChart/index.ts +2 -0
- package/src/components/MetricChart/reducer.ts +38 -0
- package/src/components/MetricChart/types.ts +47 -0
- package/src/components/MonacoEditor/MonacoEditor.tsx +6 -0
- package/src/components/MultilineTableHeader/MultilineTableHeader.scss +3 -0
- package/src/components/MultilineTableHeader/MultilineTableHeader.tsx +16 -0
- package/src/components/NetworkTable/NetworkTable.tsx +37 -0
- package/src/components/NetworkTable/columns.tsx +39 -0
- package/src/components/NetworkTable/constants.ts +28 -0
- package/src/components/NodeHostWrapper/NodeHostWrapper.tsx +62 -0
- package/src/components/NodeId/NodeId.tsx +12 -0
- package/src/components/PDiskInfo/PDiskInfo.tsx +262 -0
- package/src/components/PDiskInfo/i18n/en.json +26 -0
- package/src/components/PDiskInfo/i18n/index.ts +7 -0
- package/src/components/PDiskPageLink/PDiskPageLink.tsx +22 -0
- package/src/components/PDiskPageLink/i18n/en.json +3 -0
- package/src/components/PDiskPageLink/i18n/index.ts +7 -0
- package/src/components/PDiskPopup/PDiskPopup.tsx +211 -0
- package/src/components/PDiskPopup/i18n/en.json +15 -0
- package/src/components/PDiskPopup/i18n/index.ts +7 -0
- package/src/components/PageMeta/PageMeta.scss +22 -0
- package/src/components/PageMeta/PageMeta.tsx +43 -0
- package/src/components/PaginatedTable/PaginatedTable.scss +225 -0
- package/src/components/PaginatedTable/PaginatedTable.tsx +145 -0
- package/src/components/PaginatedTable/PaginatedTableContext.tsx +102 -0
- package/src/components/PaginatedTable/PaginatedTableWithLayout.tsx +102 -0
- package/src/components/PaginatedTable/ResizeHandler.tsx +106 -0
- package/src/components/PaginatedTable/ResizeablePaginatedTable.tsx +46 -0
- package/src/components/PaginatedTable/TableChunk.tsx +171 -0
- package/src/components/PaginatedTable/TableChunksRenderer.tsx +197 -0
- package/src/components/PaginatedTable/TableHead.tsx +240 -0
- package/src/components/PaginatedTable/TableRow.tsx +137 -0
- package/src/components/PaginatedTable/constants.ts +40 -0
- package/src/components/PaginatedTable/i18n/en.json +3 -0
- package/src/components/PaginatedTable/i18n/index.ts +8 -0
- package/src/components/PaginatedTable/i18n/ru.json +3 -0
- package/src/components/PaginatedTable/index.ts +4 -0
- package/src/components/PaginatedTable/requestBatcher.ts +182 -0
- package/src/components/PaginatedTable/shared.ts +3 -0
- package/src/components/PaginatedTable/types.ts +73 -0
- package/src/components/PaginatedTable/useScrollBasedChunks.ts +181 -0
- package/src/components/PaginatedTable/utils.tsx +81 -0
- package/src/components/PoolBar/PoolBar.scss +49 -0
- package/src/components/PoolBar/PoolBar.tsx +37 -0
- package/src/components/PoolUsage/PoolUsage.scss +71 -0
- package/src/components/PoolUsage/PoolUsage.tsx +49 -0
- package/src/components/PoolsGraph/PoolsGraph.scss +3 -0
- package/src/components/PoolsGraph/PoolsGraph.tsx +21 -0
- package/src/components/Portal/Portal.tsx +19 -0
- package/src/components/ProblemFilter/ProblemFilter.tsx +35 -0
- package/src/components/ProblemFilter/i18n/en.json +4 -0
- package/src/components/ProblemFilter/i18n/index.ts +7 -0
- package/src/components/ProgressViewer/ProgressViewer.scss +118 -0
- package/src/components/ProgressViewer/ProgressViewer.tsx +107 -0
- package/src/components/ProgressWrapper/ProgressContainer.tsx +25 -0
- package/src/components/ProgressWrapper/ProgressWrapper.tsx +10 -0
- package/src/components/ProgressWrapper/SingleProgress.tsx +54 -0
- package/src/components/ProgressWrapper/StackProgress.tsx +72 -0
- package/src/components/ProgressWrapper/i18n/en.json +4 -0
- package/src/components/ProgressWrapper/i18n/index.ts +11 -0
- package/src/components/ProgressWrapper/index.ts +18 -0
- package/src/components/ProgressWrapper/progressUtils.ts +53 -0
- package/src/components/ProgressWrapper/types.ts +35 -0
- package/src/components/QueriesActivityBar/QueriesActivityAlert.scss +25 -0
- package/src/components/QueriesActivityBar/QueriesActivityAlert.tsx +98 -0
- package/src/components/QueriesActivityBar/QueriesActivityBar.scss +60 -0
- package/src/components/QueriesActivityBar/QueriesActivityBar.tsx +43 -0
- package/src/components/QueriesActivityBar/QueriesActivityCharts.tsx +104 -0
- package/src/components/QueriesActivityBar/QueriesActivityExpandable.tsx +162 -0
- package/src/components/QueriesActivityBar/QueriesActivitySkeleton.scss +6 -0
- package/src/components/QueriesActivityBar/QueriesActivitySkeleton.tsx +11 -0
- package/src/components/QueriesActivityBar/i18n/en.json +10 -0
- package/src/components/QueriesActivityBar/i18n/index.ts +9 -0
- package/src/components/QueriesActivityBar/useQueriesActivityData.ts +101 -0
- package/src/components/QueriesActivityBar/utils.ts +100 -0
- package/src/components/QueryDetails/QueryDetails.scss +26 -0
- package/src/components/QueryDetails/QueryDetails.tsx +53 -0
- package/src/components/QueryDetails/i18n/en.json +4 -0
- package/src/components/QueryDetails/i18n/index.ts +9 -0
- package/src/components/QueryExecutionLabel/QueryExecutionLabel.tsx +36 -0
- package/src/components/QueryExecutionLabel/getQueryExecutionLabelAppearance.tsx +63 -0
- package/src/components/QueryExecutionLabel/i18n/en.json +9 -0
- package/src/components/QueryExecutionLabel/i18n/index.ts +7 -0
- package/src/components/QueryExecutionLabel/index.ts +1 -0
- package/src/components/QueryExecutionStatus/QueryExecutionStatus.tsx +67 -0
- package/src/components/QueryExecutionStatus/index.ts +1 -0
- package/src/components/QueryExecutionStatus/useElapsedDuration.ts +63 -0
- package/src/components/QueryResultTable/Cell/Cell.tsx +42 -0
- package/src/components/QueryResultTable/Cell/index.ts +1 -0
- package/src/components/QueryResultTable/QueryResultTable.scss +25 -0
- package/src/components/QueryResultTable/QueryResultTable.tsx +125 -0
- package/src/components/QueryResultTable/i18n/en.json +3 -0
- package/src/components/QueryResultTable/i18n/index.ts +8 -0
- package/src/components/QueryResultTable/i18n/ru.json +3 -0
- package/src/components/QueryResultTable/index.ts +1 -0
- package/src/components/QuerySettingsDescription/QuerySettingsDescription.scss +8 -0
- package/src/components/QuerySettingsDescription/QuerySettingsDescription.tsx +26 -0
- package/src/components/ResizeableDataTable/ResizeableDataTable.scss +17 -0
- package/src/components/ResizeableDataTable/ResizeableDataTable.tsx +105 -0
- package/src/components/SchemaObjectTypeLabel/SchemaObjectTypeLabel.scss +9 -0
- package/src/components/SchemaObjectTypeLabel/SchemaObjectTypeLabel.tsx +29 -0
- package/src/components/Search/Search.scss +3 -0
- package/src/components/Search/Search.tsx +49 -0
- package/src/components/Search/index.ts +1 -0
- package/src/components/SeeAllButton/SeeAllButton.tsx +23 -0
- package/src/components/SeeAllButton/i18n/en.json +3 -0
- package/src/components/SeeAllButton/i18n/index.ts +7 -0
- package/src/components/SegmentedProgress/SegmentedProgress.scss +51 -0
- package/src/components/SegmentedProgress/SegmentedProgress.tsx +140 -0
- package/src/components/ServerlessDBLabel/ServerlessDBLabel.tsx +16 -0
- package/src/components/ServerlessDBLabel/i18n/en.json +4 -0
- package/src/components/ServerlessDBLabel/i18n/index.ts +7 -0
- package/src/components/ShardsTable/ShardsTable.tsx +50 -0
- package/src/components/ShardsTable/columns.tsx +131 -0
- package/src/components/ShardsTable/constants.ts +64 -0
- package/src/components/ShardsTable/i18n/en.json +11 -0
- package/src/components/ShardsTable/i18n/index.ts +7 -0
- package/src/components/ShardsTable/types.ts +7 -0
- package/src/components/ShardsTable/utils.ts +10 -0
- package/src/components/ShortyString/ShortyString.scss +7 -0
- package/src/components/ShortyString/ShortyString.tsx +67 -0
- package/src/components/ShortyString/i18n/en.json +10 -0
- package/src/components/ShortyString/i18n/index.ts +8 -0
- package/src/components/ShortyString/i18n/ru.json +10 -0
- package/src/components/Skeleton/Skeleton.tsx +16 -0
- package/src/components/SpeedMultiMeter/SpeedMultiMeter.scss +88 -0
- package/src/components/SpeedMultiMeter/SpeedMultiMeter.tsx +123 -0
- package/src/components/SpeedMultiMeter/i18n/en.json +6 -0
- package/src/components/SpeedMultiMeter/i18n/index.ts +8 -0
- package/src/components/SpeedMultiMeter/i18n/ru.json +6 -0
- package/src/components/SpeedMultiMeter/index.ts +1 -0
- package/src/components/SplitPane/SplitPane.scss +96 -0
- package/src/components/SplitPane/SplitPane.tsx +144 -0
- package/src/components/SplitPane/index.ts +3 -0
- package/src/components/Stack/Stack.scss +138 -0
- package/src/components/Stack/Stack.tsx +60 -0
- package/src/components/StatusColor/StatusColor.scss +49 -0
- package/src/components/StatusColor/StatusColor.tsx +20 -0
- package/src/components/StatusIcon/StatusIcon.scss +52 -0
- package/src/components/StatusIcon/StatusIcon.tsx +56 -0
- package/src/components/StatusIconNew/StatusIcon.tsx +33 -0
- package/src/components/StorageGroupInfo/StorageGroupInfo.tsx +310 -0
- package/src/components/StorageGroupInfo/i18n/en.json +24 -0
- package/src/components/StorageGroupInfo/i18n/index.ts +7 -0
- package/src/components/SubjectWithAvatar/SubjectWithAvatar.scss +11 -0
- package/src/components/SubjectWithAvatar/SubjectWithAvatar.tsx +34 -0
- package/src/components/SyntaxHighlighter/YDBSyntaxHighlighter.scss +56 -0
- package/src/components/SyntaxHighlighter/YDBSyntaxHighlighter.tsx +129 -0
- package/src/components/SyntaxHighlighter/lazy.ts +6 -0
- package/src/components/SyntaxHighlighter/shared.ts +3 -0
- package/src/components/SyntaxHighlighter/shikiHighlighter.ts +116 -0
- package/src/components/SyntaxHighlighter/themes.ts +171 -0
- package/src/components/SyntaxHighlighter/types.ts +5 -0
- package/src/components/Table/Table.scss +68 -0
- package/src/components/Table/Table.tsx +43 -0
- package/src/components/TableColumnSetup/TableColumnSetup.tsx +33 -0
- package/src/components/TableSkeleton/TableSkeleton.scss +57 -0
- package/src/components/TableSkeleton/TableSkeleton.tsx +51 -0
- package/src/components/TableWithControlsLayout/TableWithControlsLayout.scss +83 -0
- package/src/components/TableWithControlsLayout/TableWithControlsLayout.tsx +89 -0
- package/src/components/TableWithControlsLayout/useTableScroll.ts +117 -0
- package/src/components/TabletIcon/TabletIcon.scss +17 -0
- package/src/components/TabletIcon/TabletIcon.tsx +18 -0
- package/src/components/TabletNameWrapper/TabletNameWrapper.scss +3 -0
- package/src/components/TabletNameWrapper/TabletNameWrapper.tsx +20 -0
- package/src/components/TabletState/TabletState.tsx +12 -0
- package/src/components/TabletsStatistic/TabletsStatistic.scss +47 -0
- package/src/components/TabletsStatistic/TabletsStatistic.tsx +48 -0
- package/src/components/TabletsStatistic/index.ts +1 -0
- package/src/components/Tags/Tags.scss +5 -0
- package/src/components/Tags/Tags.tsx +23 -0
- package/src/components/Tags/index.ts +1 -0
- package/src/components/TenantNameWrapper/TenantNameWrapper.scss +24 -0
- package/src/components/TenantNameWrapper/TenantNameWrapper.tsx +244 -0
- package/src/components/TenantNameWrapper/i18n/en.json +9 -0
- package/src/components/TenantNameWrapper/i18n/index.ts +7 -0
- package/src/components/TenantNameWrapper/utils.ts +19 -0
- package/src/components/TimeFrameDropdown/TimeFrameDropdown.tsx +68 -0
- package/src/components/TimeFrameDropdown/i18n/en.json +6 -0
- package/src/components/TimeFrameDropdown/i18n/index.ts +7 -0
- package/src/components/TitleWithHelpmark/TitleWithHelpmark.tsx +28 -0
- package/src/components/TooltipsContent/NodeEndpointsTooltipContent/NodeEndpointsTooltipContent.tsx +93 -0
- package/src/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/en.json +7 -0
- package/src/components/TooltipsContent/NodeEndpointsTooltipContent/i18n/index.ts +7 -0
- package/src/components/TooltipsContent/PoolTooltipContent/PoolTooltipContent.tsx +23 -0
- package/src/components/TooltipsContent/TabletTooltipContent/TabletTooltipContent.tsx +35 -0
- package/src/components/TooltipsContent/index.ts +3 -0
- package/src/components/TruncatedQuery/TruncatedQuery.scss +20 -0
- package/src/components/TruncatedQuery/TruncatedQuery.tsx +66 -0
- package/src/components/UptimeFIlter/UptimeFilter.tsx +22 -0
- package/src/components/UptimeFIlter/index.ts +1 -0
- package/src/components/UptimeViewer/UptimeViewer.tsx +83 -0
- package/src/components/UptimeViewer/i18n/en.json +5 -0
- package/src/components/UptimeViewer/i18n/index.ts +7 -0
- package/src/components/UsageLabel/UsageLabel.tsx +14 -0
- package/src/components/User/StaffCard.tsx +12 -0
- package/src/components/User/User.scss +16 -0
- package/src/components/User/User.tsx +22 -0
- package/src/components/VDisk/VDisk.scss +21 -0
- package/src/components/VDisk/VDisk.tsx +285 -0
- package/src/components/VDisk/VDiskWithDonorsStack.tsx +125 -0
- package/src/components/VDisk/i18n/en.json +8 -0
- package/src/components/VDisk/i18n/index.ts +7 -0
- package/src/components/VDiskInfo/VDiskInfo.scss +7 -0
- package/src/components/VDiskInfo/VDiskInfo.tsx +375 -0
- package/src/components/VDiskInfo/getVDiskCapacityColumns.tsx +83 -0
- package/src/components/VDiskInfo/i18n/en.json +39 -0
- package/src/components/VDiskInfo/i18n/index.ts +7 -0
- package/src/components/VDiskPopup/VDiskPopup.scss +12 -0
- package/src/components/VDiskPopup/VDiskPopup.tsx +549 -0
- package/src/components/VDiskPopup/i18n/en.json +26 -0
- package/src/components/VDiskPopup/i18n/index.ts +7 -0
- package/src/components/VersionsBar/VersionsBar.scss +86 -0
- package/src/components/VersionsBar/VersionsBar.tsx +235 -0
- package/src/components/VersionsBar/i18n/en.json +8 -0
- package/src/components/VersionsBar/i18n/index.ts +7 -0
- package/src/components/YDBDefinitionList/YDBDefinitionList.scss +11 -0
- package/src/components/YDBDefinitionList/YDBDefinitionList.tsx +171 -0
- package/src/components/YDBDefinitionList/formatters/table.ts +51 -0
- package/src/components/YDBDefinitionList/i18n/en.json +3 -0
- package/src/components/YDBDefinitionList/i18n/index.ts +7 -0
- package/src/components/YDBDefinitionList/utils.ts +58 -0
- package/src/components/YQLCodePreview/YQLCodePreview.scss +26 -0
- package/src/components/YQLCodePreview/YQLCodePreview.tsx +31 -0
- package/src/components/capacityMetricsColumns/columns.tsx +118 -0
- package/src/components/capacityMetricsColumns/constants.ts +58 -0
- package/src/components/capacityMetricsColumns/formatters.ts +11 -0
- package/src/components/capacityMetricsColumns/i18n/en.json +15 -0
- package/src/components/capacityMetricsColumns/i18n/index.ts +7 -0
- package/src/components/nodesColumns/NodesColumns.scss +7 -0
- package/src/components/nodesColumns/columns.tsx +626 -0
- package/src/components/nodesColumns/constants.ts +293 -0
- package/src/components/nodesColumns/i18n/en.json +39 -0
- package/src/components/nodesColumns/i18n/index.ts +7 -0
- package/src/components/nodesColumns/types.ts +13 -0
- package/src/components/nodesColumns/utils.ts +13 -0
- package/src/components/slots/SlotMap.ts +52 -0
- package/src/components/slots/createSlot.ts +10 -0
- package/src/components/slots/index.ts +2 -0
- package/src/components/slots/types.ts +20 -0
- package/src/components/slots/useSlots.ts +17 -0
- package/src/components/slots/utils.ts +15 -0
- package/src/containers/App/App.scss +154 -0
- package/src/containers/App/App.tsx +69 -0
- package/src/containers/App/AppTitleContext.tsx +24 -0
- package/src/containers/App/Content.tsx +313 -0
- package/src/containers/App/NavigationWrapper.tsx +57 -0
- package/src/containers/App/Providers.tsx +63 -0
- package/src/containers/App/SettingsBootstrap.tsx +70 -0
- package/src/containers/App/appSlots.tsx +55 -0
- package/src/containers/App/index.ts +3 -0
- package/src/containers/App/legacyRedirects.ts +25 -0
- package/src/containers/AppWithClusters/AppWithClusters.tsx +59 -0
- package/src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.scss +15 -0
- package/src/containers/AppWithClusters/ExtendedCluster/ExtendedCluster.tsx +107 -0
- package/src/containers/AppWithClusters/ExtendedTenant/ExtendedTenant.tsx +27 -0
- package/src/containers/AppWithClusters/utils/useAdditionalTenantsProps.tsx +87 -0
- package/src/containers/AsideNavigation/AsideNavigation.scss +47 -0
- package/src/containers/AsideNavigation/AsideNavigation.tsx +242 -0
- package/src/containers/AsideNavigation/InformationPopup/InformationPopup.scss +105 -0
- package/src/containers/AsideNavigation/InformationPopup/InformationPopup.tsx +67 -0
- package/src/containers/AsideNavigation/InformationPopup/index.ts +1 -0
- package/src/containers/AsideNavigation/InformationPopup/types.ts +13 -0
- package/src/containers/AsideNavigation/Navigation.scss +200 -0
- package/src/containers/AsideNavigation/Navigation.tsx +219 -0
- package/src/containers/AsideNavigation/SsoUserIcon/SsoUserIcon.tsx +7 -0
- package/src/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.scss +28 -0
- package/src/containers/AsideNavigation/YdbInternalUser/YdbInternalUser.tsx +83 -0
- package/src/containers/AsideNavigation/hooks/useHotkeysPanel.tsx +138 -0
- package/src/containers/AsideNavigation/i18n/en.json +31 -0
- package/src/containers/AsideNavigation/i18n/index.ts +7 -0
- package/src/containers/Authentication/Authentication.scss +100 -0
- package/src/containers/Authentication/Authentication.tsx +261 -0
- package/src/containers/Authentication/i18n/en.json +7 -0
- package/src/containers/Authentication/i18n/index.ts +7 -0
- package/src/containers/Authentication/utils.ts +79 -0
- package/src/containers/Cluster/Cluster.scss +88 -0
- package/src/containers/Cluster/Cluster.tsx +373 -0
- package/src/containers/Cluster/ClusterDrawerHealthcheck.tsx +106 -0
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.scss +92 -0
- package/src/containers/Cluster/ClusterInfo/ClusterInfo.tsx +162 -0
- package/src/containers/Cluster/ClusterInfo/components/DiskGroupsStatsBars/DiskGroupsStats.tsx +81 -0
- package/src/containers/Cluster/ClusterInfo/shared.ts +3 -0
- package/src/containers/Cluster/ClusterOverview/ClusterOverview.scss +60 -0
- package/src/containers/Cluster/ClusterOverview/ClusterOverview.tsx +195 -0
- package/src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.scss +123 -0
- package/src/containers/Cluster/ClusterOverview/components/BridgeInfoTable.tsx +323 -0
- package/src/containers/Cluster/ClusterOverview/components/ClusterMetricsCard.tsx +99 -0
- package/src/containers/Cluster/ClusterOverview/components/ClusterMetricsCores.tsx +37 -0
- package/src/containers/Cluster/ClusterOverview/components/ClusterMetricsMemory.tsx +37 -0
- package/src/containers/Cluster/ClusterOverview/components/ClusterMetricsNetwork.tsx +40 -0
- package/src/containers/Cluster/ClusterOverview/components/ClusterMetricsStorage.tsx +49 -0
- package/src/containers/Cluster/ClusterOverview/shared.ts +14 -0
- package/src/containers/Cluster/i18n/en.json +61 -0
- package/src/containers/Cluster/i18n/index.ts +7 -0
- package/src/containers/Cluster/utils.tsx +77 -0
- package/src/containers/ClusterModeGuard/ClusterModeGuard.tsx +16 -0
- package/src/containers/Clusters/ClusterDrawerHealthcheck.tsx +68 -0
- package/src/containers/Clusters/Clusters.scss +70 -0
- package/src/containers/Clusters/Clusters.tsx +325 -0
- package/src/containers/Clusters/columns.tsx +523 -0
- package/src/containers/Clusters/constants.ts +83 -0
- package/src/containers/Clusters/i18n/en.json +45 -0
- package/src/containers/Clusters/i18n/index.ts +7 -0
- package/src/containers/Clusters/shared.ts +3 -0
- package/src/containers/Clusters/utils.ts +32 -0
- package/src/containers/Configs/Configs.scss +24 -0
- package/src/containers/Configs/Configs.tsx +86 -0
- package/src/containers/Configs/components/Config/Config.scss +18 -0
- package/src/containers/Configs/components/Config/Config.tsx +48 -0
- package/src/containers/Configs/components/FeatureFlags/FeatureFlags.scss +8 -0
- package/src/containers/Configs/components/FeatureFlags/FeatureFlags.tsx +128 -0
- package/src/containers/Configs/components/Startup/Startup.tsx +49 -0
- package/src/containers/Configs/i18n/en.json +19 -0
- package/src/containers/Configs/i18n/index.ts +7 -0
- package/src/containers/Configs/types.ts +24 -0
- package/src/containers/Configs/useConfigsQueryParams.ts +61 -0
- package/src/containers/GetUserWrapper/GetUserWrapper.tsx +71 -0
- package/src/containers/GetUserWrapper/useHandleVisibilityChange.ts +40 -0
- package/src/containers/Header/BreadcrumbLink.tsx +39 -0
- package/src/containers/Header/ClusterRightControls.tsx +92 -0
- package/src/containers/Header/ClustersHomeControls.tsx +19 -0
- package/src/containers/Header/DatabaseRightControls.tsx +69 -0
- package/src/containers/Header/GlobalRightControls.tsx +21 -0
- package/src/containers/Header/Header.scss +64 -0
- package/src/containers/Header/Header.tsx +99 -0
- package/src/containers/Header/HeaderActionsMenu.tsx +133 -0
- package/src/containers/Header/HeaderBreadcrumbs.tsx +38 -0
- package/src/containers/Header/HeaderLeftControls.tsx +55 -0
- package/src/containers/Header/HeaderRightControls.tsx +78 -0
- package/src/containers/Header/MonitoringControl.tsx +20 -0
- package/src/containers/Header/breadcrumbs.tsx +313 -0
- package/src/containers/Header/constants.ts +3 -0
- package/src/containers/Header/hooks/useClusterData.ts +62 -0
- package/src/containers/Header/hooks/useDatabaseData.ts +59 -0
- package/src/containers/Header/hooks/useHeaderBreadcrumbs.ts +74 -0
- package/src/containers/Header/hooks/useHeaderClusterLinks.ts +13 -0
- package/src/containers/Header/hooks/useHeaderData.ts +86 -0
- package/src/containers/Header/hooks/useHeaderPageContext.ts +64 -0
- package/src/containers/Header/i18n/en.json +26 -0
- package/src/containers/Header/i18n/index.ts +7 -0
- package/src/containers/Heatmap/Heatmap.scss +109 -0
- package/src/containers/Heatmap/Heatmap.tsx +233 -0
- package/src/containers/Heatmap/HeatmapCanvas/HeatmapCanvas.tsx +218 -0
- package/src/containers/Heatmap/Histogram/Histogram.scss +71 -0
- package/src/containers/Heatmap/Histogram/Histogram.tsx +214 -0
- package/src/containers/Heatmap/Histogram/i18n/en.json +5 -0
- package/src/containers/Heatmap/Histogram/i18n/index.ts +7 -0
- package/src/containers/Heatmap/util.js +110 -0
- package/src/containers/HomePage/HomePage.scss +30 -0
- package/src/containers/HomePage/HomePage.tsx +276 -0
- package/src/containers/HomePage/i18n/en.json +6 -0
- package/src/containers/HomePage/i18n/index.ts +7 -0
- package/src/containers/HomePage/useDatabasesPageEnvironment.ts +65 -0
- package/src/containers/HomePage/useHomePageTab.tsx +9 -0
- package/src/containers/Node/Node.scss +39 -0
- package/src/containers/Node/Node.tsx +333 -0
- package/src/containers/Node/NodeNetwork/NodeNetwork.tsx +84 -0
- package/src/containers/Node/NodeNetwork/NodeNetworkControls/NodeNetworkControls.tsx +39 -0
- package/src/containers/Node/NodeNetwork/NodeNetworkControls/NodeNetworkControlsWithTableState.tsx +26 -0
- package/src/containers/Node/NodeNetwork/NodeNetworkTable.tsx +51 -0
- package/src/containers/Node/NodeNetwork/columns.ts +91 -0
- package/src/containers/Node/NodeNetwork/constants.ts +76 -0
- package/src/containers/Node/NodeNetwork/helpers/getNodePeers.ts +47 -0
- package/src/containers/Node/NodeNetwork/helpers/nodeNetworkMapper.ts +36 -0
- package/src/containers/Node/NodeNetwork/i18n/en.json +8 -0
- package/src/containers/Node/NodeNetwork/i18n/index.ts +7 -0
- package/src/containers/Node/NodePages.ts +68 -0
- package/src/containers/Node/NodeStructure/NodeStructure.scss +155 -0
- package/src/containers/Node/NodeStructure/NodeStructure.tsx +121 -0
- package/src/containers/Node/NodeStructure/PDiskTitleBadge.tsx +18 -0
- package/src/containers/Node/NodeStructure/Pdisk.tsx +274 -0
- package/src/containers/Node/Threads/CpuUsageBar/CpuUsageBar.scss +7 -0
- package/src/containers/Node/Threads/CpuUsageBar/CpuUsageBar.tsx +38 -0
- package/src/containers/Node/Threads/ThreadStatesBar/ThreadStatesBar.scss +10 -0
- package/src/containers/Node/Threads/ThreadStatesBar/ThreadStatesBar.tsx +105 -0
- package/src/containers/Node/Threads/Threads.tsx +46 -0
- package/src/containers/Node/Threads/columns.tsx +60 -0
- package/src/containers/Node/Threads/i18n/en.json +11 -0
- package/src/containers/Node/Threads/i18n/index.ts +7 -0
- package/src/containers/Node/i18n/en.json +15 -0
- package/src/containers/Node/i18n/index.ts +7 -0
- package/src/containers/Nodes/Nodes.scss +18 -0
- package/src/containers/Nodes/Nodes.tsx +114 -0
- package/src/containers/Nodes/NodesControls/NodesControls.tsx +111 -0
- package/src/containers/Nodes/NodesTable.tsx +107 -0
- package/src/containers/Nodes/PaginatedNodes/GroupedNodesComponent.tsx +233 -0
- package/src/containers/Nodes/PaginatedNodes/NodesComponent.tsx +96 -0
- package/src/containers/Nodes/PaginatedNodes/NodesControlsWithTableState.tsx +28 -0
- package/src/containers/Nodes/PaginatedNodes/PaginatedNodes.tsx +74 -0
- package/src/containers/Nodes/PaginatedNodes/index.ts +1 -0
- package/src/containers/Nodes/PeerRoleFilter/PeerRoleFilter.tsx +24 -0
- package/src/containers/Nodes/PeerRoleFilter/utils.tsx +26 -0
- package/src/containers/Nodes/columns/columns.tsx +49 -0
- package/src/containers/Nodes/columns/constants.ts +62 -0
- package/src/containers/Nodes/columns/hooks.ts +24 -0
- package/src/containers/Nodes/getNodes.ts +70 -0
- package/src/containers/Nodes/i18n/en.json +17 -0
- package/src/containers/Nodes/i18n/index.ts +7 -0
- package/src/containers/Nodes/shared.tsx +10 -0
- package/src/containers/Nodes/useNodesPageQueryParams.ts +92 -0
- package/src/containers/Operations/Operations.scss +5 -0
- package/src/containers/Operations/Operations.tsx +119 -0
- package/src/containers/Operations/OperationsControls.tsx +44 -0
- package/src/containers/Operations/columns.tsx +266 -0
- package/src/containers/Operations/constants.ts +53 -0
- package/src/containers/Operations/i18n/en.json +40 -0
- package/src/containers/Operations/i18n/index.ts +7 -0
- package/src/containers/Operations/shared.ts +3 -0
- package/src/containers/Operations/useOperationsInfiniteQuery.ts +124 -0
- package/src/containers/Operations/useOperationsQueryParams.ts +86 -0
- package/src/containers/Operations/utils.ts +273 -0
- package/src/containers/PDiskPage/DecommissionButton/DecommissionButton.scss +7 -0
- package/src/containers/PDiskPage/DecommissionButton/DecommissionButton.tsx +169 -0
- package/src/containers/PDiskPage/DecommissionLabel/DecommissionLabel.tsx +39 -0
- package/src/containers/PDiskPage/PDiskPage.scss +50 -0
- package/src/containers/PDiskPage/PDiskPage.tsx +288 -0
- package/src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.scss +63 -0
- package/src/containers/PDiskPage/PDiskSpaceDistribution/PDiskSpaceDistribution.tsx +313 -0
- package/src/containers/PDiskPage/PDiskSpaceDistribution/utils.ts +13 -0
- package/src/containers/PDiskPage/i18n/en.json +41 -0
- package/src/containers/PDiskPage/i18n/index.ts +7 -0
- package/src/containers/Storage/Disks/Disks.scss +67 -0
- package/src/containers/Storage/Disks/Disks.tsx +188 -0
- package/src/containers/Storage/Disks/calculateCompactVDiskWidths.ts +62 -0
- package/src/containers/Storage/Disks/constants.ts +22 -0
- package/src/containers/Storage/PDisk/PDisk.scss +45 -0
- package/src/containers/Storage/PDisk/PDisk.tsx +301 -0
- package/src/containers/Storage/PDisk/PDiskVDisks.tsx +65 -0
- package/src/containers/Storage/PDisk/i18n/en.json +6 -0
- package/src/containers/Storage/PDisk/i18n/index.ts +7 -0
- package/src/containers/Storage/PDisk/index.ts +1 -0
- package/src/containers/Storage/PDisks/PDisks.scss +13 -0
- package/src/containers/Storage/PDisks/PDisks.tsx +56 -0
- package/src/containers/Storage/PaginatedStorage.tsx +54 -0
- package/src/containers/Storage/PaginatedStorageGroups/GroupedStorageGroupsComponent.tsx +200 -0
- package/src/containers/Storage/PaginatedStorageGroups/PaginatedStorageGroups.tsx +40 -0
- package/src/containers/Storage/PaginatedStorageGroups/StorageGroupsComponent.tsx +68 -0
- package/src/containers/Storage/PaginatedStorageGroups/StorageGroupsControls.tsx +167 -0
- package/src/containers/Storage/PaginatedStorageGroups/index.ts +1 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.scss +6 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/PaginatedStorageGroupsTable.tsx +132 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/StorageGroupsEmptyDataMessage.tsx +31 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/StorageGroupsColumns.scss +31 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/columns.tsx +392 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/constants.ts +332 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/hooks.ts +183 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/en.json +24 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/i18n/index.ts +7 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/columns/types.ts +18 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/getGroups.ts +65 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/i18n/en.json +7 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/i18n/index.ts +8 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/i18n/ru.json +7 -0
- package/src/containers/Storage/PaginatedStorageGroupsTable/index.tsx +1 -0
- package/src/containers/Storage/PaginatedStorageNodes/GroupedStorageNodesComponent.tsx +215 -0
- package/src/containers/Storage/PaginatedStorageNodes/PaginatedStorageNodes.tsx +44 -0
- package/src/containers/Storage/PaginatedStorageNodes/StorageNodesComponent.tsx +72 -0
- package/src/containers/Storage/PaginatedStorageNodes/StorageNodesControls.tsx +121 -0
- package/src/containers/Storage/PaginatedStorageNodes/index.ts +1 -0
- package/src/containers/Storage/PaginatedStorageNodes/useStorageNodesColumnsToSelect.ts +23 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/PaginatedStorageNodesTable.tsx +116 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/StorageNodes.scss +5 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/StorageNodesEmptyDataMessage.tsx +45 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/StorageNodesColumns.scss +17 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/columns.tsx +100 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/constants.ts +62 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/hooks.ts +106 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/columns/types.ts +14 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/getNodes.ts +70 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/i18n/en.json +8 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/i18n/index.ts +8 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/i18n/ru.json +8 -0
- package/src/containers/Storage/PaginatedStorageNodesTable/index.tsx +1 -0
- package/src/containers/Storage/Storage.scss +18 -0
- package/src/containers/Storage/StorageExpertModePanel/StorageExpertModePanel.scss +49 -0
- package/src/containers/Storage/StorageExpertModePanel/StorageExpertModePanel.tsx +151 -0
- package/src/containers/Storage/StorageExpertModePanel/components/AllLegend.tsx +165 -0
- package/src/containers/Storage/StorageExpertModePanel/components/CompactionLegend.tsx +7 -0
- package/src/containers/Storage/StorageExpertModePanel/components/FrontQueuesLegend.tsx +54 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskDecommitLegend.tsx +47 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskDeviceLegend.tsx +7 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskDriveLegend.tsx +48 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskMaintenanceLegend.tsx +54 -0
- package/src/containers/Storage/StorageExpertModePanel/components/PDiskStateLegend.tsx +56 -0
- package/src/containers/Storage/StorageExpertModePanel/components/SpaceLegend.scss +115 -0
- package/src/containers/Storage/StorageExpertModePanel/components/SpaceLegend.tsx +111 -0
- package/src/containers/Storage/StorageExpertModePanel/components/StateLegend.tsx +56 -0
- package/src/containers/Storage/StorageExpertModePanel/components/StatusPairLegend.tsx +61 -0
- package/src/containers/Storage/StorageExpertModePanel/components/getSpaceLegendSelection.ts +52 -0
- package/src/containers/Storage/StorageExpertModePanel/components/index.ts +10 -0
- package/src/containers/Storage/StorageExpertModePanel/components/useSpaceLegendSelection.ts +37 -0
- package/src/containers/Storage/StorageExpertModePanel/constants.ts +25 -0
- package/src/containers/Storage/StorageExpertModePanel/i18n/en.json +69 -0
- package/src/containers/Storage/StorageExpertModePanel/i18n/index.ts +7 -0
- package/src/containers/Storage/StorageTypeFilter/StorageTypeFilter.tsx +29 -0
- package/src/containers/Storage/StorageVisibleEntitiesFilter/StorageVisibleEntitiesFilter.tsx +33 -0
- package/src/containers/Storage/TableGroup/TableGroup.scss +50 -0
- package/src/containers/Storage/TableGroup/TableGroup.tsx +65 -0
- package/src/containers/Storage/TableGroup/useExpandedTableGroups.ts +34 -0
- package/src/containers/Storage/VDisks/VDisks.scss +28 -0
- package/src/containers/Storage/VDisks/VDisks.tsx +47 -0
- package/src/containers/Storage/constants.ts +4 -0
- package/src/containers/Storage/i18n/en.json +14 -0
- package/src/containers/Storage/i18n/index.ts +7 -0
- package/src/containers/Storage/shared.tsx +5 -0
- package/src/containers/Storage/types.ts +16 -0
- package/src/containers/Storage/useStoragePDiskDisplayStateGetter.ts +337 -0
- package/src/containers/Storage/useStorageQueryParams.ts +373 -0
- package/src/containers/Storage/useStorageVDiskDisplayStateGetter.ts +189 -0
- package/src/containers/Storage/utils/index.ts +137 -0
- package/src/containers/Storage/utils/useStorageColumnsSettings.ts +78 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.scss +37 -0
- package/src/containers/StorageGroupPage/StorageGroupPage.tsx +146 -0
- package/src/containers/StorageGroupPage/i18n/en.json +5 -0
- package/src/containers/StorageGroupPage/i18n/index.ts +7 -0
- package/src/containers/Tablet/Tablet.scss +19 -0
- package/src/containers/Tablet/Tablet.tsx +250 -0
- package/src/containers/Tablet/components/TabletControls/TabletControls.tsx +93 -0
- package/src/containers/Tablet/components/TabletControls/index.ts +1 -0
- package/src/containers/Tablet/components/TabletInfo/TabletInfo.scss +12 -0
- package/src/containers/Tablet/components/TabletInfo/TabletInfo.tsx +168 -0
- package/src/containers/Tablet/components/TabletInfo/i18n/en.json +18 -0
- package/src/containers/Tablet/components/TabletInfo/i18n/index.ts +7 -0
- package/src/containers/Tablet/components/TabletInfo/index.ts +1 -0
- package/src/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.scss +20 -0
- package/src/containers/Tablet/components/TabletStorageInfo/TabletStorageInfo.tsx +34 -0
- package/src/containers/Tablet/components/TabletStorageInfo/columns.tsx +100 -0
- package/src/containers/Tablet/components/TabletStorageInfo/i18n/en.json +9 -0
- package/src/containers/Tablet/components/TabletStorageInfo/i18n/index.ts +7 -0
- package/src/containers/Tablet/components/TabletStorageInfo/shared.ts +3 -0
- package/src/containers/Tablet/components/TabletStorageInfo/types.ts +6 -0
- package/src/containers/Tablet/components/TabletStorageInfo/utils.ts +36 -0
- package/src/containers/Tablet/components/TabletTable/TabletTable.tsx +107 -0
- package/src/containers/Tablet/components/TabletTable/index.ts +1 -0
- package/src/containers/Tablet/i18n/en.json +27 -0
- package/src/containers/Tablet/i18n/index.ts +7 -0
- package/src/containers/Tablet/index.ts +1 -0
- package/src/containers/Tablet/utils.ts +19 -0
- package/src/containers/Tablets/Tablets.tsx +133 -0
- package/src/containers/Tablets/TabletsTable.tsx +303 -0
- package/src/containers/Tablets/i18n/en.json +17 -0
- package/src/containers/Tablets/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/AccessRights.scss +74 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/AccessRights.tsx +73 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/components/ChangeOwnerDialog.tsx +150 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/components/Owner.tsx +66 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/components/RightsTable/Actions.tsx +89 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/components/RightsTable/RevokeAllRightsDialog.tsx +156 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/components/RightsTable/RightsTable.tsx +35 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/components/RightsTable/columns.tsx +78 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/i18n/en.json +22 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/AccessRights/shared.ts +3 -0
- package/src/containers/Tenant/Diagnostics/Consumers/Consumers.scss +33 -0
- package/src/containers/Tenant/Diagnostics/Consumers/Consumers.tsx +107 -0
- package/src/containers/Tenant/Diagnostics/Consumers/Headers/Headers.scss +5 -0
- package/src/containers/Tenant/Diagnostics/Consumers/Headers/Headers.tsx +17 -0
- package/src/containers/Tenant/Diagnostics/Consumers/Headers/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.scss +33 -0
- package/src/containers/Tenant/Diagnostics/Consumers/TopicStats/ConsumersTopicStats.tsx +42 -0
- package/src/containers/Tenant/Diagnostics/Consumers/TopicStats/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Consumers/columns/Columns.scss +5 -0
- package/src/containers/Tenant/Diagnostics/Consumers/columns/columns.tsx +101 -0
- package/src/containers/Tenant/Diagnostics/Consumers/columns/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Consumers/i18n/en.json +7 -0
- package/src/containers/Tenant/Diagnostics/Consumers/i18n/index.ts +8 -0
- package/src/containers/Tenant/Diagnostics/Consumers/i18n/ru.json +7 -0
- package/src/containers/Tenant/Diagnostics/Consumers/utils/constants.ts +23 -0
- package/src/containers/Tenant/Diagnostics/Describe/Describe.scss +16 -0
- package/src/containers/Tenant/Diagnostics/Describe/Describe.tsx +60 -0
- package/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.scss +23 -0
- package/src/containers/Tenant/Diagnostics/DetailedOverview/DetailedOverview.tsx +54 -0
- package/src/containers/Tenant/Diagnostics/Diagnostics.scss +44 -0
- package/src/containers/Tenant/Diagnostics/Diagnostics.tsx +124 -0
- package/src/containers/Tenant/Diagnostics/DiagnosticsPages.ts +385 -0
- package/src/containers/Tenant/Diagnostics/DiagnosticsTabs/DiagnosticsTabs.scss +24 -0
- package/src/containers/Tenant/Diagnostics/DiagnosticsTabs/DiagnosticsTabs.tsx +60 -0
- package/src/containers/Tenant/Diagnostics/HotKeys/HotKeys.scss +21 -0
- package/src/containers/Tenant/Diagnostics/HotKeys/HotKeys.tsx +145 -0
- package/src/containers/Tenant/Diagnostics/HotKeys/i18n/en.json +6 -0
- package/src/containers/Tenant/Diagnostics/HotKeys/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Network/Network.scss +153 -0
- package/src/containers/Tenant/Diagnostics/Network/Network.tsx +187 -0
- package/src/containers/Tenant/Diagnostics/Network/NetworkPlaceholder/NetworkPlaceholder.tsx +19 -0
- package/src/containers/Tenant/Diagnostics/Network/NetworkWrapper.tsx +41 -0
- package/src/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.scss +54 -0
- package/src/containers/Tenant/Diagnostics/Network/NodeNetwork/NodeNetwork.tsx +75 -0
- package/src/containers/Tenant/Diagnostics/Network/NodeTooltipPopup/NodeTooltipPopup.tsx +62 -0
- package/src/containers/Tenant/Diagnostics/Network/Nodes/Nodes.tsx +308 -0
- package/src/containers/Tenant/Diagnostics/Network/i18n/en.json +11 -0
- package/src/containers/Tenant/Diagnostics/Network/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Network/utils.ts +20 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/AsyncReplicationInfo.tsx +63 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/Credentials.tsx +27 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/i18n/en.json +6 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.scss +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/AsyncReplicationPaths.tsx +63 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/i18n/en.json +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/AsyncReplicationPaths/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/ChangefeedInfo.tsx +38 -0
- package/src/containers/Tenant/Diagnostics/Overview/ChangefeedInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/DatabaseInfo/DatabaseInfo.scss +21 -0
- package/src/containers/Tenant/Diagnostics/Overview/DatabaseInfo/DatabaseInfo.tsx +129 -0
- package/src/containers/Tenant/Diagnostics/Overview/DatabaseInfo/i18n/en.json +9 -0
- package/src/containers/Tenant/Diagnostics/Overview/DatabaseInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/DatabaseInfo/utils.ts +10 -0
- package/src/containers/Tenant/Diagnostics/Overview/DefaultEntityInfo/DefaultEntityInfo.scss +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/DefaultEntityInfo/DefaultEntityInfo.tsx +19 -0
- package/src/containers/Tenant/Diagnostics/Overview/DefaultEntityInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/Overview.tsx +147 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.scss +5 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfo.tsx +47 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/SchemaObjectInfoContainer.tsx +85 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/i18n/en.json +34 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/index.ts +3 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSchemaObjectInfo.tsx +136 -0
- package/src/containers/Tenant/Diagnostics/Overview/SchemaObjectInfo/prepareSpecificSchemaObjectInfo.tsx +104 -0
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.scss +5 -0
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/StreamingQueryInfo.tsx +124 -0
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/en.json +5 -0
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/StreamingQueryInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/CompactTableAction/CompactTableAction.scss +81 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/CompactTableAction/CompactTableAction.tsx +468 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/ManagePartitioningDialog.scss +32 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/ManagePartitioningDialog.tsx +364 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/SplitUnitSelect.scss +14 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/SplitUnitSelect.tsx +79 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/constants.ts +29 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/i18n/en.json +23 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/types.ts +28 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/useManagePartitionForm.tsx +27 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/ManagePartitioningDialog/utils.ts +160 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/PartitionsProgress/PartitionsProgress.scss +57 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/PartitionsProgress/PartitionsProgress.tsx +172 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/PartitionsProgress/helpers.ts +41 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/PartitionsProgress/i18n/en.json +11 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/PartitionsProgress/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/PartitionsProgress/utils.ts +116 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.scss +74 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/TableInfo.tsx +233 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/components/TableInfoSection.tsx +36 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/constants.ts +6 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTableCompaction.ts +74 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/hooks/useTablePartitioning.ts +56 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/en.json +60 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/index.ts +109 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareColumnTableInfo.tsx +50 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareCommonTableInfo.ts +145 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/preparePartitionConfig.ts +66 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareRowTableInfo.tsx +99 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/prepareTTL.ts +21 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/prepareTableInfo/renderHelpers.tsx +82 -0
- package/src/containers/Tenant/Diagnostics/Overview/TableInfo/utils.ts +39 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicInfo/TopicInfo.tsx +39 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.scss +39 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicStats/TopicStats.tsx +116 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicStats/i18n/en.json +6 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicStats/i18n/index.ts +8 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicStats/i18n/ru.json +6 -0
- package/src/containers/Tenant/Diagnostics/Overview/TopicStats/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/TransferInfo/Credentials.tsx +30 -0
- package/src/containers/Tenant/Diagnostics/Overview/TransferInfo/TransferInfo.scss +5 -0
- package/src/containers/Tenant/Diagnostics/Overview/TransferInfo/TransferInfo.tsx +149 -0
- package/src/containers/Tenant/Diagnostics/Overview/TransferInfo/i18n/en.json +10 -0
- package/src/containers/Tenant/Diagnostics/Overview/TransferInfo/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Overview/TransferInfo/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/utils/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Overview/utils/prepareTopicSchemaInfo.ts +44 -0
- package/src/containers/Tenant/Diagnostics/Partitions/Headers/Headers.scss +21 -0
- package/src/containers/Tenant/Diagnostics/Partitions/Headers/Headers.tsx +51 -0
- package/src/containers/Tenant/Diagnostics/Partitions/Headers/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Partitions/Partitions.scss +33 -0
- package/src/containers/Tenant/Diagnostics/Partitions/Partitions.tsx +140 -0
- package/src/containers/Tenant/Diagnostics/Partitions/PartitionsControls/PartitionsControls.tsx +131 -0
- package/src/containers/Tenant/Diagnostics/Partitions/columns/Columns.scss +25 -0
- package/src/containers/Tenant/Diagnostics/Partitions/columns/CommittedOffsetCell.tsx +216 -0
- package/src/containers/Tenant/Diagnostics/Partitions/columns/columns.tsx +282 -0
- package/src/containers/Tenant/Diagnostics/Partitions/columns/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/Partitions/i18n/en.json +32 -0
- package/src/containers/Tenant/Diagnostics/Partitions/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/Partitions/utils/constants.ts +86 -0
- package/src/containers/Tenant/Diagnostics/Partitions/utils/index.ts +27 -0
- package/src/containers/Tenant/Diagnostics/Partitions/utils/showMoveOffsetConfirmation.tsx +34 -0
- package/src/containers/Tenant/Diagnostics/Partitions/utils/showSpecifyOffsetConfirmation.tsx +160 -0
- package/src/containers/Tenant/Diagnostics/Partitions/utils/types.ts +6 -0
- package/src/containers/Tenant/Diagnostics/Partitions/utils/useGetPartitionsColumns.ts +62 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/MediaSectionSummary.scss +43 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/MediaSectionSummary.tsx +72 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/StorageUsage.scss +6 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/StorageUsage.tsx +136 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/StorageUsageSections.scss +9 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/StorageUsageSections.tsx +49 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/StorageUsageTable.scss +88 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/StorageUsageTable.tsx +241 -0
- package/src/containers/Tenant/Diagnostics/StorageUsage/storageUsageFormatters.ts +50 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/DefaultOverviewContent/defaultDashboardConfig.ts +39 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.scss +46 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/HealthcheckPreview.tsx +137 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/i18n/en.json +11 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/Healthcheck/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricPageSummary/MetricPageSummary.scss +51 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricPageSummary/MetricPageSummary.tsx +74 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/MetricsTabs.scss +226 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/MetricsTabs.tsx +103 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/components/CpuTab.tsx +53 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/components/MemoryTab.tsx +42 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/components/NetworkTab.tsx +42 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/components/PlaceholderTab.tsx +13 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/MetricsTabs/components/StorageTab.tsx +53 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/StatsWrapper/StatsWrapper.scss +14 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/StatsWrapper/StatsWrapper.tsx +41 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TabCard/MetricTabCard.tsx +78 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TabCard/ServerlessTabCard.tsx +60 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TabCard/TabCard.scss +44 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TenantCpu.tsx +83 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByCpu.tsx +77 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopNodesByLoad.tsx +83 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopQueries.tsx +49 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/TopShards.tsx +37 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantCpu/cpuDashboardConfig.ts +28 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.scss +10 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantDashboard/TenantDashboard.tsx +93 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/MemoryDetailsSection.scss +44 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/MemoryDetailsSection.tsx +72 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/MemorySegmentsList.tsx +75 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.scss +24 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TenantMemory.tsx +93 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/TopNodesByMemory.tsx +84 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantMemory/memoryDashboardConfig.ts +17 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TenantNetwork.scss +9 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TenantNetwork.tsx +61 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesByPing.tsx +48 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/TopNodesBySkew.tsx +48 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/columns.ts +53 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantNetwork/networkDashboardConfig.ts +22 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.scss +77 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverview.tsx +442 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantOverviewTableLayout.tsx +46 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorage.tsx +115 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageGroups.tsx +83 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageMode.tsx +27 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageNew.scss +54 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageNew.tsx +168 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageSegments.scss +128 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageSegments.tsx +428 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageSummaryCard.scss +193 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageSummaryCard.tsx +373 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageSummarySections.scss +3 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageSummarySections.tsx +334 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageTopUsageTable.scss +121 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TenantStorageTopUsageTable.tsx +236 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopGroups.tsx +89 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/TopTables.tsx +67 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/displayFormatters.ts +162 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/en.json +72 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/i18n/index.ts +8 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/storageDashboardConfig.ts +18 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/types.ts +20 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/useTenantStorageNewData.ts +38 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/TenantStorage/utils.ts +803 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/i18n/en.json +75 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/metricOverview.ts +206 -0
- package/src/containers/Tenant/Diagnostics/TenantOverview/utils.ts +3 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/QueriesTableWithDrawer.tsx +119 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/QueryDetails/NotFoundContainer.tsx +34 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/QueryDetails/QueryDetailsDrawerContent.tsx +83 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/RunningQueriesData.tsx +115 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.scss +64 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/TopQueries.tsx +85 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/TopQueriesData.tsx +184 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/columns/columns.tsx +214 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/columns/constants.ts +159 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/columns/i18n/en.json +21 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/columns/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/constants.ts +32 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/hooks/useRunningQueriesSort.ts +48 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/hooks/useScrollToSelected.ts +49 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/hooks/useSetSelectedTopQueryRowFromParams.ts +53 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/hooks/useSortParam.ts +66 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/hooks/useTopQueriesSort.ts +50 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/i18n/en.json +12 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/utils/generateShareableUrl.ts +32 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/utils/getTopQueryRowQueryParams.ts +19 -0
- package/src/containers/Tenant/Diagnostics/TopQueries/utils.ts +150 -0
- package/src/containers/Tenant/Diagnostics/TopShards/Filters/Filters.tsx +67 -0
- package/src/containers/Tenant/Diagnostics/TopShards/Filters/index.ts +1 -0
- package/src/containers/Tenant/Diagnostics/TopShards/TopShards.scss +8 -0
- package/src/containers/Tenant/Diagnostics/TopShards/TopShards.tsx +169 -0
- package/src/containers/Tenant/Diagnostics/TopShards/i18n/en.json +6 -0
- package/src/containers/Tenant/Diagnostics/TopShards/i18n/index.ts +8 -0
- package/src/containers/Tenant/Diagnostics/TopShards/i18n/ru.json +6 -0
- package/src/containers/Tenant/Diagnostics/TopShards/utils.ts +26 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicData.scss +34 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicData.tsx +378 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicDataControls/TopicDataControls.tsx +205 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/TopicMessageDetails.scss +62 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/TopicMessageDetails.tsx +166 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/components/TopicDataSection.tsx +37 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/components/TopicMessage.tsx +210 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/components/TopicMessageGeneralInfo.tsx +112 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/components/TopicMessageMetadata.tsx +25 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/components/fields.tsx +98 -0
- package/src/containers/Tenant/Diagnostics/TopicData/TopicMessageDetails/shared.ts +5 -0
- package/src/containers/Tenant/Diagnostics/TopicData/columns/Columns.scss +41 -0
- package/src/containers/Tenant/Diagnostics/TopicData/columns/columns.tsx +428 -0
- package/src/containers/Tenant/Diagnostics/TopicData/getData.ts +148 -0
- package/src/containers/Tenant/Diagnostics/TopicData/i18n/en.json +39 -0
- package/src/containers/Tenant/Diagnostics/TopicData/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/TopicData/useTopicDataQueryParams.ts +67 -0
- package/src/containers/Tenant/Diagnostics/TopicData/useTopicPagination.ts +69 -0
- package/src/containers/Tenant/Diagnostics/TopicData/useTopicPartitions.ts +90 -0
- package/src/containers/Tenant/Diagnostics/TopicData/useTopicProbeQuery.ts +85 -0
- package/src/containers/Tenant/Diagnostics/TopicData/useTopicScroll.ts +458 -0
- package/src/containers/Tenant/Diagnostics/TopicData/utils/constants.ts +67 -0
- package/src/containers/Tenant/Diagnostics/TopicData/utils/types.ts +54 -0
- package/src/containers/Tenant/Diagnostics/i18n/en.json +41 -0
- package/src/containers/Tenant/Diagnostics/i18n/index.ts +7 -0
- package/src/containers/Tenant/Diagnostics/shared.ts +3 -0
- package/src/containers/Tenant/Diagnostics/tabsContent.tsx +203 -0
- package/src/containers/Tenant/Diagnostics/useDiagnosticsPages.ts +79 -0
- package/src/containers/Tenant/EntityTitle/EntityTitle.tsx +23 -0
- package/src/containers/Tenant/GrantAccess/GrantAccess.scss +44 -0
- package/src/containers/Tenant/GrantAccess/GrantAccess.tsx +210 -0
- package/src/containers/Tenant/GrantAccess/components/Footer.tsx +58 -0
- package/src/containers/Tenant/GrantAccess/components/Rights.tsx +153 -0
- package/src/containers/Tenant/GrantAccess/components/RightsSectionSelector.tsx +55 -0
- package/src/containers/Tenant/GrantAccess/components/SubjectInput.tsx +109 -0
- package/src/containers/Tenant/GrantAccess/i18n/en.json +40 -0
- package/src/containers/Tenant/GrantAccess/i18n/index.ts +7 -0
- package/src/containers/Tenant/GrantAccess/shared.ts +69 -0
- package/src/containers/Tenant/GrantAccess/utils.ts +78 -0
- package/src/containers/Tenant/Healthcheck/Healthcheck.scss +155 -0
- package/src/containers/Tenant/Healthcheck/Healthcheck.tsx +232 -0
- package/src/containers/Tenant/Healthcheck/HealthcheckContext.ts +27 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawer.tsx +98 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckDrawerTitle.tsx +28 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckFilter.tsx +15 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssue.tsx +178 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/ComputeLocation.tsx +150 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/HealthcheckIssueDetails.tsx +97 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/IssueLocation.tsx +66 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/NodeInfo.tsx +39 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/PoolInfo.tsx +19 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/StorageLocation.tsx +187 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueDetails/utils.tsx +66 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssueTabs.tsx +77 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckIssues.tsx +79 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckRefresh.tsx +76 -0
- package/src/containers/Tenant/Healthcheck/components/HealthcheckView.tsx +70 -0
- package/src/containers/Tenant/Healthcheck/i18n/en.json +48 -0
- package/src/containers/Tenant/Healthcheck/i18n/index.ts +7 -0
- package/src/containers/Tenant/Healthcheck/shared.ts +55 -0
- package/src/containers/Tenant/Healthcheck/types.ts +27 -0
- package/src/containers/Tenant/Healthcheck/useHealthcheck.ts +97 -0
- package/src/containers/Tenant/Healthcheck/utils.ts +93 -0
- package/src/containers/Tenant/Info/View/View.tsx +23 -0
- package/src/containers/Tenant/ObjectGeneral/ObjectGeneral.scss +13 -0
- package/src/containers/Tenant/ObjectGeneral/ObjectGeneral.tsx +80 -0
- package/src/containers/Tenant/ObjectSummary/CreateDirectoryDialog/CreateDirectoryDialog.scss +65 -0
- package/src/containers/Tenant/ObjectSummary/CreateDirectoryDialog/CreateDirectoryDialog.tsx +158 -0
- package/src/containers/Tenant/ObjectSummary/ObjectSummary.scss +187 -0
- package/src/containers/Tenant/ObjectSummary/ObjectSummary.tsx +550 -0
- package/src/containers/Tenant/ObjectSummary/ObjectTree.tsx +63 -0
- package/src/containers/Tenant/ObjectSummary/SchemaActions.tsx +41 -0
- package/src/containers/Tenant/ObjectSummary/SchemaTree/RefreshTreeButton.tsx +28 -0
- package/src/containers/Tenant/ObjectSummary/SchemaTree/SchemaTree.tsx +426 -0
- package/src/containers/Tenant/ObjectSummary/UpdateTreeContext.tsx +41 -0
- package/src/containers/Tenant/ObjectSummary/i18n/en.json +5 -0
- package/src/containers/Tenant/ObjectSummary/i18n/index.ts +7 -0
- package/src/containers/Tenant/ObjectSummary/shared.ts +3 -0
- package/src/containers/Tenant/ObjectSummary/transformPath.ts +32 -0
- package/src/containers/Tenant/Query/Issues/Issues.scss +116 -0
- package/src/containers/Tenant/Query/Issues/Issues.tsx +310 -0
- package/src/containers/Tenant/Query/Issues/IssuesDialog.tsx +35 -0
- package/src/containers/Tenant/Query/Issues/helpers.ts +98 -0
- package/src/containers/Tenant/Query/Issues/i18n/en.json +9 -0
- package/src/containers/Tenant/Query/Issues/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/Issues/models.ts +16 -0
- package/src/containers/Tenant/Query/NewSQL/NewSQL.tsx +292 -0
- package/src/containers/Tenant/Query/NewSQL/i18n/en.json +52 -0
- package/src/containers/Tenant/Query/NewSQL/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/Preview/Preview.scss +45 -0
- package/src/containers/Tenant/Query/Preview/Preview.tsx +33 -0
- package/src/containers/Tenant/Query/Preview/components/PreviewView.tsx +79 -0
- package/src/containers/Tenant/Query/Preview/components/TablePreview.tsx +57 -0
- package/src/containers/Tenant/Query/Preview/components/TopicPreview.tsx +125 -0
- package/src/containers/Tenant/Query/Preview/components/TopicPreviewTable.tsx +91 -0
- package/src/containers/Tenant/Query/Preview/i18n/en.json +4 -0
- package/src/containers/Tenant/Query/Preview/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/Preview/shared.ts +3 -0
- package/src/containers/Tenant/Query/Preview/types.ts +9 -0
- package/src/containers/Tenant/Query/QueriesHistory/QueriesHistory.scss +84 -0
- package/src/containers/Tenant/Query/QueriesHistory/QueriesHistory.tsx +159 -0
- package/src/containers/Tenant/Query/QueriesHistory/columns.tsx +171 -0
- package/src/containers/Tenant/Query/QueriesHistory/shared.ts +3 -0
- package/src/containers/Tenant/Query/Query.scss +20 -0
- package/src/containers/Tenant/Query/Query.tsx +80 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabItem.scss +158 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabItem.tsx +244 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabs.scss +35 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/EditorTabs.tsx +115 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/RenameQueryDialog.scss +21 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/RenameQueryDialog.tsx +109 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/TabExecutionStatusIndicator.scss +59 -0
- package/src/containers/Tenant/Query/QueryEditor/EditorTabs/TabExecutionStatusIndicator.tsx +19 -0
- package/src/containers/Tenant/Query/QueryEditor/QueryEditor.scss +111 -0
- package/src/containers/Tenant/Query/QueryEditor/QueryEditor.tsx +804 -0
- package/src/containers/Tenant/Query/QueryEditor/QueryEditorZeroTabsState.scss +52 -0
- package/src/containers/Tenant/Query/QueryEditor/QueryEditorZeroTabsState.tsx +41 -0
- package/src/containers/Tenant/Query/QueryEditor/YqlEditor/YqlEditor.tsx +766 -0
- package/src/containers/Tenant/Query/QueryEditor/YqlEditor/currentStatement.ts +199 -0
- package/src/containers/Tenant/Query/QueryEditor/YqlEditor/keybindings.ts +24 -0
- package/src/containers/Tenant/Query/QueryEditor/constants.ts +25 -0
- package/src/containers/Tenant/Query/QueryEditor/hooks/useCodeAssistHelpers.ts +84 -0
- package/src/containers/Tenant/Query/QueryEditor/hooks/useEditorOptions.ts +48 -0
- package/src/containers/Tenant/Query/QueryEditor/hooks/useEditorTabsGlobalHotkeys.ts +110 -0
- package/src/containers/Tenant/Query/QueryEditor/hooks/useQueryPageLeaveGuard.ts +64 -0
- package/src/containers/Tenant/Query/QueryEditor/hooks/useQueryTabsActions.tsx +274 -0
- package/src/containers/Tenant/Query/QueryEditor/types.ts +6 -0
- package/src/containers/Tenant/Query/QueryEditor/utils/queryExecutionManager.ts +45 -0
- package/src/containers/Tenant/Query/QueryEditor/utils/reachExplainQueryMetricaGoals.ts +18 -0
- package/src/containers/Tenant/Query/QueryEditor/utils/tabsManager.ts +94 -0
- package/src/containers/Tenant/Query/QueryEditorControls/EditorButton.scss +40 -0
- package/src/containers/Tenant/Query/QueryEditorControls/EditorButton.tsx +106 -0
- package/src/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.scss +70 -0
- package/src/containers/Tenant/Query/QueryEditorControls/QueryEditorControls.tsx +217 -0
- package/src/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.ts +16 -0
- package/src/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.ts +34 -0
- package/src/containers/Tenant/Query/QueryResult/QueryResultViewer.scss +34 -0
- package/src/containers/Tenant/Query/QueryResult/QueryResultViewer.tsx +361 -0
- package/src/containers/Tenant/Query/QueryResult/components/Ast/Ast.scss +8 -0
- package/src/containers/Tenant/Query/QueryResult/components/Ast/Ast.tsx +36 -0
- package/src/containers/Tenant/Query/QueryResult/components/Graph/Graph.scss +8 -0
- package/src/containers/Tenant/Query/QueryResult/components/Graph/Graph.tsx +38 -0
- package/src/containers/Tenant/Query/QueryResult/components/PlanSection/PlanSection.tsx +72 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/QueryInfoDropdown.tsx +57 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryInfoDropdown/useQueryInfoMenuItems.tsx +143 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.scss +12 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryJSONViewer/QueryJSONViewer.tsx +29 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.scss +5 -0
- package/src/containers/Tenant/Query/QueryResult/components/QueryResultError/QueryResultError.tsx +46 -0
- package/src/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.scss +36 -0
- package/src/containers/Tenant/Query/QueryResult/components/ResultSetsViewer/ResultSetsViewer.tsx +97 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/MetricsCell.tsx +19 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationCell.tsx +140 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/OperationParams.tsx +74 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.scss +84 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/SimplifiedPlan.tsx +112 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/types.ts +6 -0
- package/src/containers/Tenant/Query/QueryResult/components/SimplifiedPlan/utils.ts +59 -0
- package/src/containers/Tenant/Query/QueryResult/components/Stub/Stub.scss +3 -0
- package/src/containers/Tenant/Query/QueryResult/components/Stub/Stub.tsx +13 -0
- package/src/containers/Tenant/Query/QueryResult/components/TraceButton/TraceButton.tsx +29 -0
- package/src/containers/Tenant/Query/QueryResult/constants.ts +56 -0
- package/src/containers/Tenant/Query/QueryResult/i18n/en.json +28 -0
- package/src/containers/Tenant/Query/QueryResult/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/QueryResult/utils.ts +11 -0
- package/src/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.scss +5 -0
- package/src/containers/Tenant/Query/QuerySettingsBanner/QuerySettingsBanner.tsx +30 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.scss +62 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsDialog.tsx +399 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.scss +22 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsSelect.tsx +62 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsTimeout.scss +17 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/QuerySettingsTimeout.tsx +65 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/TimeoutLabel.scss +23 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/TimeoutLabel.tsx +49 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/constants.ts +163 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/i18n/en.json +23 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/i18n/index.ts +8 -0
- package/src/containers/Tenant/Query/QuerySettingsDialog/i18n/ru.json +23 -0
- package/src/containers/Tenant/Query/QueryStoppedBanner/QueryStoppedBanner.scss +5 -0
- package/src/containers/Tenant/Query/QueryStoppedBanner/QueryStoppedBanner.tsx +41 -0
- package/src/containers/Tenant/Query/QueryTabs/QueryTabs.tsx +56 -0
- package/src/containers/Tenant/Query/SaveChangesDialog/SaveChangesDialog.scss +18 -0
- package/src/containers/Tenant/Query/SaveChangesDialog/SaveChangesDialog.tsx +169 -0
- package/src/containers/Tenant/Query/SaveChangesDialog/i18n/en.json +9 -0
- package/src/containers/Tenant/Query/SaveChangesDialog/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/SaveQuery/SaveQuery.scss +20 -0
- package/src/containers/Tenant/Query/SaveQuery/SaveQuery.tsx +280 -0
- package/src/containers/Tenant/Query/SaveQuery/i18n/en.json +13 -0
- package/src/containers/Tenant/Query/SaveQuery/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/SavedQueries/RenameSavedQueryDialog.scss +21 -0
- package/src/containers/Tenant/Query/SavedQueries/RenameSavedQueryDialog.tsx +105 -0
- package/src/containers/Tenant/Query/SavedQueries/SavedQueries.scss +94 -0
- package/src/containers/Tenant/Query/SavedQueries/SavedQueries.tsx +297 -0
- package/src/containers/Tenant/Query/SavedQueries/columns.tsx +108 -0
- package/src/containers/Tenant/Query/SavedQueries/shared.ts +3 -0
- package/src/containers/Tenant/Query/hooks/useExternalQuerySingleTabProtection.ts +364 -0
- package/src/containers/Tenant/Query/hooks/useOpenExternalQueryInEditor.ts +128 -0
- package/src/containers/Tenant/Query/i18n/en.json +108 -0
- package/src/containers/Tenant/Query/i18n/index.ts +7 -0
- package/src/containers/Tenant/Query/utils/QueryNameValidation.ts +11 -0
- package/src/containers/Tenant/Query/utils/copyToClipboard.ts +128 -0
- package/src/containers/Tenant/Query/utils/getPreparedResult.ts +34 -0
- package/src/containers/Tenant/Query/utils/isQueryCancelledError.ts +1 -0
- package/src/containers/Tenant/Query/utils/queryPreview.ts +20 -0
- package/src/containers/Tenant/Query/utils/queryTabTitles.ts +50 -0
- package/src/containers/Tenant/Query/utils/replaceParams.ts +5 -0
- package/src/containers/Tenant/Query/utils/savedQueries.ts +92 -0
- package/src/containers/Tenant/Query/utils/useSavedQueries.tsx +113 -0
- package/src/containers/Tenant/Query/utils/useUpdateSavedQueryFromTab.ts +56 -0
- package/src/containers/Tenant/Schema/SchemaViewer/KeysView.tsx +54 -0
- package/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.scss +80 -0
- package/src/containers/Tenant/Schema/SchemaViewer/SchemaViewer.tsx +125 -0
- package/src/containers/Tenant/Schema/SchemaViewer/columns.tsx +227 -0
- package/src/containers/Tenant/Schema/SchemaViewer/i18n/en.json +14 -0
- package/src/containers/Tenant/Schema/SchemaViewer/i18n/index.ts +7 -0
- package/src/containers/Tenant/Schema/SchemaViewer/prepareData.ts +185 -0
- package/src/containers/Tenant/Schema/SchemaViewer/shared.ts +7 -0
- package/src/containers/Tenant/Schema/SchemaViewer/types.ts +23 -0
- package/src/containers/Tenant/Schema/SchemaViewer/utils.ts +27 -0
- package/src/containers/Tenant/TableFormDialog/TableFormDialog.scss +589 -0
- package/src/containers/Tenant/TableFormDialog/TableFormDialog.tsx +460 -0
- package/src/containers/Tenant/TableFormDialog/columnValueValidation.ts +247 -0
- package/src/containers/Tenant/TableFormDialog/components/ColumnSelectorField.scss +175 -0
- package/src/containers/Tenant/TableFormDialog/components/ColumnSelectorField.tsx +246 -0
- package/src/containers/Tenant/TableFormDialog/components/RangeInputPicker.scss +22 -0
- package/src/containers/Tenant/TableFormDialog/components/RangeInputPicker.tsx +197 -0
- package/src/containers/Tenant/TableFormDialog/components/layout.tsx +96 -0
- package/src/containers/Tenant/TableFormDialog/constants.ts +107 -0
- package/src/containers/Tenant/TableFormDialog/i18n/en.json +155 -0
- package/src/containers/Tenant/TableFormDialog/i18n/index.ts +7 -0
- package/src/containers/Tenant/TableFormDialog/sections/GeneralSection.tsx +95 -0
- package/src/containers/Tenant/TableFormDialog/sections/PartitioningSection.tsx +73 -0
- package/src/containers/Tenant/TableFormDialog/sections/SettingsSection.tsx +445 -0
- package/src/containers/Tenant/TableFormDialog/sections/SplitPointDialog.tsx +267 -0
- package/src/containers/Tenant/TableFormDialog/sections/TTLSection.tsx +199 -0
- package/src/containers/Tenant/TableFormDialog/sections/YdbColumnsSection.tsx +631 -0
- package/src/containers/Tenant/TableFormDialog/sections/YdbIndexesSection.tsx +121 -0
- package/src/containers/Tenant/TableFormDialog/types.ts +41 -0
- package/src/containers/Tenant/TableFormDialog/utils.ts +325 -0
- package/src/containers/Tenant/TableFormDialog/validation.ts +439 -0
- package/src/containers/Tenant/Tenant.scss +18 -0
- package/src/containers/Tenant/Tenant.tsx +258 -0
- package/src/containers/Tenant/TenantContext.tsx +44 -0
- package/src/containers/Tenant/TenantDrawerHealthcheck.tsx +63 -0
- package/src/containers/Tenant/TenantDrawerRights.tsx +59 -0
- package/src/containers/Tenant/TenantDrawerWrappers.tsx +23 -0
- package/src/containers/Tenant/TenantNavigation/TenantNavigation.scss +18 -0
- package/src/containers/Tenant/TenantNavigation/TenantNavigation.tsx +48 -0
- package/src/containers/Tenant/TenantNavigation/useTenantNavigation.tsx +174 -0
- package/src/containers/Tenant/TenantPages.tsx +47 -0
- package/src/containers/Tenant/TopicFormDialog/TopicFormDialog.scss +182 -0
- package/src/containers/Tenant/TopicFormDialog/TopicFormDialog.tsx +924 -0
- package/src/containers/Tenant/TopicFormDialog/i18n/en.json +58 -0
- package/src/containers/Tenant/TopicFormDialog/i18n/index.ts +7 -0
- package/src/containers/Tenant/TopicFormDialog/utils.ts +139 -0
- package/src/containers/Tenant/TopicFormDialog/validation.ts +134 -0
- package/src/containers/Tenant/constants.tsx +26 -0
- package/src/containers/Tenant/i18n/en.json +121 -0
- package/src/containers/Tenant/i18n/index.ts +7 -0
- package/src/containers/Tenant/useTenantQueryParams.ts +86 -0
- package/src/containers/Tenant/utils/ToggleButton.scss +24 -0
- package/src/containers/Tenant/utils/constants.ts +10 -0
- package/src/containers/Tenant/utils/controls.tsx +113 -0
- package/src/containers/Tenant/utils/diagnosticsNavigation.ts +47 -0
- package/src/containers/Tenant/utils/index.ts +20 -0
- package/src/containers/Tenant/utils/newSQLQueryActions.ts +146 -0
- package/src/containers/Tenant/utils/paneVisibilityToggleHelpers.tsx +109 -0
- package/src/containers/Tenant/utils/pathSegmentValidation.ts +24 -0
- package/src/containers/Tenant/utils/schema.ts +311 -0
- package/src/containers/Tenant/utils/schemaActions.tsx +754 -0
- package/src/containers/Tenant/utils/schemaQueryTemplates.ts +644 -0
- package/src/containers/Tenant/utils/types.ts +13 -0
- package/src/containers/Tenant/utils/useNavigationV2Enabled.ts +7 -0
- package/src/containers/Tenants/DatabaseDrawerHealthcheck.tsx +96 -0
- package/src/containers/Tenants/Tenants.scss +63 -0
- package/src/containers/Tenants/TenantsClusterTab.tsx +33 -0
- package/src/containers/Tenants/TenantsTable.tsx +440 -0
- package/src/containers/Tenants/constants.ts +67 -0
- package/src/containers/Tenants/i18n/en.json +15 -0
- package/src/containers/Tenants/i18n/index.ts +7 -0
- package/src/containers/Tenants/useTenantsQueryParams.ts +31 -0
- package/src/containers/UserSettings/Setting.tsx +86 -0
- package/src/containers/UserSettings/UserSettings.scss +3 -0
- package/src/containers/UserSettings/UserSettings.tsx +71 -0
- package/src/containers/UserSettings/i18n/en.json +62 -0
- package/src/containers/UserSettings/i18n/index.ts +5 -0
- package/src/containers/UserSettings/settings.tsx +322 -0
- package/src/containers/VDiskPage/VDiskPage.scss +44 -0
- package/src/containers/VDiskPage/VDiskPage.tsx +296 -0
- package/src/containers/VDiskPage/VDiskStorageDetails.scss +129 -0
- package/src/containers/VDiskPage/VDiskStorageDetails.tsx +196 -0
- package/src/containers/VDiskPage/VDiskTablets/VDiskTablets.scss +0 -0
- package/src/containers/VDiskPage/VDiskTablets/VDiskTablets.tsx +119 -0
- package/src/containers/VDiskPage/VDiskTablets/columns.tsx +68 -0
- package/src/containers/VDiskPage/VDiskTablets/constants.ts +15 -0
- package/src/containers/VDiskPage/VDiskTablets/index.ts +1 -0
- package/src/containers/VDiskPage/i18n/en.json +25 -0
- package/src/containers/VDiskPage/i18n/index.ts +7 -0
- package/src/containers/VDiskPage/useVDiskQueryParams.ts +65 -0
- package/src/containers/Versions/GroupedNodesTree/GroupedNodesTree.scss +15 -0
- package/src/containers/Versions/GroupedNodesTree/GroupedNodesTree.tsx +93 -0
- package/src/containers/Versions/NodesTable/NodesTable.tsx +51 -0
- package/src/containers/Versions/NodesTreeTitle/NodesTreeTitle.scss +39 -0
- package/src/containers/Versions/NodesTreeTitle/NodesTreeTitle.tsx +128 -0
- package/src/containers/Versions/Versions.scss +19 -0
- package/src/containers/Versions/Versions.tsx +182 -0
- package/src/containers/Versions/VersionsBlock/VersionsBlock.scss +7 -0
- package/src/containers/Versions/VersionsBlock/VersionsBlock.tsx +28 -0
- package/src/containers/Versions/groupNodes.ts +129 -0
- package/src/containers/Versions/i18n/en.json +18 -0
- package/src/containers/Versions/i18n/index.ts +7 -0
- package/src/containers/Versions/types.ts +17 -0
- package/src/containers/Versions/utils.ts +88 -0
- package/src/lib.ts +56 -0
- package/src/react-app-env.d.ts +1 -0
- package/src/reportWebVitals.ts +15 -0
- package/src/routes.ts +281 -0
- package/src/services/api/auth.ts +11 -0
- package/src/services/api/base.ts +322 -0
- package/src/services/api/baseMeta.ts +24 -0
- package/src/services/api/codeAssist.ts +146 -0
- package/src/services/api/index.ts +94 -0
- package/src/services/api/meta.ts +119 -0
- package/src/services/api/metaSettings.ts +116 -0
- package/src/services/api/operation.ts +55 -0
- package/src/services/api/pdisk.ts +90 -0
- package/src/services/api/scheme.ts +22 -0
- package/src/services/api/storage.ts +42 -0
- package/src/services/api/streaming.ts +202 -0
- package/src/services/api/streamingPartReader.ts +33 -0
- package/src/services/api/tablets.ts +90 -0
- package/src/services/api/utils/needReset.ts +27 -0
- package/src/services/api/vdisk.ts +37 -0
- package/src/services/api/viewer.ts +707 -0
- package/src/services/parsers/parseMetaTenants.ts +8 -0
- package/src/services/settings.ts +52 -0
- package/src/store/configureStore.ts +121 -0
- package/src/store/defaultStore.ts +7 -0
- package/src/store/getUrlData.ts +68 -0
- package/src/store/index.ts +14 -0
- package/src/store/reducers/api.ts +48 -0
- package/src/store/reducers/authentication/authentication.ts +97 -0
- package/src/store/reducers/authentication/types.ts +3 -0
- package/src/store/reducers/cancelQuery.ts +42 -0
- package/src/store/reducers/capabilities/capabilities.ts +115 -0
- package/src/store/reducers/capabilities/hooks.ts +262 -0
- package/src/store/reducers/cluster/cluster.ts +246 -0
- package/src/store/reducers/cluster/parseFields.ts +178 -0
- package/src/store/reducers/cluster/types.ts +20 -0
- package/src/store/reducers/cluster/utils.ts +142 -0
- package/src/store/reducers/clusters/clusters.ts +50 -0
- package/src/store/reducers/clusters/selectors.ts +95 -0
- package/src/store/reducers/clusters/types.ts +39 -0
- package/src/store/reducers/clusters/utils.ts +69 -0
- package/src/store/reducers/codeAssist/codeAssist.ts +113 -0
- package/src/store/reducers/configs.ts +34 -0
- package/src/store/reducers/environments/environments.ts +24 -0
- package/src/store/reducers/environments/utils.ts +20 -0
- package/src/store/reducers/executeTopQueries/constants.ts +19 -0
- package/src/store/reducers/executeTopQueries/executeTopQueries.ts +238 -0
- package/src/store/reducers/executeTopQueries/types.ts +9 -0
- package/src/store/reducers/executeTopQueries/utils.ts +79 -0
- package/src/store/reducers/fullscreen.ts +31 -0
- package/src/store/reducers/header/header.ts +31 -0
- package/src/store/reducers/header/types.ts +86 -0
- package/src/store/reducers/healthcheckInfo/healthcheckInfo.ts +153 -0
- package/src/store/reducers/healthcheckInfo/types.ts +7 -0
- package/src/store/reducers/healthcheckInfo/utils.ts +188 -0
- package/src/store/reducers/heatmap.ts +123 -0
- package/src/store/reducers/hotKeys/hotKeys.ts +56 -0
- package/src/store/reducers/index.ts +43 -0
- package/src/store/reducers/network/network.ts +28 -0
- package/src/store/reducers/node/node.ts +31 -0
- package/src/store/reducers/node/selectors.ts +68 -0
- package/src/store/reducers/node/types.ts +21 -0
- package/src/store/reducers/node/utils.ts +14 -0
- package/src/store/reducers/nodes/nodes.ts +28 -0
- package/src/store/reducers/nodes/types.ts +18 -0
- package/src/store/reducers/nodesList.ts +33 -0
- package/src/store/reducers/operations.ts +117 -0
- package/src/store/reducers/overview/overview.ts +44 -0
- package/src/store/reducers/partitions/partitions.ts +98 -0
- package/src/store/reducers/partitions/types.ts +39 -0
- package/src/store/reducers/partitions/utils.ts +99 -0
- package/src/store/reducers/pdisk/pdisk.ts +66 -0
- package/src/store/reducers/pdisk/types.ts +35 -0
- package/src/store/reducers/pdisk/utils.ts +150 -0
- package/src/store/reducers/planToSvg.ts +31 -0
- package/src/store/reducers/preview.ts +42 -0
- package/src/store/reducers/query/api.ts +549 -0
- package/src/store/reducers/query/hooks/useQueriesHistory.ts +154 -0
- package/src/store/reducers/query/hooks.ts +1 -0
- package/src/store/reducers/query/parsers/preparePlanData.ts +80 -0
- package/src/store/reducers/query/parsers/prepareQueryData.ts +19 -0
- package/src/store/reducers/query/query.ts +44 -0
- package/src/store/reducers/query/slice.ts +738 -0
- package/src/store/reducers/query/streaming/reducers.ts +132 -0
- package/src/store/reducers/query/types.ts +136 -0
- package/src/store/reducers/query/utils.ts +323 -0
- package/src/store/reducers/queryActions/queryActions.ts +30 -0
- package/src/store/reducers/queryActions/types.ts +6 -0
- package/src/store/reducers/replication.ts +35 -0
- package/src/store/reducers/schema/schema.ts +158 -0
- package/src/store/reducers/schemaAcl/schemaAcl.ts +329 -0
- package/src/store/reducers/schemaAcl/utils.ts +127 -0
- package/src/store/reducers/settings/RemoteLocalStorageSnapshot.ts +142 -0
- package/src/store/reducers/settings/api.ts +347 -0
- package/src/store/reducers/settings/constants.ts +96 -0
- package/src/store/reducers/settings/effects.ts +75 -0
- package/src/store/reducers/settings/settings.ts +116 -0
- package/src/store/reducers/settings/types.ts +13 -0
- package/src/store/reducers/settings/useSetting.ts +47 -0
- package/src/store/reducers/settings/utils.ts +52 -0
- package/src/store/reducers/shardsWorkload/shardsWorkload.ts +130 -0
- package/src/store/reducers/shardsWorkload/types.ts +12 -0
- package/src/store/reducers/showCreateTable/showCreateTable.ts +44 -0
- package/src/store/reducers/singleClusterMode.ts +5 -0
- package/src/store/reducers/storage/constants.ts +10 -0
- package/src/store/reducers/storage/prepareGroupsDisks.ts +152 -0
- package/src/store/reducers/storage/requestStorageData.ts +21 -0
- package/src/store/reducers/storage/storage.ts +41 -0
- package/src/store/reducers/storage/types.ts +129 -0
- package/src/store/reducers/storage/utils.ts +447 -0
- package/src/store/reducers/storageUsage/StorageUsage.ts +385 -0
- package/src/store/reducers/streamingQuery/streamingQuery.ts +46 -0
- package/src/store/reducers/table/constants.ts +40 -0
- package/src/store/reducers/table/table.ts +159 -0
- package/src/store/reducers/table/types.ts +213 -0
- package/src/store/reducers/table/utils.ts +672 -0
- package/src/store/reducers/tableData.ts +68 -0
- package/src/store/reducers/tablePartitioning/tablePartitioning.ts +55 -0
- package/src/store/reducers/tableSchemaData.ts +72 -0
- package/src/store/reducers/tablet/utils.ts +16 -0
- package/src/store/reducers/tablet.ts +189 -0
- package/src/store/reducers/tablets.ts +59 -0
- package/src/store/reducers/tenant/constants.ts +52 -0
- package/src/store/reducers/tenant/tenant.ts +133 -0
- package/src/store/reducers/tenant/types.ts +26 -0
- package/src/store/reducers/tenantOverview/executeTopTables/executeTopTables.ts +44 -0
- package/src/store/reducers/tenantOverview/storage/tenantOverviewStorage.ts +463 -0
- package/src/store/reducers/tenantOverview/topShards/tenantOverviewTopShards.ts +49 -0
- package/src/store/reducers/tenants/contants.ts +13 -0
- package/src/store/reducers/tenants/filters.ts +28 -0
- package/src/store/reducers/tenants/tenants.ts +54 -0
- package/src/store/reducers/tenants/types.ts +17 -0
- package/src/store/reducers/tenants/utils.ts +422 -0
- package/src/store/reducers/topic/topic.ts +291 -0
- package/src/store/reducers/topic/utils.ts +113 -0
- package/src/store/reducers/vdisk/types.ts +12 -0
- package/src/store/reducers/vdisk/utils.ts +62 -0
- package/src/store/reducers/vdisk/vdisk.ts +83 -0
- package/src/store/reducers/viewSchema/viewSchema.ts +53 -0
- package/src/store/state-url-mapping.ts +174 -0
- package/src/styles/drawer.scss +6 -0
- package/src/styles/illustrations.scss +20 -0
- package/src/styles/index.scss +18 -0
- package/src/styles/mixins.scss +357 -0
- package/src/styles/space-colors.scss +104 -0
- package/src/styles/themes/dark-hc.scss +296 -0
- package/src/styles/themes/dark.scss +297 -0
- package/src/styles/themes/light-hc.scss +289 -0
- package/src/styles/themes/light.scss +291 -0
- package/src/styles/themes.scss +73 -0
- package/src/styles/unipika.scss +19 -0
- package/src/styles/versions.scss +130 -0
- package/src/types/additionalProps.ts +43 -0
- package/src/types/api/acl.ts +67 -0
- package/src/types/api/autocomplete.ts +58 -0
- package/src/types/api/capabilities.ts +68 -0
- package/src/types/api/cluster.ts +133 -0
- package/src/types/api/codeAssist.ts +57 -0
- package/src/types/api/common.ts +9 -0
- package/src/types/api/consumer.ts +258 -0
- package/src/types/api/enums.ts +33 -0
- package/src/types/api/environments.ts +7 -0
- package/src/types/api/error.ts +28 -0
- package/src/types/api/featureFlags.ts +14 -0
- package/src/types/api/healthcheck.ts +184 -0
- package/src/types/api/hotkeys.ts +8 -0
- package/src/types/api/meta.ts +122 -0
- package/src/types/api/modifyDisk.ts +11 -0
- package/src/types/api/netInfo.ts +48 -0
- package/src/types/api/nodes.ts +379 -0
- package/src/types/api/nodesList.ts +25 -0
- package/src/types/api/operations.ts +370 -0
- package/src/types/api/pdisk.ts +159 -0
- package/src/types/api/peers.ts +92 -0
- package/src/types/api/query.ts +370 -0
- package/src/types/api/render.ts +38 -0
- package/src/types/api/replication.ts +29 -0
- package/src/types/api/schema/cdcStream.ts +32 -0
- package/src/types/api/schema/columnEntity.ts +156 -0
- package/src/types/api/schema/externalDataSource.ts +49 -0
- package/src/types/api/schema/externalTable.ts +14 -0
- package/src/types/api/schema/index.ts +10 -0
- package/src/types/api/schema/persQueueGroup.ts +191 -0
- package/src/types/api/schema/replication.ts +96 -0
- package/src/types/api/schema/schema.ts +351 -0
- package/src/types/api/schema/shared.ts +48 -0
- package/src/types/api/schema/sysView.ts +44 -0
- package/src/types/api/schema/table.ts +618 -0
- package/src/types/api/schema/tableIndex.ts +99 -0
- package/src/types/api/schema/view.ts +9 -0
- package/src/types/api/settings.ts +22 -0
- package/src/types/api/storage.ts +440 -0
- package/src/types/api/systemState.ts +13 -0
- package/src/types/api/tablet.ts +162 -0
- package/src/types/api/tenant.ts +225 -0
- package/src/types/api/threads.ts +62 -0
- package/src/types/api/topic.ts +362 -0
- package/src/types/api/vdisk.ts +170 -0
- package/src/types/api/vdiskBlobIndex.ts +69 -0
- package/src/types/api/whoami.ts +30 -0
- package/src/types/assets.d.ts +23 -0
- package/src/types/common.ts +3 -0
- package/src/types/components.ts +6 -0
- package/src/types/global.d.ts +1 -0
- package/src/types/index.ts +39 -0
- package/src/types/react-table.d.ts +8 -0
- package/src/types/redux-location-state.d.ts +75 -0
- package/src/types/store/describe.ts +3 -0
- package/src/types/store/heatmap.ts +22 -0
- package/src/types/store/nodesList.ts +7 -0
- package/src/types/store/partitioning.ts +14 -0
- package/src/types/store/query.ts +61 -0
- package/src/types/store/streaming.ts +93 -0
- package/src/types/store/tablet.ts +11 -0
- package/src/types/store/tablets.ts +8 -0
- package/src/types/store/topic.ts +19 -0
- package/src/types/unipika.d.ts +1 -0
- package/src/types/window.d.ts +52 -0
- package/src/uiFactory/types.ts +255 -0
- package/src/uiFactory/uiFactory.ts +95 -0
- package/src/utils/additionalProps.tsx +80 -0
- package/src/utils/balancer.ts +5 -0
- package/src/utils/bytesParsers/convertBytesObjectToSpeed.ts +23 -0
- package/src/utils/bytesParsers/formatBytes.ts +103 -0
- package/src/utils/bytesParsers/i18n/en.json +13 -0
- package/src/utils/bytesParsers/i18n/index.ts +7 -0
- package/src/utils/bytesParsers/index.ts +2 -0
- package/src/utils/capacityAlerts.ts +43 -0
- package/src/utils/clusterLinks/clusterLinkConstants.ts +30 -0
- package/src/utils/clusterLinks/i18n/en.json +9 -0
- package/src/utils/clusterLinks/i18n/index.ts +7 -0
- package/src/utils/clusterLinks/resolveClusterLinks.ts +534 -0
- package/src/utils/clusterLinks/useClusterLinks.ts +14 -0
- package/src/utils/clusterLinks/useDatabaseLinks.ts +22 -0
- package/src/utils/cn.ts +6 -0
- package/src/utils/constants.ts +126 -0
- package/src/utils/createToast.tsx +26 -0
- package/src/utils/dataFormatters/common.ts +56 -0
- package/src/utils/dataFormatters/dataFormatters.ts +343 -0
- package/src/utils/dataFormatters/formatNumber.ts +89 -0
- package/src/utils/dataFormatters/i18n/en.json +6 -0
- package/src/utils/dataFormatters/i18n/index.ts +7 -0
- package/src/utils/developerUI/developerUI.ts +101 -0
- package/src/utils/disks/calculatePDiskSeverity.ts +28 -0
- package/src/utils/disks/calculateVDiskSeverity.ts +81 -0
- package/src/utils/disks/constants.ts +182 -0
- package/src/utils/disks/displayState.ts +104 -0
- package/src/utils/disks/getDiskBarTone.ts +42 -0
- package/src/utils/disks/getIconStrategy.ts +29 -0
- package/src/utils/disks/getPDiskType.ts +73 -0
- package/src/utils/disks/getSeverityStrategy.ts +29 -0
- package/src/utils/disks/groupBy.ts +9 -0
- package/src/utils/disks/helpers.ts +252 -0
- package/src/utils/disks/iconCalculators.ts +254 -0
- package/src/utils/disks/normalizeMediaType.ts +29 -0
- package/src/utils/disks/pdiskState.ts +210 -0
- package/src/utils/disks/prepareDisks.ts +304 -0
- package/src/utils/disks/severityCalculators.ts +156 -0
- package/src/utils/disks/types.ts +123 -0
- package/src/utils/docs.ts +37 -0
- package/src/utils/downloadFile.ts +22 -0
- package/src/utils/emptyDataPlaceholder.ts +1 -0
- package/src/utils/errors/extractErrorDetails.ts +736 -0
- package/src/utils/errors/i18n/en.json +4 -0
- package/src/utils/errors/i18n/index.ts +7 -0
- package/src/utils/errors/index.ts +55 -0
- package/src/utils/errors/serializeReduxError.ts +11 -0
- package/src/utils/events.ts +30 -0
- package/src/utils/featureFlags.ts +7 -0
- package/src/utils/filters.ts +20 -0
- package/src/utils/generateEvaluator.ts +25 -0
- package/src/utils/generateHash.ts +11 -0
- package/src/utils/getColumnWidth.ts +42 -0
- package/src/utils/hooks/index.ts +16 -0
- package/src/utils/hooks/useAclSyntax.ts +10 -0
- package/src/utils/hooks/useAutoRefreshInterval.ts +56 -0
- package/src/utils/hooks/useCancellable.ts +10 -0
- package/src/utils/hooks/useChangedQuerySettings.ts +65 -0
- package/src/utils/hooks/useCompactionFeature.ts +29 -0
- package/src/utils/hooks/useDatabaseFromQuery.ts +15 -0
- package/src/utils/hooks/useDatabasesV2.ts +9 -0
- package/src/utils/hooks/useDebouncedValue.ts +35 -0
- package/src/utils/hooks/useDelayed.ts +29 -0
- package/src/utils/hooks/useEventHandler.ts +17 -0
- package/src/utils/hooks/useIsUserAllowedToMakeChanges.ts +4 -0
- package/src/utils/hooks/useLastQueryExecutionSettings.ts +20 -0
- package/src/utils/hooks/useMetaAuth.ts +24 -0
- package/src/utils/hooks/useNodeDeveloperUIHref.ts +41 -0
- package/src/utils/hooks/useQueryExecutionSettings.ts +44 -0
- package/src/utils/hooks/useQueryStreamingSetting.ts +7 -0
- package/src/utils/hooks/useResizeObserverTrigger.ts +43 -0
- package/src/utils/hooks/useResourcePools.ts +47 -0
- package/src/utils/hooks/useSchemaSecretsFeature.ts +37 -0
- package/src/utils/hooks/useScrollPosition.ts +120 -0
- package/src/utils/hooks/useSearchQuery.ts +9 -0
- package/src/utils/hooks/useSelectedColumns.ts +162 -0
- package/src/utils/hooks/useSetting.ts +15 -0
- package/src/utils/hooks/useTableResize.ts +53 -0
- package/src/utils/hooks/useTableSort.ts +104 -0
- package/src/utils/hooks/useTopicsSqlIoOperationsFeature.ts +37 -0
- package/src/utils/hooks/useTypedDispatch.ts +5 -0
- package/src/utils/hooks/useTypedSelector.ts +6 -0
- package/src/utils/hooks/useWhoami.ts +80 -0
- package/src/utils/hooks/useWithProblemsQueryParam.ts +21 -0
- package/src/utils/hooks/withConfirmation/RunningQueryDialog.tsx +67 -0
- package/src/utils/hooks/withConfirmation/UnsavedChangesDialog.scss +5 -0
- package/src/utils/hooks/withConfirmation/UnsavedChangesDialog.tsx +123 -0
- package/src/utils/hooks/withConfirmation/i18n/en.json +10 -0
- package/src/utils/hooks/withConfirmation/i18n/index.ts +7 -0
- package/src/utils/hooks/withConfirmation/useChangeInputWithConfirmation.tsx +40 -0
- package/src/utils/i18n/i18n.ts +36 -0
- package/src/utils/i18n/index.ts +1 -0
- package/src/utils/illustrations.ts +22 -0
- package/src/utils/index.ts +59 -0
- package/src/utils/lazyComponent.tsx +50 -0
- package/src/utils/logs.ts +8 -0
- package/src/utils/metrics/formatMetricLegend.ts +98 -0
- package/src/utils/metrics/getDiagramValues.ts +136 -0
- package/src/utils/metrics/i18n/en.json +4 -0
- package/src/utils/metrics/i18n/index.ts +7 -0
- package/src/utils/metrics.ts +111 -0
- package/src/utils/monaco/constats.ts +2 -0
- package/src/utils/monaco/highlightErrors.ts +54 -0
- package/src/utils/monaco/i18n/en.json +3 -0
- package/src/utils/monaco/i18n/index.ts +7 -0
- package/src/utils/monaco/insertSnippet.ts +25 -0
- package/src/utils/monaco/yql/constants.ts +764 -0
- package/src/utils/monaco/yql/generateSuggestions.ts +146 -0
- package/src/utils/monaco/yql/yql.completionItemProvider.ts +85 -0
- package/src/utils/monitoring.ts +97 -0
- package/src/utils/monitoringVisibility.ts +30 -0
- package/src/utils/networkInfo.ts +38 -0
- package/src/utils/nodes.ts +103 -0
- package/src/utils/numeral.ts +16 -0
- package/src/utils/parseBalancer.ts +89 -0
- package/src/utils/platform.ts +10 -0
- package/src/utils/prepareBackend.ts +28 -0
- package/src/utils/prepareErrorMessage.ts +25 -0
- package/src/utils/prepareQueryExplain.ts +189 -0
- package/src/utils/progress.ts +41 -0
- package/src/utils/query.ts +431 -0
- package/src/utils/queryParams.ts +21 -0
- package/src/utils/registerError.ts +17 -0
- package/src/utils/renderPaginatedTableErrorMessage.tsx +21 -0
- package/src/utils/response.ts +110 -0
- package/src/utils/schema.ts +14 -0
- package/src/utils/shardsQueryBuilders.ts +262 -0
- package/src/utils/sortByTimestamp.ts +26 -0
- package/src/utils/storage.ts +11 -0
- package/src/utils/storageMetrics.ts +220 -0
- package/src/utils/tableCompaction.ts +86 -0
- package/src/utils/tableUtils/getRequiredDataFields.ts +15 -0
- package/src/utils/tableUtils/types.ts +5 -0
- package/src/utils/tablet.ts +57 -0
- package/src/utils/timeParsers/formatDuration.ts +74 -0
- package/src/utils/timeParsers/i18n/en.json +11 -0
- package/src/utils/timeParsers/i18n/index.ts +8 -0
- package/src/utils/timeParsers/i18n/ru.json +11 -0
- package/src/utils/timeParsers/index.ts +3 -0
- package/src/utils/timeParsers/parsers.ts +28 -0
- package/src/utils/timeParsers/protobufParsers.ts +35 -0
- package/src/utils/timeframes.ts +10 -0
- package/src/utils/typecheckers.ts +7 -0
- package/src/utils/user.ts +36 -0
- package/src/utils/utils.ts +141 -0
- package/src/utils/versions/clusterVersionColors.ts +103 -0
- package/src/utils/versions/getVersionsColors.ts +258 -0
- package/src/utils/versions/index.ts +3 -0
- package/src/utils/versions/parseNodesToVersionsValues.ts +58 -0
- package/src/utils/versions/parseVersion.ts +45 -0
- package/src/utils/versions/sortVersions.ts +43 -0
- package/src/utils/versions/types.ts +20 -0
- package/src/utils/yaMetrica.ts +94 -0
- package/src/utils/zod/configureZod.ts +20 -0
- package/src/utils/zod/zodParsers.ts +7 -0
- package/dist/__mocks__/svgMock.d.ts +0 -2
- package/dist/__mocks__/svgMock.js +0 -2
- package/dist/__mocks__/svgMock.js.map +0 -1
- package/dist/components/Graph/colors.test.d.ts +0 -1
- package/dist/components/Graph/colors.test.js +0 -60
- package/dist/components/Graph/colors.test.js.map +0 -1
- package/dist/containers/App/legacyRedirects.test.d.ts +0 -1
- package/dist/containers/App/legacyRedirects.test.js +0 -52
- package/dist/containers/App/legacyRedirects.test.js.map +0 -1
- package/dist/containers/Tenant/Query/Issues/helpers.test.d.ts +0 -1
- package/dist/containers/Tenant/Query/Issues/helpers.test.js +0 -94
- package/dist/containers/Tenant/Query/Issues/helpers.test.js.map +0 -1
- package/dist/containers/Tenant/Query/Preview/components/TablePreview.test.d.ts +0 -1
- package/dist/containers/Tenant/Query/Preview/components/TablePreview.test.js +0 -28
- package/dist/containers/Tenant/Query/Preview/components/TablePreview.test.js.map +0 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/currentStatement.test.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/currentStatement.test.js +0 -153
- package/dist/containers/Tenant/Query/QueryEditor/YqlEditor/currentStatement.test.js.map +0 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js +0 -41
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettings.test.js.map +0 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.d.ts +0 -1
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js +0 -56
- package/dist/containers/Tenant/Query/QueryEditorControls/utils/getChangedQueryExecutionSettingsDescription.test.js.map +0 -1
- package/dist/containers/Versions/groupNodes.test.d.ts +0 -1
- package/dist/containers/Versions/groupNodes.test.js +0 -227
- package/dist/containers/Versions/groupNodes.test.js.map +0 -1
- package/dist/routes.test.d.ts +0 -1
- package/dist/routes.test.js +0 -64
- package/dist/routes.test.js.map +0 -1
- package/dist/utils/query.test.d.ts +0 -1
- package/dist/utils/query.test.js +0 -431
- package/dist/utils/query.test.js.map +0 -1
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import type {Store} from '@reduxjs/toolkit';
|
|
4
|
+
import type {History} from 'history';
|
|
5
|
+
import {Helmet} from 'react-helmet-async';
|
|
6
|
+
|
|
7
|
+
import {componentsRegistry} from '../../components/ComponentsProvider/componentsRegistry';
|
|
8
|
+
import {FullscreenProvider} from '../../components/Fullscreen/FullscreenContext';
|
|
9
|
+
import {useTypedSelector} from '../../utils/hooks';
|
|
10
|
+
import type {YDBEmbeddedUISettings} from '../UserSettings/settings';
|
|
11
|
+
|
|
12
|
+
import {useAppTitle} from './AppTitleContext';
|
|
13
|
+
import ContentWrapper, {Content} from './Content';
|
|
14
|
+
import {NavigationWrapper} from './NavigationWrapper';
|
|
15
|
+
import {Providers} from './Providers';
|
|
16
|
+
|
|
17
|
+
import './App.scss';
|
|
18
|
+
|
|
19
|
+
const defaultAppTitle = 'YDB Monitoring';
|
|
20
|
+
|
|
21
|
+
export interface AppProps {
|
|
22
|
+
store: Store;
|
|
23
|
+
history: History;
|
|
24
|
+
userSettings?: YDBEmbeddedUISettings;
|
|
25
|
+
children?: React.ReactNode;
|
|
26
|
+
appTitle?: string;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function App({store, history, children, userSettings, appTitle = defaultAppTitle}: AppProps) {
|
|
30
|
+
const ChatPanel = componentsRegistry.get('ChatPanel');
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<Providers store={store} history={history} appTitle={appTitle}>
|
|
34
|
+
<AppContent userSettings={userSettings}>{children}</AppContent>
|
|
35
|
+
{ChatPanel && <ChatPanel />}
|
|
36
|
+
</Providers>
|
|
37
|
+
);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
function AppContent({
|
|
41
|
+
userSettings,
|
|
42
|
+
children,
|
|
43
|
+
}: {
|
|
44
|
+
userSettings?: YDBEmbeddedUISettings;
|
|
45
|
+
children?: React.ReactNode;
|
|
46
|
+
}) {
|
|
47
|
+
const {appTitle} = useAppTitle();
|
|
48
|
+
const singleClusterMode = useTypedSelector((state) => state.singleClusterMode);
|
|
49
|
+
const fullscreenRootRef = React.useRef<HTMLDivElement>(null);
|
|
50
|
+
|
|
51
|
+
return (
|
|
52
|
+
<React.Fragment>
|
|
53
|
+
<Helmet defaultTitle={appTitle} titleTemplate={`%s — ${appTitle}`} />
|
|
54
|
+
<FullscreenProvider fullscreenRootRef={fullscreenRootRef}>
|
|
55
|
+
<ContentWrapper>
|
|
56
|
+
<NavigationWrapper
|
|
57
|
+
singleClusterMode={singleClusterMode}
|
|
58
|
+
userSettings={userSettings}
|
|
59
|
+
>
|
|
60
|
+
<Content singleClusterMode={singleClusterMode}>{children}</Content>
|
|
61
|
+
<div ref={fullscreenRootRef}></div>
|
|
62
|
+
</NavigationWrapper>
|
|
63
|
+
</ContentWrapper>
|
|
64
|
+
</FullscreenProvider>
|
|
65
|
+
</React.Fragment>
|
|
66
|
+
);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export default App;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
interface AppTitleContextType {
|
|
4
|
+
appTitle: string;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const AppTitleContext = React.createContext<AppTitleContextType | undefined>(undefined);
|
|
8
|
+
|
|
9
|
+
interface AppTitleProviderProps {
|
|
10
|
+
appTitle: string;
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export function AppTitleProvider({appTitle, children}: AppTitleProviderProps) {
|
|
15
|
+
return <AppTitleContext.Provider value={{appTitle}}>{children}</AppTitleContext.Provider>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function useAppTitle(): AppTitleContextType {
|
|
19
|
+
const context = React.useContext(AppTitleContext);
|
|
20
|
+
if (context === undefined) {
|
|
21
|
+
throw new Error('useAppTitle must be used within an AppTitleProvider');
|
|
22
|
+
}
|
|
23
|
+
return context;
|
|
24
|
+
}
|
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {connect} from 'react-redux';
|
|
4
|
+
import type {RedirectProps} from 'react-router-dom';
|
|
5
|
+
import {Redirect, Route, Switch} from 'react-router-dom';
|
|
6
|
+
|
|
7
|
+
import {Unauthenticated} from '../../components/Errors/401';
|
|
8
|
+
import {AccessDenied} from '../../components/Errors/403';
|
|
9
|
+
import {LoaderWrapper} from '../../components/LoaderWrapper/LoaderWrapper';
|
|
10
|
+
import {useSlots} from '../../components/slots';
|
|
11
|
+
import type {SlotMap} from '../../components/slots/SlotMap';
|
|
12
|
+
import type {SlotComponent} from '../../components/slots/types';
|
|
13
|
+
import routes, {CLUSTER, getClusterPath} from '../../routes';
|
|
14
|
+
import type {RootState} from '../../store';
|
|
15
|
+
import {
|
|
16
|
+
useAllCapabilitiesLoaded,
|
|
17
|
+
useCapabilitiesQuery,
|
|
18
|
+
useClusterWithoutAuthInUI,
|
|
19
|
+
useMetaCapabilitiesLoaded,
|
|
20
|
+
useMetaCapabilitiesQuery,
|
|
21
|
+
} from '../../store/reducers/capabilities/hooks';
|
|
22
|
+
import {nodesListApi} from '../../store/reducers/nodesList';
|
|
23
|
+
import {cn} from '../../utils/cn';
|
|
24
|
+
import {useDatabaseFromQuery} from '../../utils/hooks/useDatabaseFromQuery';
|
|
25
|
+
import {useMetaAuthUnavailable} from '../../utils/hooks/useMetaAuth';
|
|
26
|
+
import {lazyComponent} from '../../utils/lazyComponent';
|
|
27
|
+
import {isForbiddenError, isRedirectToAuth, isUnauthenticatedError} from '../../utils/response';
|
|
28
|
+
import Authentication from '../Authentication/Authentication';
|
|
29
|
+
import {GetUser} from '../GetUserWrapper/GetUserWrapper';
|
|
30
|
+
import {Header} from '../Header/Header';
|
|
31
|
+
|
|
32
|
+
import {
|
|
33
|
+
ClusterSlot,
|
|
34
|
+
HomePageSlot,
|
|
35
|
+
NodeSlot,
|
|
36
|
+
PDiskPageSlot,
|
|
37
|
+
RedirectSlot,
|
|
38
|
+
RoutesSlot,
|
|
39
|
+
StorageGroupSlot,
|
|
40
|
+
TabletSlot,
|
|
41
|
+
TenantSlot,
|
|
42
|
+
VDiskPageSlot,
|
|
43
|
+
} from './appSlots';
|
|
44
|
+
import {getLegacyClusterTenantsRedirect, getLegacyTenantRedirect} from './legacyRedirects';
|
|
45
|
+
|
|
46
|
+
import './App.scss';
|
|
47
|
+
|
|
48
|
+
const b = cn('app');
|
|
49
|
+
|
|
50
|
+
type RouteSlot = {
|
|
51
|
+
path: string;
|
|
52
|
+
slot: SlotComponent<any>;
|
|
53
|
+
component: React.ComponentType<any>;
|
|
54
|
+
wrapper?: React.ComponentType<any>;
|
|
55
|
+
exact?: boolean;
|
|
56
|
+
};
|
|
57
|
+
const routesSlots: RouteSlot[] = [
|
|
58
|
+
{
|
|
59
|
+
path: routes.cluster,
|
|
60
|
+
slot: ClusterSlot,
|
|
61
|
+
component: lazyComponent(() => import('../Cluster/Cluster'), 'Cluster'),
|
|
62
|
+
wrapper: DataWrapper,
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
path: routes.tenant,
|
|
66
|
+
slot: TenantSlot,
|
|
67
|
+
component: lazyComponent(() => import('../Tenant/Tenant'), 'Tenant'),
|
|
68
|
+
wrapper: DataWrapper,
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
path: routes.node,
|
|
72
|
+
slot: NodeSlot,
|
|
73
|
+
component: lazyComponent(() => import('../Node/Node'), 'Node'),
|
|
74
|
+
wrapper: DataWrapper,
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
path: routes.pDisk,
|
|
78
|
+
slot: PDiskPageSlot,
|
|
79
|
+
component: lazyComponent(() => import('../PDiskPage/PDiskPage'), 'PDiskPage'),
|
|
80
|
+
wrapper: DataWrapper,
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
path: routes.vDisk,
|
|
84
|
+
slot: VDiskPageSlot,
|
|
85
|
+
component: lazyComponent(() => import('../VDiskPage/VDiskPage'), 'VDiskPage'),
|
|
86
|
+
wrapper: DataWrapper,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
path: routes.storageGroup,
|
|
90
|
+
slot: StorageGroupSlot,
|
|
91
|
+
component: lazyComponent(
|
|
92
|
+
() => import('../StorageGroupPage/StorageGroupPage'),
|
|
93
|
+
'StorageGroupPage',
|
|
94
|
+
),
|
|
95
|
+
wrapper: DataWrapper,
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
path: routes.tablet,
|
|
99
|
+
slot: TabletSlot,
|
|
100
|
+
component: lazyComponent(() => import('../Tablet'), 'Tablet'),
|
|
101
|
+
wrapper: DataWrapper,
|
|
102
|
+
},
|
|
103
|
+
];
|
|
104
|
+
|
|
105
|
+
const multiClusterRoutes: RouteSlot[] = [
|
|
106
|
+
{
|
|
107
|
+
path: routes.homePage,
|
|
108
|
+
exact: true,
|
|
109
|
+
component: lazyComponent(() => import('../HomePage/HomePage'), 'HomePage'),
|
|
110
|
+
slot: HomePageSlot,
|
|
111
|
+
wrapper: HomePageDataWrapper,
|
|
112
|
+
},
|
|
113
|
+
];
|
|
114
|
+
|
|
115
|
+
function renderRouteSlot(slots: SlotMap, route: RouteSlot) {
|
|
116
|
+
return (
|
|
117
|
+
<Route
|
|
118
|
+
key={route.path}
|
|
119
|
+
path={route.path}
|
|
120
|
+
exact={route.exact}
|
|
121
|
+
render={(props) => {
|
|
122
|
+
const slot = slots.get(route.slot);
|
|
123
|
+
let content;
|
|
124
|
+
if (!slot) {
|
|
125
|
+
const Component = route.component;
|
|
126
|
+
content = <Component {...props} />;
|
|
127
|
+
} else if (typeof slot.rendered === 'function') {
|
|
128
|
+
content = slot.rendered({component: route.component, ...props});
|
|
129
|
+
} else {
|
|
130
|
+
content = slot.rendered;
|
|
131
|
+
}
|
|
132
|
+
const Wrapper = route.wrapper ?? React.Fragment;
|
|
133
|
+
return (
|
|
134
|
+
<main className={b('main')}>
|
|
135
|
+
<Wrapper>{content}</Wrapper>
|
|
136
|
+
</main>
|
|
137
|
+
);
|
|
138
|
+
}}
|
|
139
|
+
/>
|
|
140
|
+
);
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
interface ContentProps {
|
|
144
|
+
singleClusterMode: boolean;
|
|
145
|
+
children: React.ReactNode;
|
|
146
|
+
}
|
|
147
|
+
export function Content(props: ContentProps) {
|
|
148
|
+
const {singleClusterMode} = props;
|
|
149
|
+
|
|
150
|
+
const slots = useSlots(props);
|
|
151
|
+
|
|
152
|
+
const additionalRoutes = slots.get(RoutesSlot);
|
|
153
|
+
|
|
154
|
+
const redirect = slots.get(RedirectSlot);
|
|
155
|
+
const redirectProps: RedirectProps =
|
|
156
|
+
redirect?.props ?? (singleClusterMode ? {to: getClusterPath()} : {to: routes.homePage});
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
<Switch>
|
|
160
|
+
{additionalRoutes?.rendered}
|
|
161
|
+
<Route>
|
|
162
|
+
<Header />
|
|
163
|
+
<Switch>
|
|
164
|
+
{/* Backwards compatibility: redirect legacy `/cluster/tenants` URL to `/cluster/databases`,
|
|
165
|
+
preserving any query params and hash from old bookmarks. Must appear before the
|
|
166
|
+
cluster route so it wins the Switch match (otherwise the cluster page's internal
|
|
167
|
+
unknown-tab fallback would redirect via `getClusterPath()` and drop search/hash). */}
|
|
168
|
+
<Route
|
|
169
|
+
path={`/:environment?/${CLUSTER}/tenants`}
|
|
170
|
+
exact
|
|
171
|
+
render={({location}) => (
|
|
172
|
+
<Redirect to={getLegacyClusterTenantsRedirect(location)} />
|
|
173
|
+
)}
|
|
174
|
+
/>
|
|
175
|
+
{/* Backwards compatibility: redirect legacy `/tenant` URL to `/database`. */}
|
|
176
|
+
<Route
|
|
177
|
+
path={routes.legacyTenant}
|
|
178
|
+
render={({location}) => <Redirect to={getLegacyTenantRedirect(location)} />}
|
|
179
|
+
/>
|
|
180
|
+
{singleClusterMode
|
|
181
|
+
? null
|
|
182
|
+
: multiClusterRoutes.map((route) => {
|
|
183
|
+
return renderRouteSlot(slots, route);
|
|
184
|
+
})}
|
|
185
|
+
{/* Single cluster routes */}
|
|
186
|
+
{routesSlots.map((route) => {
|
|
187
|
+
return renderRouteSlot(slots, route);
|
|
188
|
+
})}
|
|
189
|
+
<Route
|
|
190
|
+
path={redirectProps.from || redirectProps.path}
|
|
191
|
+
exact={redirectProps.exact}
|
|
192
|
+
strict={redirectProps.strict}
|
|
193
|
+
render={() => <Redirect to={redirectProps.to} push={redirectProps.push} />}
|
|
194
|
+
/>
|
|
195
|
+
</Switch>
|
|
196
|
+
</Route>
|
|
197
|
+
</Switch>
|
|
198
|
+
);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
function DataWrapper({children}: {children: React.ReactNode}) {
|
|
202
|
+
return (
|
|
203
|
+
// capabilities is going to work without authentication, but not all running systems are supporting this yet
|
|
204
|
+
<GetCapabilities>
|
|
205
|
+
<GetUser>
|
|
206
|
+
<GetNodesList />
|
|
207
|
+
{/* this GetCapabilities will be removed */}
|
|
208
|
+
<GetCapabilities>{children}</GetCapabilities>
|
|
209
|
+
</GetUser>
|
|
210
|
+
</GetCapabilities>
|
|
211
|
+
);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
function HomePageDataWrapper({children}: {children: React.ReactNode}) {
|
|
215
|
+
// Home page content is wrapped with GetMetaUser inside component
|
|
216
|
+
return <GetMetaCapabilities>{children}</GetMetaCapabilities>;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
function GetNodesList() {
|
|
220
|
+
const database = useDatabaseFromQuery();
|
|
221
|
+
nodesListApi.useGetNodesListQuery({database}, undefined);
|
|
222
|
+
return null;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function GetCapabilities({children}: {children: React.ReactNode}) {
|
|
226
|
+
const {error} = useCapabilitiesQuery();
|
|
227
|
+
|
|
228
|
+
useMetaCapabilitiesQuery();
|
|
229
|
+
const capabilitiesLoaded = useAllCapabilitiesLoaded();
|
|
230
|
+
|
|
231
|
+
//do nothing, authentication is in progress upon redirect
|
|
232
|
+
if (isRedirectToAuth(error)) {
|
|
233
|
+
return null;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
if (isUnauthenticatedError(error)) {
|
|
237
|
+
return <Unauthenticated />;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
if (isForbiddenError(error)) {
|
|
241
|
+
return <AccessDenied />;
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
return (
|
|
245
|
+
<LoaderWrapper loading={!capabilitiesLoaded} size="l">
|
|
246
|
+
{children}
|
|
247
|
+
</LoaderWrapper>
|
|
248
|
+
);
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
// Only for Clusters page, there is no need to request cluster capabilities there (GetCapabilities)
|
|
252
|
+
// This wrapper is not used in GetCapabilities so the page does not wait for 2 consecutive capabilities requests
|
|
253
|
+
function GetMetaCapabilities({children}: {children: React.ReactNode}) {
|
|
254
|
+
useMetaCapabilitiesQuery();
|
|
255
|
+
// It is always true if there is no meta, since request finishes with an error
|
|
256
|
+
const metaCapabilitiesLoaded = useMetaCapabilitiesLoaded();
|
|
257
|
+
|
|
258
|
+
return (
|
|
259
|
+
<LoaderWrapper loading={!metaCapabilitiesLoaded} size="l">
|
|
260
|
+
{children}
|
|
261
|
+
</LoaderWrapper>
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
interface ContentWrapperProps {
|
|
266
|
+
singleClusterMode: boolean;
|
|
267
|
+
isAuthenticated: boolean;
|
|
268
|
+
children: React.ReactNode;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
function ContentWrapper(props: ContentWrapperProps) {
|
|
272
|
+
const {singleClusterMode, isAuthenticated} = props;
|
|
273
|
+
const authUnavailable = useClusterWithoutAuthInUI();
|
|
274
|
+
|
|
275
|
+
const metaAuthUnavailable = useMetaAuthUnavailable();
|
|
276
|
+
|
|
277
|
+
const renderNotAuthenticated = () => {
|
|
278
|
+
if (authUnavailable || metaAuthUnavailable) {
|
|
279
|
+
return <AccessDenied />;
|
|
280
|
+
}
|
|
281
|
+
return (
|
|
282
|
+
<GetMetaCapabilities>
|
|
283
|
+
<Authentication />
|
|
284
|
+
</GetMetaCapabilities>
|
|
285
|
+
);
|
|
286
|
+
};
|
|
287
|
+
|
|
288
|
+
return (
|
|
289
|
+
<Switch>
|
|
290
|
+
{!authUnavailable && !metaAuthUnavailable && (
|
|
291
|
+
<Route path={routes.auth}>
|
|
292
|
+
<GetMetaCapabilities>
|
|
293
|
+
<Authentication closable />
|
|
294
|
+
</GetMetaCapabilities>
|
|
295
|
+
</Route>
|
|
296
|
+
)}
|
|
297
|
+
<Route>
|
|
298
|
+
<div className={b({embedded: singleClusterMode})}>
|
|
299
|
+
{isAuthenticated ? props.children : renderNotAuthenticated()}
|
|
300
|
+
</div>
|
|
301
|
+
</Route>
|
|
302
|
+
</Switch>
|
|
303
|
+
);
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
function mapStateToProps(state: RootState) {
|
|
307
|
+
return {
|
|
308
|
+
isAuthenticated: state.authentication.isAuthenticated,
|
|
309
|
+
singleClusterMode: state.singleClusterMode,
|
|
310
|
+
};
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export default connect(mapStateToProps)(ContentWrapper);
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {ErrorBoundary} from '../../components/ErrorBoundary/ErrorBoundary';
|
|
4
|
+
import {
|
|
5
|
+
useBlobStorageCapacityMetricsAvailable,
|
|
6
|
+
useDetailedStorageViewAvailable,
|
|
7
|
+
} from '../../store/reducers/capabilities/hooks';
|
|
8
|
+
import {useIsUserAllowedToMakeChanges} from '../../utils/hooks/useIsUserAllowedToMakeChanges';
|
|
9
|
+
import {Navigation} from '../AsideNavigation/Navigation';
|
|
10
|
+
import {
|
|
11
|
+
applyBlobStorageCapacityMetricsSettingAvailability,
|
|
12
|
+
applyDetailedStorageViewSettingAvailability,
|
|
13
|
+
applyStorageExpertModeSettingAvailability,
|
|
14
|
+
getUserSettings,
|
|
15
|
+
} from '../UserSettings/settings';
|
|
16
|
+
import type {YDBEmbeddedUISettings} from '../UserSettings/settings';
|
|
17
|
+
|
|
18
|
+
interface NavigationWrapperProps {
|
|
19
|
+
singleClusterMode: boolean;
|
|
20
|
+
userSettings?: YDBEmbeddedUISettings;
|
|
21
|
+
children: React.ReactNode;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export function NavigationWrapper({
|
|
25
|
+
singleClusterMode,
|
|
26
|
+
userSettings,
|
|
27
|
+
children,
|
|
28
|
+
}: NavigationWrapperProps) {
|
|
29
|
+
const blobMetricsAvailable = useBlobStorageCapacityMetricsAvailable();
|
|
30
|
+
const detailedStorageViewAvailable = useDetailedStorageViewAvailable();
|
|
31
|
+
const isUserAllowedToMakeChanges = useIsUserAllowedToMakeChanges();
|
|
32
|
+
|
|
33
|
+
let finalUserSettings: YDBEmbeddedUISettings =
|
|
34
|
+
userSettings ?? getUserSettings({singleClusterMode});
|
|
35
|
+
|
|
36
|
+
finalUserSettings = applyDetailedStorageViewSettingAvailability(
|
|
37
|
+
finalUserSettings,
|
|
38
|
+
detailedStorageViewAvailable,
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
// Hide the Blob Storage Capacity Metrics experiment if the backend doesn't support it
|
|
42
|
+
finalUserSettings = applyBlobStorageCapacityMetricsSettingAvailability(
|
|
43
|
+
finalUserSettings,
|
|
44
|
+
blobMetricsAvailable,
|
|
45
|
+
);
|
|
46
|
+
|
|
47
|
+
finalUserSettings = applyStorageExpertModeSettingAvailability(
|
|
48
|
+
finalUserSettings,
|
|
49
|
+
blobMetricsAvailable && Boolean(isUserAllowedToMakeChanges),
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
return (
|
|
53
|
+
<Navigation userSettings={finalUserSettings}>
|
|
54
|
+
<ErrorBoundary>{children}</ErrorBoundary>
|
|
55
|
+
</Navigation>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import * as NiceModal from '@ebay/nice-modal-react';
|
|
4
|
+
import {ThemeProvider, ToasterComponent, ToasterProvider} from '@gravity-ui/uikit';
|
|
5
|
+
import type {Store} from '@reduxjs/toolkit';
|
|
6
|
+
import type {History} from 'history';
|
|
7
|
+
import {HelmetProvider} from 'react-helmet-async';
|
|
8
|
+
import {Provider} from 'react-redux';
|
|
9
|
+
import {Router} from 'react-router-dom';
|
|
10
|
+
import {QueryParamProvider} from 'use-query-params';
|
|
11
|
+
import {ReactRouter5Adapter} from 'use-query-params/adapters/react-router-5';
|
|
12
|
+
|
|
13
|
+
import {ComponentsProvider} from '../../components/ComponentsProvider/ComponentsProvider';
|
|
14
|
+
import {componentsRegistry as defaultComponentsRegistry} from '../../components/ComponentsProvider/componentsRegistry';
|
|
15
|
+
import type {ComponentsRegistry} from '../../components/ComponentsProvider/componentsRegistry';
|
|
16
|
+
import {SETTING_KEYS} from '../../store/reducers/settings/constants';
|
|
17
|
+
import {toaster} from '../../utils/createToast';
|
|
18
|
+
import {useSetting} from '../../utils/hooks';
|
|
19
|
+
|
|
20
|
+
import {AppTitleProvider} from './AppTitleContext';
|
|
21
|
+
|
|
22
|
+
interface ProvidersProps {
|
|
23
|
+
store: Store;
|
|
24
|
+
history: History;
|
|
25
|
+
componentsRegistry?: ComponentsRegistry;
|
|
26
|
+
children: React.ReactNode;
|
|
27
|
+
appTitle: string;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function Providers({
|
|
31
|
+
store,
|
|
32
|
+
history,
|
|
33
|
+
componentsRegistry = defaultComponentsRegistry,
|
|
34
|
+
children,
|
|
35
|
+
appTitle,
|
|
36
|
+
}: ProvidersProps) {
|
|
37
|
+
return (
|
|
38
|
+
<HelmetProvider>
|
|
39
|
+
<Provider store={store}>
|
|
40
|
+
<Router history={history}>
|
|
41
|
+
<QueryParamProvider adapter={ReactRouter5Adapter}>
|
|
42
|
+
<AppTitleProvider appTitle={appTitle}>
|
|
43
|
+
<Theme>
|
|
44
|
+
<ToasterProvider toaster={toaster}>
|
|
45
|
+
<ComponentsProvider registry={componentsRegistry}>
|
|
46
|
+
<NiceModal.Provider>{children}</NiceModal.Provider>
|
|
47
|
+
<ToasterComponent />
|
|
48
|
+
</ComponentsProvider>
|
|
49
|
+
</ToasterProvider>
|
|
50
|
+
</Theme>
|
|
51
|
+
</AppTitleProvider>
|
|
52
|
+
</QueryParamProvider>
|
|
53
|
+
</Router>
|
|
54
|
+
</Provider>
|
|
55
|
+
</HelmetProvider>
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function Theme({children}: {children: React.ReactNode}) {
|
|
60
|
+
const [theme] = useSetting<string | undefined>(SETTING_KEYS.THEME);
|
|
61
|
+
|
|
62
|
+
return <ThemeProvider theme={theme}>{children}</ThemeProvider>;
|
|
63
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
|
|
3
|
+
import {skipToken} from '@reduxjs/toolkit/query';
|
|
4
|
+
|
|
5
|
+
import {LoaderWrapper} from '../../components/LoaderWrapper/LoaderWrapper';
|
|
6
|
+
import {settingsApi} from '../../store/reducers/settings/api';
|
|
7
|
+
import {DEFAULT_USER_SETTINGS} from '../../store/reducers/settings/constants';
|
|
8
|
+
import {
|
|
9
|
+
DEFAULT_CLUSTER_TAB_KEY,
|
|
10
|
+
DEFAULT_IS_QUERY_RESULT_COLLAPSED,
|
|
11
|
+
DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED,
|
|
12
|
+
DEFAULT_IS_TENANT_SUMMARY_COLLAPSED,
|
|
13
|
+
DEFAULT_SIZE_RESULT_PANE_KEY,
|
|
14
|
+
DEFAULT_SIZE_TENANT_KEY,
|
|
15
|
+
DEFAULT_SIZE_TENANT_SUMMARY_KEY,
|
|
16
|
+
} from '../../utils/constants';
|
|
17
|
+
|
|
18
|
+
const DRAWER_WIDTH_KEY = 'drawer-width';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Preloaded keys for "UI layout" state (pane sizes, collapsed flags, etc.) that are stored in the same
|
|
22
|
+
* settings backend but are not part of `DEFAULT_USER_SETTINGS`.
|
|
23
|
+
*
|
|
24
|
+
* If a new UI layout key should be preloaded to prevent UI "pop-in" in remote-settings mode, add it here.
|
|
25
|
+
*/
|
|
26
|
+
const PRELOADED_UI_LAYOUT_KEYS = [
|
|
27
|
+
DEFAULT_CLUSTER_TAB_KEY,
|
|
28
|
+
DEFAULT_SIZE_RESULT_PANE_KEY,
|
|
29
|
+
DEFAULT_SIZE_TENANT_SUMMARY_KEY,
|
|
30
|
+
DEFAULT_SIZE_TENANT_KEY,
|
|
31
|
+
DEFAULT_IS_TENANT_SUMMARY_COLLAPSED,
|
|
32
|
+
DEFAULT_IS_TENANT_COMMON_INFO_COLLAPSED,
|
|
33
|
+
DEFAULT_IS_QUERY_RESULT_COLLAPSED,
|
|
34
|
+
DRAWER_WIDTH_KEY,
|
|
35
|
+
] as const;
|
|
36
|
+
|
|
37
|
+
interface SettingsBootstrapProps {
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export function SettingsBootstrap({children}: SettingsBootstrapProps) {
|
|
42
|
+
const remoteAvailable = Boolean(window.api?.metaSettings);
|
|
43
|
+
|
|
44
|
+
const settingsKeysToPreload = React.useMemo(() => {
|
|
45
|
+
const keys = new Set<string>(Object.keys(DEFAULT_USER_SETTINGS));
|
|
46
|
+
|
|
47
|
+
PRELOADED_UI_LAYOUT_KEYS.forEach((key) => keys.add(key));
|
|
48
|
+
|
|
49
|
+
return Array.from(keys);
|
|
50
|
+
}, []);
|
|
51
|
+
|
|
52
|
+
const params = React.useMemo(() => {
|
|
53
|
+
if (remoteAvailable) {
|
|
54
|
+
return {name: settingsKeysToPreload};
|
|
55
|
+
}
|
|
56
|
+
return skipToken;
|
|
57
|
+
}, [remoteAvailable, settingsKeysToPreload]);
|
|
58
|
+
|
|
59
|
+
const {isLoading} = settingsApi.useGetSettingsQuery(params);
|
|
60
|
+
|
|
61
|
+
if (!remoteAvailable) {
|
|
62
|
+
return children;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return (
|
|
66
|
+
<LoaderWrapper loading={isLoading} size="l" delay={0}>
|
|
67
|
+
{children}
|
|
68
|
+
</LoaderWrapper>
|
|
69
|
+
);
|
|
70
|
+
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import type {RedirectProps, RouteComponentProps} from 'react-router-dom';
|
|
2
|
+
|
|
3
|
+
import {createSlot} from '../../components/slots';
|
|
4
|
+
import type {Cluster} from '../Cluster/Cluster';
|
|
5
|
+
import type {HomePage} from '../HomePage/HomePage';
|
|
6
|
+
import type {Node} from '../Node/Node';
|
|
7
|
+
import type {PDiskPage} from '../PDiskPage/PDiskPage';
|
|
8
|
+
import type {StorageGroupPage} from '../StorageGroupPage/StorageGroupPage';
|
|
9
|
+
import type {Tablet} from '../Tablet';
|
|
10
|
+
import type {Tenant} from '../Tenant/Tenant';
|
|
11
|
+
import type {VDiskPage} from '../VDiskPage/VDiskPage';
|
|
12
|
+
|
|
13
|
+
export const HomePageSlot = createSlot<{
|
|
14
|
+
children:
|
|
15
|
+
| React.ReactNode
|
|
16
|
+
| ((props: {component: typeof HomePage} & RouteComponentProps) => React.ReactNode);
|
|
17
|
+
}>('homePage');
|
|
18
|
+
export const ClusterSlot = createSlot<{
|
|
19
|
+
children:
|
|
20
|
+
| React.ReactNode
|
|
21
|
+
| ((props: {component: typeof Cluster} & RouteComponentProps) => React.ReactNode);
|
|
22
|
+
}>('cluster');
|
|
23
|
+
export const TenantSlot = createSlot<{
|
|
24
|
+
children:
|
|
25
|
+
| React.ReactNode
|
|
26
|
+
| ((props: {component: typeof Tenant} & RouteComponentProps) => React.ReactNode);
|
|
27
|
+
}>('tenant');
|
|
28
|
+
export const NodeSlot = createSlot<{
|
|
29
|
+
children:
|
|
30
|
+
| React.ReactNode
|
|
31
|
+
| ((props: {component: typeof Node} & RouteComponentProps) => React.ReactNode);
|
|
32
|
+
}>('node');
|
|
33
|
+
export const PDiskPageSlot = createSlot<{
|
|
34
|
+
children:
|
|
35
|
+
| React.ReactNode
|
|
36
|
+
| ((props: {component: typeof PDiskPage} & RouteComponentProps) => React.ReactNode);
|
|
37
|
+
}>('pDisk');
|
|
38
|
+
export const VDiskPageSlot = createSlot<{
|
|
39
|
+
children:
|
|
40
|
+
| React.ReactNode
|
|
41
|
+
| ((props: {component: typeof VDiskPage} & RouteComponentProps) => React.ReactNode);
|
|
42
|
+
}>('vDisk');
|
|
43
|
+
export const StorageGroupSlot = createSlot<{
|
|
44
|
+
children:
|
|
45
|
+
| React.ReactNode
|
|
46
|
+
| ((props: {component: typeof StorageGroupPage} & RouteComponentProps) => React.ReactNode);
|
|
47
|
+
}>('storageGroup');
|
|
48
|
+
export const TabletSlot = createSlot<{
|
|
49
|
+
children:
|
|
50
|
+
| React.ReactNode
|
|
51
|
+
| ((props: {component: typeof Tablet} & RouteComponentProps) => React.ReactNode);
|
|
52
|
+
}>('tablet');
|
|
53
|
+
|
|
54
|
+
export const RoutesSlot = createSlot<{children: React.ReactNode}>('routes');
|
|
55
|
+
export const RedirectSlot = createSlot<RedirectProps>('redirect');
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type {Location} from 'history';
|
|
2
|
+
|
|
3
|
+
type LegacyRedirectLocation = Pick<Location, 'pathname' | 'search' | 'hash'>;
|
|
4
|
+
|
|
5
|
+
function makeRedirectLocation(location: LegacyRedirectLocation, pathname: string) {
|
|
6
|
+
return {
|
|
7
|
+
pathname,
|
|
8
|
+
search: location.search,
|
|
9
|
+
hash: location.hash,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export function getLegacyClusterTenantsRedirect(location: LegacyRedirectLocation) {
|
|
14
|
+
return makeRedirectLocation(
|
|
15
|
+
location,
|
|
16
|
+
location.pathname.replace(/\/cluster\/tenants(\/|$)/, '/cluster/databases$1'),
|
|
17
|
+
);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function getLegacyTenantRedirect(location: LegacyRedirectLocation) {
|
|
21
|
+
return makeRedirectLocation(
|
|
22
|
+
location,
|
|
23
|
+
location.pathname.replace(/\/tenant(\/|$)/, '/database$1'),
|
|
24
|
+
);
|
|
25
|
+
}
|