@gooddata/sdk-ui-dashboard 11.45.0-alpha.0 → 11.45.0-alpha.2
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/NOTICE +3 -3
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +2 -2
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +2 -2
- package/esm/kdaDialog/composition/KeyDriversPanel.d.ts.map +1 -1
- package/esm/kdaDialog/composition/KeyDriversPanel.js +3 -1
- package/esm/model/commandHandlers/dashboard/common/loadAutomationsData.js +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadNotificationChannelsCount.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadNotificationChannelsCount.js +19 -25
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomationsCount.d.ts +1 -2
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomationsCount.d.ts.map +1 -1
- package/esm/model/commandHandlers/dashboard/common/loadWorkspaceAutomationsCount.js +18 -7
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/drill/drillToDashboardHandler.js +3 -6
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/initializeAutomationsHandler.js +2 -5
- package/esm/model/commandHandlers/scheduledEmail/loadNotificationChannels.d.ts +1 -1
- package/esm/model/commandHandlers/scheduledEmail/loadNotificationChannels.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/loadNotificationChannels.js +3 -5
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.d.ts.map +1 -1
- package/esm/model/commandHandlers/scheduledEmail/refreshAutomationsHandlers.js +4 -8
- package/esm/model/queryServices/queryWidgetFilters.d.ts.map +1 -1
- package/esm/model/queryServices/queryWidgetFilters.js +1 -5
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts +3 -3
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js +2 -4
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts +3 -3
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.js +21 -27
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.js +1 -4
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts +3 -4
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.js +13 -49
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts +1 -7
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts.map +1 -1
- package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.js +9 -42
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.d.ts +2 -2
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsCommands.js +20 -28
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsData.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsData.js +1 -4
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsDialog.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsDialog.js +3 -10
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsManagementDialog.d.ts.map +1 -1
- package/esm/model/react/useDashboardAlerting/useDashboardAlertsManagementDialog.js +3 -10
- package/esm/model/react/useDashboardAutomations/useDashboardAutomations.d.ts.map +1 -1
- package/esm/model/react/useDashboardAutomations/useDashboardAutomations.js +5 -12
- package/esm/model/store/config/configSelectors.d.ts +6 -54
- package/esm/model/store/config/configSelectors.d.ts.map +1 -1
- package/esm/model/store/config/configSelectors.js +8 -76
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts +1 -10
- package/esm/model/store/tabs/parameters/parametersHelpers.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersHelpers.js +1 -25
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts +7 -0
- package/esm/model/store/tabs/parameters/parametersSelectors.d.ts.map +1 -1
- package/esm/model/store/tabs/parameters/parametersSelectors.js +16 -0
- package/esm/model/store/topBar/topBarSelectors.d.ts +0 -4
- package/esm/model/store/topBar/topBarSelectors.d.ts.map +1 -1
- package/esm/model/store/topBar/topBarSelectors.js +5 -13
- package/esm/model/store/widgetDrills/widgetDrillSelectors.d.ts.map +1 -1
- package/esm/model/store/widgetDrills/widgetDrillSelectors.js +5 -6
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +21 -52
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/components/AlertComparisonPeriodSelect.js +2 -3
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts +18 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSubmit.js +48 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSupportedMetrics.d.ts +28 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSupportedMetrics.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertSupportedMetrics.js +43 -0
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertValidation.js +2 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts +0 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.js +7 -23
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts +1 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/utils/items.js +2 -3
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContent.d.ts +12 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContent.d.ts.map +1 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/{DefaultAlertingManagementDialogContentEnhanced.js → DefaultAlertingManagementDialogContent.js} +3 -3
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogNew.js +5 -33
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/Alert.js +2 -2
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/hooks/useGetSupportedMeasures.js +2 -2
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +2 -40
- package/esm/presentation/automations/connectors/AlertingConnector.test.js +0 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +2 -39
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.test.js +0 -1
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts +11 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.d.ts.map +1 -0
- package/esm/presentation/automations/connectors/hooks/useAutomationManagementEditRouting.js +40 -0
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +5 -14
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.test.js +1 -6
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +1 -3
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +7 -8
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/DashboardAttachments.js +8 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/WidgetAttachments.js +8 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/attachmentFormats.d.ts +15 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/attachmentFormats.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/Attachments/attachmentFormats.js +16 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialog.js +5 -17
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/{DefaultScheduledEmailManagementDialogContentEnhanced.d.ts → DefaultScheduledEmailManagementDialogContent.d.ts} +3 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContent.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/{DefaultScheduledEmailManagementDialogContentEnhanced.js → DefaultScheduledEmailManagementDialogContent.js} +3 -2
- package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.test.js +1 -3
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts +2 -1
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +1 -0
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/CreationPanel.js +2 -3
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightList.d.ts +1 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightList.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightList.js +2 -2
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/DraggableInsightList/DraggableInsightListCore.js +8 -5
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.d.ts.map +1 -1
- package/esm/presentation/dashboard/DashboardSidebar/InsightPickerPanel.js +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.d.ts +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/DefaultDeleteDialog.js +3 -8
- package/esm/presentation/deleteDialog/types.d.ts +0 -2
- package/esm/presentation/deleteDialog/types.d.ts.map +1 -1
- package/esm/presentation/deleteDialog/types.js +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/DefaultFilterBar.js +4 -9
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.d.ts.map +1 -1
- package/esm/presentation/filterBar/filterBar/hooks/useResetFiltersButton.js +11 -20
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/DashboardLayoutSectionHeaderDescription.js +2 -3
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.d.ts.map +1 -1
- package/esm/presentation/flexibleLayout/DefaultDashboardLayoutRenderer/EditableHeader/SectionHeaderEditable.js +2 -3
- package/esm/presentation/insightList/InsightList.d.ts.map +1 -1
- package/esm/presentation/insightList/InsightList.js +62 -9
- package/esm/presentation/insightList/InsightListDivider.d.ts +5 -0
- package/esm/presentation/insightList/InsightListDivider.d.ts.map +1 -0
- package/esm/presentation/insightList/InsightListDivider.js +12 -0
- package/esm/presentation/insightList/types.d.ts +3 -2
- package/esm/presentation/insightList/types.d.ts.map +1 -1
- package/esm/presentation/insightList/types.js +1 -0
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts +4 -12
- package/esm/presentation/localization/bundles/en-US.localization-bundle.d.ts.map +1 -1
- package/esm/presentation/localization/bundles/en-US.localization-bundle.js +4 -12
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.d.ts.map +1 -1
- package/esm/presentation/topBar/menuButton/useDefaultMenuItems.js +5 -28
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.d.ts.map +1 -1
- package/esm/presentation/widget/description/ExportModeInsightWidgetDescription.js +2 -3
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.d.ts.map +1 -1
- package/esm/presentation/widget/description/InsightWidgetDescriptionTrigger.js +1 -3
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.d.ts.map +1 -1
- package/esm/presentation/widget/insight/ViewModeDashboardInsight/InsightDrillDialog/InsightDrillDialog.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +1 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts +1 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +4 -4
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertsNew.js +2 -3
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightConfiguration.js +3 -5
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightDescriptionConfig/InsightDescription.js +2 -3
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/getDefaultInsightMenuItems.js +8 -21
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/types.d.ts +0 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/types.d.ts.map +1 -1
- package/esm/presentation/widget/insightMenu/DefaultDashboardInsightMenu/types.js +1 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/EditModeDashboardRichText.js +4 -13
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.d.ts.map +1 -1
- package/esm/presentation/widget/richText/ViewModeDashboardRichText.js +2 -3
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +7 -7
- package/esm/presentation/widget/widget/InsightWidget/DefaultDashboardInsightWidget.js +7 -5
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useAlertingAndScheduling.js +2 -5
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useEditableInsightMenu.js +1 -5
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.d.ts.map +1 -1
- package/esm/presentation/widget/widget/InsightWidget/useInsightMenu.js +0 -3
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.d.ts.map +1 -1
- package/esm/presentation/widgetDeleteDialog/DefaultWidgetDeleteDialog.js +2 -5
- package/esm/sdk-ui-dashboard.d.ts +7 -77
- package/package.json +21 -20
- package/styles/css/main.css +12 -0
- package/styles/css/main.css.map +1 -1
- package/styles/css/sidebar.css +12 -0
- package/styles/css/sidebar.css.map +1 -1
- package/styles/scss/sidebar.scss +12 -0
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.d.ts +0 -15
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentBasic.js +0 -33
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.d.ts +0 -12
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/DefaultAlertingManagementDialogContentEnhanced.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts +0 -12
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.d.ts.map +0 -1
- package/esm/presentation/automations/alerting/DefaultAlertingManagementDialog/components/AlertsList.js +0 -43
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.d.ts +0 -13
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentBasic.js +0 -33
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/DefaultScheduledEmailManagementDialogContentEnhanced.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts +0 -13
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.d.ts.map +0 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailManagementDialog/components/ScheduledEmailsList.js +0 -42
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts +0 -43
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.d.ts.map +0 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useInsightWidgetAlerting.js +0 -303
|
@@ -4,7 +4,7 @@ import { all, call, put, select } from "redux-saga/effects";
|
|
|
4
4
|
import { convertError } from "@gooddata/sdk-ui";
|
|
5
5
|
import { automationsRefreshed } from "../../events/scheduledEmail.js";
|
|
6
6
|
import { automationsActions } from "../../store/automations/index.js";
|
|
7
|
-
import {
|
|
7
|
+
import { selectExternalRecipient, selectIsReadOnly } from "../../store/config/configSelectors.js";
|
|
8
8
|
import { selectDashboardId } from "../../store/meta/metaSelectors.js";
|
|
9
9
|
import { selectCanManageWorkspace } from "../../store/permissions/permissionsSelectors.js";
|
|
10
10
|
import { selectCurrentUser } from "../../store/user/userSelectors.js";
|
|
@@ -12,13 +12,10 @@ import { loadDashboardUserAutomations, loadWorkspaceAutomationsCount } from "./l
|
|
|
12
12
|
export function* refreshAutomationsHandlers(ctx, cmd) {
|
|
13
13
|
const dashboardId = yield select(selectDashboardId);
|
|
14
14
|
const user = yield select(selectCurrentUser);
|
|
15
|
-
const enableScheduling = yield select(selectEnableScheduling);
|
|
16
|
-
const enableAlerting = yield select(selectEnableAlerting);
|
|
17
15
|
const canManageAutomations = yield select(selectCanManageWorkspace);
|
|
18
16
|
const isReadOnly = yield select(selectIsReadOnly);
|
|
19
|
-
const enableAutomations = enableScheduling || enableAlerting;
|
|
20
17
|
const externalRecipient = yield select(selectExternalRecipient);
|
|
21
|
-
if (!dashboardId || !user ||
|
|
18
|
+
if (!dashboardId || !user || isReadOnly) {
|
|
22
19
|
return;
|
|
23
20
|
}
|
|
24
21
|
yield put(automationsActions.setAutomationsLoading(true));
|
|
@@ -34,11 +31,10 @@ export function* refreshAutomationsHandlers(ctx, cmd) {
|
|
|
34
31
|
]));
|
|
35
32
|
}
|
|
36
33
|
catch (e) {
|
|
37
|
-
yield put(
|
|
38
|
-
batchActions([
|
|
34
|
+
yield put(batchActions([
|
|
39
35
|
automationsActions.setAutomationsLoading(false),
|
|
40
36
|
automationsActions.setAutomationsError(convertError(e)),
|
|
41
|
-
]);
|
|
37
|
+
]));
|
|
42
38
|
}
|
|
43
39
|
return automationsRefreshed(ctx, cmd.correlationId);
|
|
44
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"queryWidgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryWidgetFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAGH,KAAK,OAAO,EACZ,KAAK,kBAAkB,EAqB1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"queryWidgetFilters.d.ts","sourceRoot":"","sources":["../../../src/model/queryServices/queryWidgetFilters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,YAAY,CAAC;AAI/C,OAAO,EAGH,KAAK,OAAO,EACZ,KAAK,kBAAkB,EAqB1B,MAAM,qBAAqB,CAAC;AAG7B,OAAO,EAAE,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AASjE,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAE,KAAK,yBAAyB,EAAsB,MAAM,yBAAyB,CAAC;AAE7F,eAAO,MAAM,yBAAyB,kGAAoE,CAAC;AAiM3G,wBAAiB,gBAAgB,CAC7B,IAAI,EAAE,gBAAgB,EACtB,MAAM,EAAE,yBAAyB,EACjC,OAAO,EAAE,kBAAkB,GAC5B,YAAY,CAAC,OAAO,EAAE,CAAC,CAsEzB"}
|
|
@@ -5,7 +5,6 @@ import { areObjRefsEqual, filterLocalIdentifier, filterObjRef, insightFilters, i
|
|
|
5
5
|
import { invalidQueryArguments } from "../events/general.js";
|
|
6
6
|
import { createQueryService } from "../store/_infra/queryService.js";
|
|
7
7
|
import { selectSupportsMultipleDateFilters } from "../store/backendCapabilities/backendCapabilitiesSelectors.js";
|
|
8
|
-
import { selectEnableDateFilterIdentifiers } from "../store/config/configSelectors.js";
|
|
9
8
|
import { selectInsightByRef } from "../store/insights/insightsSelectors.js";
|
|
10
9
|
import { selectAttributeFilterConfigsDisplayAsLabelMap } from "../store/tabs/attributeFilterConfigs/attributeFilterConfigsSelectors.js";
|
|
11
10
|
import { selectAllFiltersForWidgetByRef, selectFilterableWidgetByRef, } from "../store/tabs/layout/layoutSelectors.js";
|
|
@@ -110,14 +109,11 @@ export function* queryWithInsight(_ctx, widget, insight) {
|
|
|
110
109
|
const widgetAwareDashboardFiltersSelector = selectAllFiltersForWidgetByRef(widget.ref);
|
|
111
110
|
const [widgetAwareDashboardCommonDateFilters, widgetAwareDashboardOtherFilters] = yield select(widgetAwareDashboardFiltersSelector);
|
|
112
111
|
const supportsMultipleDateFilters = yield select(selectSupportsMultipleDateFilters);
|
|
113
|
-
const enableDateFilterIdentifiers = yield select(selectEnableDateFilterIdentifiers);
|
|
114
112
|
// add all time filter explicitly in case the date widgetAwareDashboardFilters are empty
|
|
115
113
|
// this will cause the all time filter to be used instead of the insight date filter
|
|
116
114
|
// if the dashboard date filter is not ignored by the widget
|
|
117
115
|
if (!widgetAwareDashboardCommonDateFilters.length && widget.dateDataSet) {
|
|
118
|
-
widgetAwareDashboardCommonDateFilters.push(newAllTimeFilter(widget.dateDataSet,
|
|
119
|
-
? generateDateFilterLocalIdentifier(0, widget.dateDataSet)
|
|
120
|
-
: undefined));
|
|
116
|
+
widgetAwareDashboardCommonDateFilters.push(newAllTimeFilter(widget.dateDataSet, generateDateFilterLocalIdentifier(0, widget.dateDataSet)));
|
|
121
117
|
}
|
|
122
118
|
const effectiveInsightFilters = insightFilters(insight);
|
|
123
119
|
const [dateFilters, attributeFilters] = yield all([
|
|
@@ -18,12 +18,12 @@ export declare const useDashboardScheduledEmails: () => {
|
|
|
18
18
|
isScheduleEmailingDialogOpen: boolean;
|
|
19
19
|
defaultOnScheduleEmailing: (widget?: import("@gooddata/sdk-model").IWidget | undefined) => void;
|
|
20
20
|
onScheduleEmailingOpen: (widget?: import("@gooddata/sdk-model").IWidget | undefined) => void;
|
|
21
|
-
onScheduleEmailingCancel: (
|
|
22
|
-
onScheduleEmailingBack: (
|
|
21
|
+
onScheduleEmailingCancel: (_widget?: import("@gooddata/sdk-model").IWidget | undefined) => void;
|
|
22
|
+
onScheduleEmailingBack: (_widget?: import("@gooddata/sdk-model").IWidget | undefined) => void;
|
|
23
23
|
onScheduleEmailingCreateError: () => void;
|
|
24
24
|
onScheduleEmailingCreateSuccess: (scheduledEmail: import("@gooddata/sdk-model").IAutomationMetadataObject) => void;
|
|
25
25
|
onScheduleEmailingSaveError: () => void;
|
|
26
|
-
onScheduleEmailingSaveSuccess: (
|
|
26
|
+
onScheduleEmailingSaveSuccess: (_widget?: import("@gooddata/sdk-model").IWidget | undefined) => void;
|
|
27
27
|
isScheduledManagementEmailingVisible: boolean;
|
|
28
28
|
isScheduleEmailingManagementDialogOpen: boolean;
|
|
29
29
|
defaultOnScheduleEmailingManagement: (widget?: import("@gooddata/sdk-model").IWidget | undefined) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardScheduledEmails.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDashboardScheduledEmails.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.ts"],"names":[],"mappings":"AASA;;;;GAIG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoFvC,CAAC"}
|
|
@@ -22,10 +22,8 @@ export const useDashboardScheduledEmails = () => {
|
|
|
22
22
|
isScheduledEmailingVisible, isScheduleEmailingDialogOpen,
|
|
23
23
|
// List / Management Dialog
|
|
24
24
|
isScheduledManagementEmailingVisible, isScheduleEmailingManagementDialogOpen, } = useDashboardScheduledEmailsData({ scheduledExportToEdit });
|
|
25
|
-
const { defaultOnScheduleEmailing, onScheduleEmailingCancel, onScheduleEmailingBack, onScheduleEmailingCreateError, onScheduleEmailingCreateSuccess, onScheduleEmailingOpen, onScheduleEmailingSaveError, onScheduleEmailingSaveSuccess,
|
|
26
|
-
const { defaultOnScheduleEmailingManagement, onScheduleEmailingManagementAdd, onScheduleEmailingManagementClose, onScheduleEmailingManagementDeleteError, onScheduleEmailingManagementDeleteSuccess, onScheduleEmailingManagementEdit, onScheduleEmailingManagementLoadingError, onScheduleEmailingManagementOpen, } = useDashboardScheduledEmailsManagementDialog(
|
|
27
|
-
setShouldReturnToManagementDialog,
|
|
28
|
-
});
|
|
25
|
+
const { defaultOnScheduleEmailing, onScheduleEmailingCancel, onScheduleEmailingBack, onScheduleEmailingCreateError, onScheduleEmailingCreateSuccess, onScheduleEmailingOpen, onScheduleEmailingSaveError, onScheduleEmailingSaveSuccess, } = useDashboardScheduledEmailsDialog();
|
|
26
|
+
const { defaultOnScheduleEmailingManagement, onScheduleEmailingManagementAdd, onScheduleEmailingManagementClose, onScheduleEmailingManagementDeleteError, onScheduleEmailingManagementDeleteSuccess, onScheduleEmailingManagementEdit, onScheduleEmailingManagementLoadingError, onScheduleEmailingManagementOpen, } = useDashboardScheduledEmailsManagementDialog();
|
|
29
27
|
return {
|
|
30
28
|
// Local state
|
|
31
29
|
scheduledExportToEdit,
|
|
@@ -12,17 +12,17 @@ interface IOpenScheduleEmailingDialogOptions {
|
|
|
12
12
|
*/
|
|
13
13
|
export declare const useDashboardScheduledEmailsCommands: () => {
|
|
14
14
|
openScheduleEmailingDialog: (options?: IOpenScheduleEmailingDialogOptions) => void;
|
|
15
|
-
closeScheduleEmailingDialog: () =>
|
|
15
|
+
closeScheduleEmailingDialog: () => {
|
|
16
16
|
payload: undefined;
|
|
17
17
|
type: "uiSlice/closeScheduleEmailDialog";
|
|
18
18
|
};
|
|
19
|
-
openScheduleEmailingManagementDialog: (widget?: IWidget | undefined, openedFrom?: string | undefined) =>
|
|
19
|
+
openScheduleEmailingManagementDialog: (widget?: IWidget | undefined, openedFrom?: string | undefined) => {
|
|
20
20
|
payload: import("../../../types.js").IScheduleEmailContext & {
|
|
21
21
|
openedFrom?: string | undefined;
|
|
22
22
|
};
|
|
23
23
|
type: "uiSlice/openScheduleEmailManagementDialog";
|
|
24
24
|
};
|
|
25
|
-
closeScheduleEmailingManagementDialog: () =>
|
|
25
|
+
closeScheduleEmailingManagementDialog: () => {
|
|
26
26
|
payload: undefined;
|
|
27
27
|
type: "uiSlice/closeScheduleEmailManagementDialog";
|
|
28
28
|
};
|
package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardScheduledEmailsCommands.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,OAAO,EAGf,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDashboardScheduledEmailsCommands.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsCommands.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,OAAO,EAGf,MAAM,qBAAqB,CAAC;AAU7B;;GAEG;AACH,UAAU,kCAAkC;IACxC,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,yBAAyB,CAAC;CACxC;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;;;;;CA+D/C,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { areObjRefsEqual, isInsightWidget, } from "@gooddata/sdk-model";
|
|
4
4
|
import { switchDashboardTab } from "../../commands/tabs.js";
|
|
5
|
-
import { selectEnableScheduling } from "../../store/config/configSelectors.js";
|
|
6
5
|
import { selectInsights } from "../../store/insights/insightsSelectors.js";
|
|
7
6
|
import { selectWidgets } from "../../store/tabs/layout/layoutSelectors.js";
|
|
8
7
|
import { selectActiveTabLocalIdentifier } from "../../store/tabs/tabsSelectors.js";
|
|
@@ -18,37 +17,32 @@ export const useDashboardScheduledEmailsCommands = () => {
|
|
|
18
17
|
const widgets = useDashboardSelector(selectWidgets);
|
|
19
18
|
const insights = useDashboardSelector(selectInsights);
|
|
20
19
|
const activeTabId = useDashboardSelector(selectActiveTabLocalIdentifier);
|
|
21
|
-
// Feature Flags
|
|
22
|
-
const isScheduledEmailingEnabled = useDashboardSelector(selectEnableScheduling);
|
|
23
20
|
// Single Schedule Dialog
|
|
24
21
|
const openScheduleEmailingDialog = useCallback((options = {}) => {
|
|
25
22
|
const { widget, openedFrom, schedule } = options;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
dispatch(switchDashboardTab(targetTabIdentifier));
|
|
30
|
-
}
|
|
31
|
-
dispatch(uiActions.openScheduleEmailDialog({
|
|
32
|
-
...(widget?.ref ? { widgetRef: widget.ref, openedFrom } : { openedFrom }),
|
|
33
|
-
...(schedule ? { schedule } : {}),
|
|
34
|
-
}));
|
|
35
|
-
const selectedWidget = widgets.find((w) => w.localIdentifier === widget?.localIdentifier);
|
|
36
|
-
const insightRef = isInsightWidget(selectedWidget) ? selectedWidget.insight : undefined;
|
|
37
|
-
const insight = insights.find((i) => areObjRefsEqual(i.insight.ref, insightRef));
|
|
38
|
-
automationInteraction({
|
|
39
|
-
type: "scheduledExportInitialized",
|
|
40
|
-
automation_source: widget ? "widget" : "dashboard",
|
|
41
|
-
automation_visualization_type: insight?.insight.visualizationUrl,
|
|
42
|
-
});
|
|
23
|
+
const targetTabIdentifier = schedule?.metadata?.targetTabIdentifier;
|
|
24
|
+
if (targetTabIdentifier && targetTabIdentifier !== activeTabId) {
|
|
25
|
+
dispatch(switchDashboardTab(targetTabIdentifier));
|
|
43
26
|
}
|
|
44
|
-
|
|
45
|
-
const closeScheduleEmailingDialog = useCallback(() => isScheduledEmailingEnabled && dispatch(uiActions.closeScheduleEmailDialog()), [dispatch, isScheduledEmailingEnabled]);
|
|
46
|
-
// List / Management Dialog
|
|
47
|
-
const openScheduleEmailingManagementDialog = useCallback((widget, openedFrom) => isScheduledEmailingEnabled &&
|
|
48
|
-
dispatch(uiActions.openScheduleEmailManagementDialog({
|
|
27
|
+
dispatch(uiActions.openScheduleEmailDialog({
|
|
49
28
|
...(widget?.ref ? { widgetRef: widget.ref, openedFrom } : { openedFrom }),
|
|
50
|
-
|
|
51
|
-
|
|
29
|
+
...(schedule ? { schedule } : {}),
|
|
30
|
+
}));
|
|
31
|
+
const selectedWidget = widgets.find((w) => w.localIdentifier === widget?.localIdentifier);
|
|
32
|
+
const insightRef = isInsightWidget(selectedWidget) ? selectedWidget.insight : undefined;
|
|
33
|
+
const insight = insights.find((i) => areObjRefsEqual(i.insight.ref, insightRef));
|
|
34
|
+
automationInteraction({
|
|
35
|
+
type: "scheduledExportInitialized",
|
|
36
|
+
automation_source: widget ? "widget" : "dashboard",
|
|
37
|
+
automation_visualization_type: insight?.insight.visualizationUrl,
|
|
38
|
+
});
|
|
39
|
+
}, [activeTabId, automationInteraction, dispatch, insights, widgets]);
|
|
40
|
+
const closeScheduleEmailingDialog = useCallback(() => dispatch(uiActions.closeScheduleEmailDialog()), [dispatch]);
|
|
41
|
+
// List / Management Dialog
|
|
42
|
+
const openScheduleEmailingManagementDialog = useCallback((widget, openedFrom) => dispatch(uiActions.openScheduleEmailManagementDialog({
|
|
43
|
+
...(widget?.ref ? { widgetRef: widget.ref, openedFrom } : { openedFrom }),
|
|
44
|
+
})), [dispatch]);
|
|
45
|
+
const closeScheduleEmailingManagementDialog = useCallback(() => dispatch(uiActions.closeScheduleEmailManagementDialog()), [dispatch]);
|
|
52
46
|
return {
|
|
53
47
|
openScheduleEmailingDialog,
|
|
54
48
|
closeScheduleEmailingDialog,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardScheduledEmailsData.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,yBAAyB,EAGjC,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDashboardScheduledEmailsData.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsData.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,yBAAyB,EAGjC,MAAM,qBAAqB,CAAC;AAoC7B,UAAU,qCAAqC;IAC3C,qBAAqB,CAAC,EAAE,yBAAyB,CAAC;CACrD;AAED;;GAEG;AACH,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;CAkG3C,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { isExportDefinitionVisualizationObjectRequestPayload, } from "@gooddata/sdk-model";
|
|
3
3
|
import { selectAllAutomationsCount, selectAutomationsError, selectAutomationsIsInitialized, selectAutomationsIsLoading, selectDashboardUserAutomationSchedulesInContext, } from "../../store/automations/automationsSelectors.js";
|
|
4
|
-
import { selectEnableExportToDocumentStorage,
|
|
4
|
+
import { selectEnableExportToDocumentStorage, selectIsReadOnly } from "../../store/config/configSelectors.js";
|
|
5
5
|
import { selectEntitlementMaxAutomations, selectEntitlementUnlimitedAutomations, } from "../../store/entitlements/entitlementsSelectors.js";
|
|
6
6
|
import { selectInsightByWidgetRef } from "../../store/insights/insightsSelectors.js";
|
|
7
7
|
import { selectNotificationChannels, selectNotificationChannelsCount, selectNotificationChannelsCountWithoutInPlatform, selectNotificationChannelsWithoutInPlatform, } from "../../store/notificationChannels/notificationChannelsSelectors.js";
|
|
@@ -25,8 +25,6 @@ export const useDashboardScheduledEmailsData = ({ scheduledExportToEdit, }) => {
|
|
|
25
25
|
const isInViewMode = useDashboardSelector(selectIsInViewMode);
|
|
26
26
|
// Visibility configuration
|
|
27
27
|
const menuButtonItemsVisibility = useDashboardSelector(selectMenuButtonItemsVisibility);
|
|
28
|
-
// Feature flags
|
|
29
|
-
const isScheduledEmailingEnabled = useDashboardSelector(selectEnableScheduling);
|
|
30
28
|
// Permissions
|
|
31
29
|
const isWorkspaceManager = useDashboardSelector(selectCanManageWorkspace);
|
|
32
30
|
const canCreateAutomation = useDashboardSelector(selectCanCreateAutomation);
|
|
@@ -52,7 +50,6 @@ export const useDashboardScheduledEmailsData = ({ scheduledExportToEdit, }) => {
|
|
|
52
50
|
const showDueToNumberOfAvailableDestinations = numberOfAvailableDestinations > 0 || isWorkspaceManager;
|
|
53
51
|
const isSchedulingAvailable = isInViewMode &&
|
|
54
52
|
!isReadOnly &&
|
|
55
|
-
isScheduledEmailingEnabled &&
|
|
56
53
|
showDueToNumberOfAvailableDestinations &&
|
|
57
54
|
(menuButtonItemsVisibility.scheduleEmailButton ?? true);
|
|
58
55
|
// Single Schedule Dialog
|
|
@@ -5,12 +5,11 @@ import { type IAutomationMetadataObject, type IWidget } from "@gooddata/sdk-mode
|
|
|
5
5
|
export declare const useDashboardScheduledEmailsDialog: () => {
|
|
6
6
|
defaultOnScheduleEmailing: (widget?: IWidget | undefined) => void;
|
|
7
7
|
onScheduleEmailingOpen: (widget?: IWidget | undefined) => void;
|
|
8
|
-
onScheduleEmailingCancel: (
|
|
9
|
-
onScheduleEmailingBack: (
|
|
8
|
+
onScheduleEmailingCancel: (_widget?: IWidget | undefined) => void;
|
|
9
|
+
onScheduleEmailingBack: (_widget?: IWidget | undefined) => void;
|
|
10
10
|
onScheduleEmailingCreateError: () => void;
|
|
11
11
|
onScheduleEmailingCreateSuccess: (scheduledEmail: IAutomationMetadataObject) => void;
|
|
12
12
|
onScheduleEmailingSaveError: () => void;
|
|
13
|
-
onScheduleEmailingSaveSuccess: (
|
|
14
|
-
setShouldReturnToManagementDialog: import("react").Dispatch<import("react").SetStateAction<boolean>>;
|
|
13
|
+
onScheduleEmailingSaveSuccess: (_widget?: IWidget | undefined) => void;
|
|
15
14
|
};
|
|
16
15
|
//# sourceMappingURL=useDashboardScheduledEmailsDialog.d.ts.map
|
package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardScheduledEmailsDialog.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAE9B,KAAK,OAAO,EAKf,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDashboardScheduledEmailsDialog.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAE9B,KAAK,OAAO,EAKf,MAAM,qBAAqB,CAAC;AAc7B;;GAEG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;CAmI7C,CAAC"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
|
-
import { useCallback
|
|
2
|
+
import { useCallback } from "react";
|
|
3
3
|
import { areObjRefsEqual, isExportDefinitionDashboardRequestPayload, isExportDefinitionVisualizationObjectRequestPayload, isInsightWidget, } from "@gooddata/sdk-model";
|
|
4
4
|
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
5
5
|
import { messages } from "../../../locales.js";
|
|
6
|
-
import { selectEnableAutomationManagement } from "../../store/config/configSelectors.js";
|
|
7
6
|
import { selectInsights } from "../../store/insights/insightsSelectors.js";
|
|
8
7
|
import { selectDashboardRef } from "../../store/meta/metaSelectors.js";
|
|
9
8
|
import { selectNotificationChannels } from "../../store/notificationChannels/notificationChannelsSelectors.js";
|
|
@@ -22,18 +21,11 @@ export const useDashboardScheduledEmailsDialog = () => {
|
|
|
22
21
|
const destinations = useDashboardSelector(selectNotificationChannels);
|
|
23
22
|
const allWidgets = useDashboardSelector(selectWidgets);
|
|
24
23
|
const allInsights = useDashboardSelector(selectInsights);
|
|
25
|
-
const
|
|
26
|
-
const {
|
|
27
|
-
const { refreshAutomations, refreshAutomationManagementItems } = useDashboardAutomations();
|
|
28
|
-
const [shouldReturnToManagementDialog, setShouldReturnToManagementDialog] = useState(false);
|
|
24
|
+
const { closeScheduleEmailingDialog, openScheduleEmailingDialog } = useDashboardScheduledEmailsCommands();
|
|
25
|
+
const { refreshAutomationManagementItems } = useDashboardAutomations();
|
|
29
26
|
const handleRefreshAutomations = useCallback(() => {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
refreshAutomations();
|
|
35
|
-
}
|
|
36
|
-
}, [enableAutomationManagement, refreshAutomations, refreshAutomationManagementItems]);
|
|
27
|
+
refreshAutomationManagementItems();
|
|
28
|
+
}, [refreshAutomationManagementItems]);
|
|
37
29
|
/*
|
|
38
30
|
* exports and scheduling are not available when rendering a dashboard that is not persisted.
|
|
39
31
|
* this can happen when a new dashboard is created and is being edited.
|
|
@@ -45,36 +37,20 @@ export const useDashboardScheduledEmailsDialog = () => {
|
|
|
45
37
|
return;
|
|
46
38
|
}
|
|
47
39
|
openScheduleEmailingDialog({ widget, openedFrom: "dashboard" });
|
|
48
|
-
|
|
49
|
-
}, [dashboardRef, openScheduleEmailingDialog, setShouldReturnToManagementDialog]);
|
|
40
|
+
}, [dashboardRef, openScheduleEmailingDialog]);
|
|
50
41
|
// Open / Close
|
|
51
42
|
const onScheduleEmailingOpen = useCallback((widget) => {
|
|
52
43
|
openScheduleEmailingDialog({ widget, openedFrom: "widget" });
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const onScheduleEmailingCancel = useCallback((widget) => {
|
|
44
|
+
}, [openScheduleEmailingDialog]);
|
|
45
|
+
const onScheduleEmailingCancel = useCallback((_widget) => {
|
|
56
46
|
closeScheduleEmailingDialog();
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
}, [
|
|
61
|
-
enableAutomationManagement,
|
|
62
|
-
shouldReturnToManagementDialog,
|
|
63
|
-
closeScheduleEmailingDialog,
|
|
64
|
-
openScheduleEmailingManagementDialog,
|
|
65
|
-
]);
|
|
66
|
-
const onScheduleEmailingBack = useCallback((widget) => {
|
|
47
|
+
}, [closeScheduleEmailingDialog]);
|
|
48
|
+
const onScheduleEmailingBack = useCallback((_widget) => {
|
|
67
49
|
closeScheduleEmailingDialog();
|
|
68
|
-
|
|
69
|
-
openScheduleEmailingManagementDialog(widget);
|
|
70
|
-
}
|
|
71
|
-
}, [enableAutomationManagement, closeScheduleEmailingDialog, openScheduleEmailingManagementDialog]);
|
|
50
|
+
}, [closeScheduleEmailingDialog]);
|
|
72
51
|
// Create
|
|
73
52
|
const onScheduleEmailingCreateSuccess = useCallback((scheduledEmail) => {
|
|
74
53
|
closeScheduleEmailingDialog();
|
|
75
|
-
if (!enableAutomationManagement) {
|
|
76
|
-
openScheduleEmailingManagementDialog();
|
|
77
|
-
}
|
|
78
54
|
addSuccess(messages.scheduleEmailSubmitSuccess);
|
|
79
55
|
handleRefreshAutomations();
|
|
80
56
|
const widgetId = scheduledEmail.exportDefinitions?.find(({ requestPayload }) => isExportDefinitionVisualizationObjectRequestPayload(requestPayload))?.requestPayload?.content.widget;
|
|
@@ -95,9 +71,7 @@ export const useDashboardScheduledEmailsDialog = () => {
|
|
|
95
71
|
...(insight ? {} : { filter_context: dashboardFilters.length > 0 ? "edited" : "default" }),
|
|
96
72
|
});
|
|
97
73
|
}, [
|
|
98
|
-
enableAutomationManagement,
|
|
99
74
|
closeScheduleEmailingDialog,
|
|
100
|
-
openScheduleEmailingManagementDialog,
|
|
101
75
|
addSuccess,
|
|
102
76
|
handleRefreshAutomations,
|
|
103
77
|
allWidgets,
|
|
@@ -110,20 +84,11 @@ export const useDashboardScheduledEmailsDialog = () => {
|
|
|
110
84
|
addError(messages.scheduleEmailSubmitError);
|
|
111
85
|
}, [closeScheduleEmailingDialog, addError]);
|
|
112
86
|
// Edit
|
|
113
|
-
const onScheduleEmailingSaveSuccess = useCallback((
|
|
87
|
+
const onScheduleEmailingSaveSuccess = useCallback((_widget) => {
|
|
114
88
|
closeScheduleEmailingDialog();
|
|
115
|
-
if (!enableAutomationManagement) {
|
|
116
|
-
openScheduleEmailingManagementDialog(widget);
|
|
117
|
-
}
|
|
118
89
|
addSuccess(messages.scheduleEmailSaveSuccess);
|
|
119
90
|
handleRefreshAutomations();
|
|
120
|
-
}, [
|
|
121
|
-
enableAutomationManagement,
|
|
122
|
-
closeScheduleEmailingDialog,
|
|
123
|
-
openScheduleEmailingManagementDialog,
|
|
124
|
-
addSuccess,
|
|
125
|
-
handleRefreshAutomations,
|
|
126
|
-
]);
|
|
91
|
+
}, [closeScheduleEmailingDialog, addSuccess, handleRefreshAutomations]);
|
|
127
92
|
const onScheduleEmailingSaveError = useCallback(() => {
|
|
128
93
|
closeScheduleEmailingDialog();
|
|
129
94
|
addError(messages.scheduleEmailSaveError);
|
|
@@ -137,6 +102,5 @@ export const useDashboardScheduledEmailsDialog = () => {
|
|
|
137
102
|
onScheduleEmailingCreateSuccess,
|
|
138
103
|
onScheduleEmailingSaveError,
|
|
139
104
|
onScheduleEmailingSaveSuccess,
|
|
140
|
-
setShouldReturnToManagementDialog,
|
|
141
105
|
};
|
|
142
106
|
};
|
package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.d.ts
CHANGED
|
@@ -2,13 +2,7 @@ import { type IAutomationMetadataObject, type IWidget } from "@gooddata/sdk-mode
|
|
|
2
2
|
/**
|
|
3
3
|
* @internal
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
6
|
-
setShouldReturnToManagementDialog: (value: boolean) => void;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
export declare const useDashboardScheduledEmailsManagementDialog: ({ setShouldReturnToManagementDialog, }: IUseDashboardScheduledEmailsManagementDialogProps) => {
|
|
5
|
+
export declare const useDashboardScheduledEmailsManagementDialog: () => {
|
|
12
6
|
defaultOnScheduleEmailingManagement: (widget?: IWidget | undefined) => void;
|
|
13
7
|
onScheduleEmailingManagementOpen: (widget?: IWidget | undefined) => void;
|
|
14
8
|
onScheduleEmailingManagementClose: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardScheduledEmailsManagementDialog.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDashboardScheduledEmailsManagementDialog.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,KAAK,yBAAyB,EAAE,KAAK,OAAO,EAAE,MAAM,qBAAqB,CAAC;AAWnF;;GAEG;AACH,eAAO,MAAM,2CAA2C;;;;;;;;;CAkGvD,CAAC"}
|
package/esm/model/react/useDasboardScheduledEmails/useDashboardScheduledEmailsManagementDialog.js
CHANGED
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { useToastMessage } from "@gooddata/sdk-ui-kit";
|
|
4
4
|
import { messages } from "../../../locales.js";
|
|
5
|
-
import { selectEnableAutomationManagement } from "../../store/config/configSelectors.js";
|
|
6
5
|
import { selectDashboardRef } from "../../store/meta/metaSelectors.js";
|
|
7
6
|
import { selectIsScheduleEmailManagementDialogContext } from "../../store/ui/uiSelectors.js";
|
|
8
7
|
import { useDashboardSelector } from "../DashboardStoreProvider.js";
|
|
@@ -11,21 +10,15 @@ import { useDashboardScheduledEmailsCommands } from "./useDashboardScheduledEmai
|
|
|
11
10
|
/**
|
|
12
11
|
* @internal
|
|
13
12
|
*/
|
|
14
|
-
export const useDashboardScheduledEmailsManagementDialog = (
|
|
13
|
+
export const useDashboardScheduledEmailsManagementDialog = () => {
|
|
15
14
|
const { addSuccess, addError } = useToastMessage();
|
|
16
15
|
const dashboardRef = useDashboardSelector(selectDashboardRef);
|
|
17
|
-
const enableAutomationManagement = useDashboardSelector(selectEnableAutomationManagement);
|
|
18
16
|
const managementDialogContext = useDashboardSelector(selectIsScheduleEmailManagementDialogContext);
|
|
19
17
|
const { closeScheduleEmailingDialog, closeScheduleEmailingManagementDialog, openScheduleEmailingDialog, openScheduleEmailingManagementDialog, } = useDashboardScheduledEmailsCommands();
|
|
20
|
-
const {
|
|
18
|
+
const { refreshAutomationManagementItems } = useDashboardAutomations();
|
|
21
19
|
const handleRefreshAutomations = useCallback(() => {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
refreshAutomations();
|
|
27
|
-
}
|
|
28
|
-
}, [enableAutomationManagement, refreshAutomations, refreshAutomationManagementItems]);
|
|
20
|
+
refreshAutomationManagementItems();
|
|
21
|
+
}, [refreshAutomationManagementItems]);
|
|
29
22
|
/*
|
|
30
23
|
* exports and scheduling are not available when rendering a dashboard that is not persisted.
|
|
31
24
|
* this can happen when a new dashboard is created and is being edited.
|
|
@@ -44,8 +37,7 @@ export const useDashboardScheduledEmailsManagementDialog = ({ setShouldReturnToM
|
|
|
44
37
|
}, [openScheduleEmailingManagementDialog]);
|
|
45
38
|
const onScheduleEmailingManagementClose = useCallback(() => {
|
|
46
39
|
closeScheduleEmailingManagementDialog();
|
|
47
|
-
|
|
48
|
-
}, [closeScheduleEmailingManagementDialog, setShouldReturnToManagementDialog]);
|
|
40
|
+
}, [closeScheduleEmailingManagementDialog]);
|
|
49
41
|
// Loading
|
|
50
42
|
const onScheduleEmailingManagementLoadingError = useCallback(() => {
|
|
51
43
|
closeScheduleEmailingManagementDialog();
|
|
@@ -57,37 +49,12 @@ export const useDashboardScheduledEmailsManagementDialog = ({ setShouldReturnToM
|
|
|
57
49
|
? { ref: managementDialogContext.widgetRef }
|
|
58
50
|
: undefined;
|
|
59
51
|
const widget = contextWidget ?? targetWidget;
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
setShouldReturnToManagementDialog(true);
|
|
65
|
-
closeScheduleEmailingManagementDialog();
|
|
66
|
-
openScheduleEmailingDialog({ widget });
|
|
67
|
-
}
|
|
68
|
-
}, [
|
|
69
|
-
enableAutomationManagement,
|
|
70
|
-
managementDialogContext,
|
|
71
|
-
setShouldReturnToManagementDialog,
|
|
72
|
-
closeScheduleEmailingManagementDialog,
|
|
73
|
-
openScheduleEmailingDialog,
|
|
74
|
-
]);
|
|
52
|
+
openScheduleEmailingDialog({ widget });
|
|
53
|
+
}, [managementDialogContext, openScheduleEmailingDialog]);
|
|
75
54
|
// Edit
|
|
76
55
|
const onScheduleEmailingManagementEdit = useCallback((schedule, widget) => {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
setShouldReturnToManagementDialog(true);
|
|
82
|
-
closeScheduleEmailingManagementDialog();
|
|
83
|
-
openScheduleEmailingDialog({ widget, schedule });
|
|
84
|
-
}
|
|
85
|
-
}, [
|
|
86
|
-
enableAutomationManagement,
|
|
87
|
-
closeScheduleEmailingManagementDialog,
|
|
88
|
-
openScheduleEmailingDialog,
|
|
89
|
-
setShouldReturnToManagementDialog,
|
|
90
|
-
]);
|
|
56
|
+
openScheduleEmailingDialog({ widget, schedule });
|
|
57
|
+
}, [openScheduleEmailingDialog]);
|
|
91
58
|
// Delete
|
|
92
59
|
const onScheduleEmailingManagementDeleteSuccess = useCallback(() => {
|
|
93
60
|
closeScheduleEmailingDialog();
|
|
@@ -4,12 +4,12 @@ import { type IAutomationMetadataObject, type IWidget } from "@gooddata/sdk-mode
|
|
|
4
4
|
*/
|
|
5
5
|
export declare const useDashboardAlertsCommands: () => {
|
|
6
6
|
openAlertDialog: (widget?: IWidget | undefined, alert?: IAutomationMetadataObject | undefined) => void;
|
|
7
|
-
closeAlertDialog: () =>
|
|
7
|
+
closeAlertDialog: () => {
|
|
8
8
|
payload: undefined;
|
|
9
9
|
type: "uiSlice/closeAlertingDialog";
|
|
10
10
|
};
|
|
11
11
|
openAlertsManagementDialog: (widget?: IWidget | undefined, openedFrom?: string | undefined) => void;
|
|
12
|
-
closeAlertsManagementDialog: () =>
|
|
12
|
+
closeAlertsManagementDialog: () => {
|
|
13
13
|
payload: undefined;
|
|
14
14
|
type: "uiSlice/closeAlertingManagementDialog";
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardAlertsCommands.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDashboardAlerting/useDashboardAlertsCommands.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,OAAO,EAGf,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDashboardAlertsCommands.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDashboardAlerting/useDashboardAlertsCommands.tsx"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,OAAO,EAGf,MAAM,qBAAqB,CAAC;AAU7B;;GAEG;AACH,eAAO,MAAM,0BAA0B;;;;;;;;;;;CAmEtC,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
import { useCallback } from "react";
|
|
3
3
|
import { areObjRefsEqual, isInsightWidget, } from "@gooddata/sdk-model";
|
|
4
4
|
import { switchDashboardTab } from "../../commands/tabs.js";
|
|
5
|
-
import { selectEnableAlerting } from "../../store/config/configSelectors.js";
|
|
6
5
|
import { selectInsights } from "../../store/insights/insightsSelectors.js";
|
|
7
6
|
import { selectWidgetLocalIdToTabIdMap, selectWidgets } from "../../store/tabs/layout/layoutSelectors.js";
|
|
8
7
|
import { selectActiveTabLocalIdentifier } from "../../store/tabs/tabsSelectors.js";
|
|
@@ -19,37 +18,30 @@ export const useDashboardAlertsCommands = () => {
|
|
|
19
18
|
const insights = useDashboardSelector(selectInsights);
|
|
20
19
|
const widgetTabMap = useDashboardSelector(selectWidgetLocalIdToTabIdMap);
|
|
21
20
|
const activeTabId = useDashboardSelector(selectActiveTabLocalIdentifier);
|
|
22
|
-
// Feature Flags
|
|
23
|
-
const isAlertingEnabled = useDashboardSelector(selectEnableAlerting);
|
|
24
21
|
// Single Alert Dialog
|
|
25
22
|
const openAlertDialog = useCallback((widget, alert) => {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
dispatch(switchDashboardTab(targetTabId));
|
|
32
|
-
}
|
|
23
|
+
const widgetLocalId = widget?.localIdentifier ?? alert?.metadata?.widget;
|
|
24
|
+
if (widgetLocalId) {
|
|
25
|
+
const targetTabId = widgetTabMap[widgetLocalId];
|
|
26
|
+
if (targetTabId && targetTabId !== activeTabId) {
|
|
27
|
+
dispatch(switchDashboardTab(targetTabId));
|
|
33
28
|
}
|
|
34
|
-
dispatch(uiActions.openAlertingDialog({
|
|
35
|
-
...(widget?.ref ? { widgetRef: widget.ref } : {}),
|
|
36
|
-
...(alert ? { alert } : {}),
|
|
37
|
-
}));
|
|
38
|
-
const selectedWidget = widgets.find((w) => w.localIdentifier === widget?.localIdentifier);
|
|
39
|
-
const insightRef = isInsightWidget(selectedWidget) ? selectedWidget.insight : undefined;
|
|
40
|
-
const insight = insights.find((i) => areObjRefsEqual(i.insight.ref, insightRef));
|
|
41
|
-
automationInteraction({
|
|
42
|
-
type: "alertInitialized",
|
|
43
|
-
automation_visualization_type: insight?.insight.visualizationUrl,
|
|
44
|
-
});
|
|
45
29
|
}
|
|
46
|
-
|
|
47
|
-
|
|
30
|
+
dispatch(uiActions.openAlertingDialog({
|
|
31
|
+
...(widget?.ref ? { widgetRef: widget.ref } : {}),
|
|
32
|
+
...(alert ? { alert } : {}),
|
|
33
|
+
}));
|
|
34
|
+
const selectedWidget = widgets.find((w) => w.localIdentifier === widgetLocalId);
|
|
35
|
+
const insightRef = isInsightWidget(selectedWidget) ? selectedWidget.insight : undefined;
|
|
36
|
+
const insight = insights.find((i) => areObjRefsEqual(i.insight.ref, insightRef));
|
|
37
|
+
automationInteraction({
|
|
38
|
+
type: "alertInitialized",
|
|
39
|
+
automation_visualization_type: insight?.insight.visualizationUrl,
|
|
40
|
+
});
|
|
41
|
+
}, [activeTabId, automationInteraction, dispatch, insights, widgetTabMap, widgets]);
|
|
42
|
+
const closeAlertDialog = useCallback(() => dispatch(uiActions.closeAlertingDialog()), [dispatch]);
|
|
48
43
|
// List / Management Dialog
|
|
49
44
|
const openAlertsManagementDialog = useCallback((widget, openedFrom) => {
|
|
50
|
-
if (!isAlertingEnabled) {
|
|
51
|
-
return;
|
|
52
|
-
}
|
|
53
45
|
if (widget?.localIdentifier) {
|
|
54
46
|
const targetTabId = widgetTabMap[widget.localIdentifier];
|
|
55
47
|
if (targetTabId && targetTabId !== activeTabId) {
|
|
@@ -59,8 +51,8 @@ export const useDashboardAlertsCommands = () => {
|
|
|
59
51
|
dispatch(uiActions.openAlertingManagementDialog({
|
|
60
52
|
...(widget?.ref ? { widgetRef: widget.ref, openedFrom } : { openedFrom }),
|
|
61
53
|
}));
|
|
62
|
-
}, [activeTabId, dispatch,
|
|
63
|
-
const closeAlertsManagementDialog = useCallback(() =>
|
|
54
|
+
}, [activeTabId, dispatch, widgetTabMap]);
|
|
55
|
+
const closeAlertsManagementDialog = useCallback(() => dispatch(uiActions.closeAlertingManagementDialog()), [dispatch]);
|
|
64
56
|
return {
|
|
65
57
|
openAlertDialog,
|
|
66
58
|
closeAlertDialog,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardAlertsData.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDashboardAlerting/useDashboardAlertsData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAkCrE,UAAU,4BAA4B;IAClC,WAAW,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"useDashboardAlertsData.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDashboardAlerting/useDashboardAlertsData.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAkCrE,UAAU,4BAA4B;IAClC,WAAW,CAAC,EAAE,yBAAyB,CAAC;CAC3C;AAED;;GAEG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;CA2ElC,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// (C) 2022-2026 GoodData Corporation
|
|
2
2
|
import { selectAllAutomationsCount, selectAutomationsError, selectAutomationsIsInitialized, selectAutomationsIsLoading, selectDashboardUserAutomationAlertsInContext, } from "../../store/automations/automationsSelectors.js";
|
|
3
|
-
import {
|
|
3
|
+
import { selectIsReadOnly } from "../../store/config/configSelectors.js";
|
|
4
4
|
import { selectEntitlementMaxAutomations, selectEntitlementUnlimitedAutomations, } from "../../store/entitlements/entitlementsSelectors.js";
|
|
5
5
|
import { selectInsightByWidgetRef } from "../../store/insights/insightsSelectors.js";
|
|
6
6
|
import { selectNotificationChannels, selectNotificationChannelsCount, } from "../../store/notificationChannels/notificationChannelsSelectors.js";
|
|
@@ -24,8 +24,6 @@ export const useDashboardAlertsData = ({ alertToEdit }) => {
|
|
|
24
24
|
const isInViewMode = useDashboardSelector(selectIsInViewMode);
|
|
25
25
|
// Visibility configuration
|
|
26
26
|
const menuButtonItemsVisibility = useDashboardSelector(selectMenuButtonItemsVisibility);
|
|
27
|
-
// Feature flags
|
|
28
|
-
const isAlertingEnabled = useDashboardSelector(selectEnableAlerting);
|
|
29
27
|
// Permissions
|
|
30
28
|
const isWorkspaceManager = useDashboardSelector(selectCanManageWorkspace);
|
|
31
29
|
const canCreateAutomation = useDashboardSelector(selectCanCreateAutomation);
|
|
@@ -42,7 +40,6 @@ export const useDashboardAlertsData = ({ alertToEdit }) => {
|
|
|
42
40
|
const showDueToNumberOfAvailableDestinations = numberOfAvailableDestinations > 0 || isWorkspaceManager;
|
|
43
41
|
const isAlertingAvailable = isInViewMode &&
|
|
44
42
|
!isReadOnly &&
|
|
45
|
-
isAlertingEnabled &&
|
|
46
43
|
showDueToNumberOfAvailableDestinations &&
|
|
47
44
|
(menuButtonItemsVisibility.alertingButton ?? true);
|
|
48
45
|
// Single Schedule Dialog
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDashboardAlertsDialog.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDashboardAlerting/useDashboardAlertsDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,OAAO,EAGf,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"useDashboardAlertsDialog.d.ts","sourceRoot":"","sources":["../../../../src/model/react/useDashboardAlerting/useDashboardAlertsDialog.ts"],"names":[],"mappings":"AAIA,OAAO,EACH,KAAK,yBAAyB,EAC9B,KAAK,OAAO,EAGf,MAAM,qBAAqB,CAAC;AAc7B;;GAEG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;CAgIpC,CAAC"}
|