@gooddata/sdk-ui-dashboard 11.52.0-alpha.1 → 11.52.0-alpha.4
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 +86 -14
- package/esm/__version.d.ts +1 -1
- package/esm/__version.js +1 -1
- package/esm/index.d.ts +1 -5
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js +0 -3
- package/esm/model/commandHandlers/index.d.ts.map +1 -1
- package/esm/model/commandHandlers/index.js +0 -2
- package/esm/model/commands/base.d.ts +1 -1
- package/esm/model/commands/base.d.ts.map +1 -1
- package/esm/model/commands/index.d.ts +1 -2
- package/esm/model/commands/index.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.d.ts +0 -2
- package/esm/model/store/dashboardStore.d.ts.map +1 -1
- package/esm/model/store/dashboardStore.js +0 -2
- package/esm/model/store/types.d.ts +0 -3
- package/esm/model/store/types.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js +2 -2
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.d.ts +3 -4
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.js +14 -16
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts +1 -3
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.js +1 -4
- package/esm/presentation/automations/alerting/types.d.ts +1 -13
- package/esm/presentation/automations/alerting/types.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts +4 -5
- package/esm/presentation/automations/connectors/AlertingConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/AlertingConnector.js +8 -17
- package/esm/presentation/automations/connectors/AlertingConnector.test.js +0 -16
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts +4 -4
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.js +8 -18
- package/esm/presentation/automations/connectors/ScheduledEmailConnector.test.js +0 -20
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.d.ts +1 -4
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.js +5 -10
- package/esm/presentation/automations/connectors/hooks/useBuildAlertingDialogContext.test.js +13 -10
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.js +35 -3
- package/esm/presentation/automations/connectors/hooks/useBuildAutomationsContext.test.js +76 -27
- package/esm/presentation/automations/connectors/hooks/useBuildScheduledEmailDialogContext.d.ts +1 -4
- package/esm/presentation/automations/connectors/hooks/useBuildScheduledEmailDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/connectors/hooks/useBuildScheduledEmailDialogContext.js +1 -14
- package/esm/presentation/automations/connectors/hooks/useBuildScheduledEmailDialogContext.test.js +1 -11
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts +11 -14
- package/esm/presentation/automations/contexts/AlertingDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/AlertingDialogContext.js +3 -3
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts +31 -1
- package/esm/presentation/automations/contexts/AutomationsContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts +5 -18
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.d.ts.map +1 -1
- package/esm/presentation/automations/contexts/ScheduledEmailDialogContext.js +3 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/DefaultScheduledEmailDialog.js +5 -5
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts +3 -12
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelect.js +21 -21
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts +6 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/RecipientsSelectRenderer.js +14 -27
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts +13 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.d.ts.map +1 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/components/RecipientsSelect/useWorkspaceUsersSearch.js +44 -0
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts +1 -3
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useEditScheduledEmail.js +1 -4
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailEffectiveFilters.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailEffectiveFilters.js +3 -12
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailFilters.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailFilters.js +2 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailFormState.d.ts +8 -9
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailFormState.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/DefaultScheduledEmailDialog/hooks/useScheduledEmailFormState.js +12 -11
- package/esm/presentation/automations/scheduledEmail/types.d.ts +1 -13
- package/esm/presentation/automations/scheduledEmail/types.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/utils/users.d.ts +1 -2
- package/esm/presentation/automations/scheduledEmail/utils/users.d.ts.map +1 -1
- package/esm/presentation/automations/scheduledEmail/utils/users.js +1 -10
- package/esm/presentation/automations/shared/automationFilters/components/AutomationDateFilter.test.js +9 -0
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useAutomationVisibleFilters.js +7 -2
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/hooks/useValidateExistingAutomationFilters.js +2 -14
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts +12 -3
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationAlertParameters.js +3 -11
- package/esm/presentation/automations/shared/automationFilters/useAutomationExportParameters.d.ts +7 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationExportParameters.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationExportParameters.js +9 -25
- package/esm/presentation/automations/shared/automationFilters/useAutomationFiltersSelect.d.ts.map +1 -1
- package/esm/presentation/automations/shared/automationFilters/useAutomationFiltersSelect.js +4 -7
- package/esm/presentation/automations/shared/hooks/useDateFiltersTitles.d.ts.map +1 -1
- package/esm/presentation/automations/shared/hooks/useDateFiltersTitles.js +6 -3
- package/esm/presentation/automations/shared/hooks/useFiltersNamings.d.ts.map +1 -1
- package/esm/presentation/automations/shared/hooks/useFiltersNamings.js +23 -10
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts +1 -3
- package/esm/presentation/automations/shared/utils/automationUtils.d.ts.map +1 -1
- package/esm/presentation/automations/shared/utils/automationUtils.js +0 -17
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.d.ts.map +1 -1
- package/esm/presentation/drill/DrillConfigPanel/DrillToUrl/CustomUrlEditor.js +5 -4
- package/esm/presentation/drill/utils/dashboardPredicate.d.ts +0 -15
- package/esm/presentation/drill/utils/dashboardPredicate.d.ts.map +1 -1
- package/esm/presentation/drill/utils/dashboardPredicate.js +1 -16
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts +4 -0
- package/esm/presentation/presentationComponents/DashboardItems/DashboardItem.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/CreateAlert.d.ts +2 -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 +2 -3
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/EditAlert.js +2 -2
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.d.ts.map +1 -1
- package/esm/presentation/widget/insight/configuration/InsightAlertConfig/hooks/useEditAlert.js +4 -6
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/EditModeDashboardVisualizationSwitcher.js +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.d.ts.map +1 -1
- package/esm/presentation/widget/visualizationSwitcher/ViewModeDashboardVisualizationSwitcher.js +3 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/DefaultDashboardVisualizationSwitcherWidget.js +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/EditableDashboardVisualizationSwitcherWidget.js +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/ExportableDashboardVisualizationSwitcherWidget.js +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts +2 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.d.ts.map +1 -1
- package/esm/presentation/widget/widget/VisualizationSwitcherWidget/VisualizationSwitcherNavigationHeader.js +4 -4
- package/esm/sdk-ui-dashboard.d.ts +47 -115
- package/package.json +21 -21
- package/styles/css/main.css +2 -0
- package/styles/css/main.css.map +1 -1
- package/styles/css/visualizationSwitcherHeader.css +1 -0
- package/styles/css/visualizationSwitcherHeader.css.map +1 -1
- package/styles/css/visualizationSwitcherWidget.css +1 -0
- package/styles/css/visualizationSwitcherWidget.css.map +1 -1
- package/styles/scss/visualizationSwitcherHeader.scss +2 -0
- package/styles/scss/visualizationSwitcherWidget.scss +2 -0
- package/esm/model/commandHandlers/users/loadAllUsersHandler.d.ts +0 -5
- package/esm/model/commandHandlers/users/loadAllUsersHandler.d.ts.map +0 -1
- package/esm/model/commandHandlers/users/loadAllUsersHandler.js +0 -19
- package/esm/model/commandHandlers/users/loadWorkspaceUsers.d.ts +0 -4
- package/esm/model/commandHandlers/users/loadWorkspaceUsers.d.ts.map +0 -1
- package/esm/model/commandHandlers/users/loadWorkspaceUsers.js +0 -3
- package/esm/model/commands/users.d.ts +0 -19
- package/esm/model/commands/users.d.ts.map +0 -1
- package/esm/model/commands/users.js +0 -15
- package/esm/model/react/useWorkspaceUsers.d.ts +0 -9
- package/esm/model/react/useWorkspaceUsers.d.ts.map +0 -1
- package/esm/model/react/useWorkspaceUsers.js +0 -27
- package/esm/model/store/users/index.d.ts +0 -9
- package/esm/model/store/users/index.d.ts.map +0 -1
- package/esm/model/store/users/index.js +0 -12
- package/esm/model/store/users/usersReducers.d.ts +0 -21
- package/esm/model/store/users/usersReducers.d.ts.map +0 -1
- package/esm/model/store/users/usersReducers.js +0 -15
- package/esm/model/store/users/usersSelectors.d.ts +0 -22
- package/esm/model/store/users/usersSelectors.d.ts.map +0 -1
- package/esm/model/store/users/usersSelectors.js +0 -27
- package/esm/model/store/users/usersState.d.ts +0 -12
- package/esm/model/store/users/usersState.d.ts.map +0 -1
- package/esm/model/store/users/usersState.js +0 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/model/commands/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,UAAU,EAAE,MAAM,aAAa,CAAC;AACjE,OAAO,EACH,KAAK,+BAA+B,EACpC,KAAK,cAAc,EACnB,KAAK,gBAAgB,EACrB,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,gBAAgB,EACrB,KAAK,eAAe,EACpB,KAAK,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ACxC,kCAAkC,GAClC,iCAAiC,GACjC,mCAAmC,GACnC,2BAA2B,GAC3B,6BAA6B,GAC7B,6BAA6B,GAC7B,qBAAqB,GACrB,oBAAoB,GACpB,YAAY,GACZ,UAAU,GACV,qBAAqB,GACrB,mBAAmB,GACnB,cAAc,GACd,8BAA8B,GAC9B,wBAAwB,GACxB,2BAA2B,GAC3B,oCAAoC,GACpC,gCAAgC,GAChC,4BAA4B,GAC5B,mCAAmC,GACnC,qDAAqD,GACrD,2DAA2D,GAE3D,MAAM,GACN,UAAU,GACV,oBAAoB,GACpB,iBAAiB,GACjB,iBAAiB,GACjB,eAAe,GACf,uBAAuB,GACvB,qBAAqB,GACrB,gBAAgB,GAChB,iCAAiC,GACjC,sCAAsC,GACtC,yCAAyC,GACzC,yCAAyC,GACzC,gDAAgD,GAChD,gCAAgC,GAChC,iCAAiC,GACjC,6BAA6B,GAC7B,gCAAgC,GAChC,eAAe,GACf,kBAAkB,GAClB,2BAA2B,GAC3B,cAAc,GACd,sBAAsB,GACtB,0BAA0B,GAC1B,kBAAkB,GAClB,eAAe,GACf,kCAAkC,GAClC,uBAAuB,GACvB,8CAA8C,GAC9C,yBAAyB,GACzB,sBAAsB,GACtB,mBAAmB,GACnB,gCAAgC,GAChC,eAAe,GACf,iBAAiB,GACjB,gBAAgB,GAChB,uBAAuB,GACvB,kBAAkB,GAClB,2BAA2B,GAC3B,sBAAsB,GACtB,mCAAmC,GACnC,mCAAmC,GACnC,+BAA+B,GAC/B,mBAAmB,GACnB,mBAAmB,GACnB,uBAAuB,GACvB,mBAAmB,GACnB,0BAA0B,GAC1B,2BAA2B,GAC3B,mBAAmB,GAEnB,cAAc,GACd,uBAAuB,GACvB,0BAA0B,GAC1B,yBAAyB,GACzB,qBAAqB,GACrB,sBAAsB,CAAC"}
|
|
@@ -128,7 +128,6 @@ export declare function createDashboardRootReducer({ queryCache }?: {
|
|
|
128
128
|
showWidgetAsTable: import("./showWidgetAsTable/showWidgetAsTableState.js").IShowWidgetAsTableState;
|
|
129
129
|
notificationChannels: import("./notificationChannels/notificationChannelsState.js").INotificationChannelsState;
|
|
130
130
|
automations: import("./automations/automationsState.js").IAutomationsState;
|
|
131
|
-
users: import("./users/usersState.js").IUsersState;
|
|
132
131
|
filterViews: import("./filterViews/filterViewsState.js").IFilterViewsState;
|
|
133
132
|
dashboardSummaryWorkflow: import("./dashboardSummaryWorkflow/dashboardSummaryWorkflowState.js").DashboardSummaryWorkflowState;
|
|
134
133
|
_queryCache: any;
|
|
@@ -157,7 +156,6 @@ export declare function createDashboardRootReducer({ queryCache }?: {
|
|
|
157
156
|
showWidgetAsTable: import("./showWidgetAsTable/showWidgetAsTableState.js").IShowWidgetAsTableState | undefined;
|
|
158
157
|
notificationChannels: import("./notificationChannels/notificationChannelsState.js").INotificationChannelsState | undefined;
|
|
159
158
|
automations: import("./automations/automationsState.js").IAutomationsState | undefined;
|
|
160
|
-
users: import("./users/usersState.js").IUsersState | undefined;
|
|
161
159
|
filterViews: import("./filterViews/filterViewsState.js").IFilterViewsState | undefined;
|
|
162
160
|
dashboardSummaryWorkflow: import("./dashboardSummaryWorkflow/dashboardSummaryWorkflowState.js").DashboardSummaryWorkflowState | undefined;
|
|
163
161
|
_queryCache: any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dashboardStore.d.ts","sourceRoot":"","sources":["../../../src/model/store/dashboardStore.ts"],"names":[],"mappings":"AAEA,OAAO,EACH,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,OAAO,EAGf,MAAM,kBAAkB,CAAC;AAI1B,OAAyB,EAAa,KAAK,YAAY,EAAE,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAMvF,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAEjD,OAAO,EAAE,KAAK,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAG9E,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,uBAAuB,EAAE,MAAM,y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;;;;;;;;;;;OAWG;IACH,gBAAgB,EAAE,gBAAgB,CAAC;IAEnC;;;;;;;;;OASG;IACH,cAAc,CAAC,EAAE,uBAAuB,CAAC;IAEzC;;OAEG;IACH,oBAAoB,CAAC,EAAE,UAAU,CAAC,GAAG,CAAC,CAAC;IAEvC;;OAEG;IACH,QAAQ,CAAC,EAAE,uBAAuB,CAAC;IAEnC;;;;;OAKG;IACH,aAAa,CAAC,EAAE,sBAAsB,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC;IAEnD;;;;;;;OAOG;IACH,iBAAiB,EAAE,CAAC,CAAC,OAAO,EAAE,gBAAgB,KAAK,YAAY,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC;IAEzE;;;;;;;OAOG;IACH,iBAAiB,EAAE,UAAU,CAAC;IAE9B;;OAEG;IACH,cAAc,CAAC,EAAE,cAAc,CAAC;CACnC;AAsBD;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACnC,KAAK,EAAE,cAAc,CAAC;IACtB,oBAAoB,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IAC/D,sBAAsB,EAAE,CAAC,OAAO,EAAE,qBAAqB,KAAK,IAAI,CAAC;IACjE,YAAY,EAAE,IAAI,CAAC;CACtB;AA2CD,wBAAgB,0BAA0B,CAAC,EACvC,UAAkC,EACrC,GAAE;IAAE,UAAU,CAAC,EAAE,OAAO,CAAA;CAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA8B/B;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,qBAAqB,GAAG,sBAAsB,CAuF1F"}
|
|
@@ -38,7 +38,6 @@ import { showWidgetAsTableSliceReducer } from "./showWidgetAsTable/index.js";
|
|
|
38
38
|
import { tabsSliceReducer } from "./tabs/index.js";
|
|
39
39
|
import { uiSliceReducer } from "./ui/index.js";
|
|
40
40
|
import { userSliceReducer } from "./user/index.js";
|
|
41
|
-
import { usersSliceReducer } from "./users/index.js";
|
|
42
41
|
// There are known compatibility issues between CommonJS (CJS) and ECMAScript modules (ESM).
|
|
43
42
|
// In ESM, default exports of CJS modules are wrapped in default properties instead of being exposed directly.
|
|
44
43
|
// https://github.com/microsoft/TypeScript/issues/52086#issuecomment-1385978414
|
|
@@ -162,7 +161,6 @@ export function createDashboardRootReducer({ queryCache = (state = {}) => state,
|
|
|
162
161
|
showWidgetAsTable: showWidgetAsTableSliceReducer,
|
|
163
162
|
notificationChannels: notificationChannelsSliceReducer,
|
|
164
163
|
automations: automationsSliceReducer,
|
|
165
|
-
users: usersSliceReducer,
|
|
166
164
|
filterViews: filterViewsSliceReducer,
|
|
167
165
|
dashboardSummaryWorkflow: dashboardSummaryWorkflowSliceReducer,
|
|
168
166
|
_queryCache: queryCache,
|
|
@@ -24,7 +24,6 @@ import { type IShowWidgetAsTableState } from "./showWidgetAsTable/showWidgetAsTa
|
|
|
24
24
|
import { type ITabsState } from "./tabs/tabsState.js";
|
|
25
25
|
import { type IUiState } from "./ui/uiState.js";
|
|
26
26
|
import { type UserState } from "./user/userState.js";
|
|
27
|
-
import { type IUsersState } from "./users/usersState.js";
|
|
28
27
|
/**
|
|
29
28
|
* Layout of the dashboard component's state. State modifications are always done using Command API. Reading
|
|
30
29
|
* from state must always be done using the Selectors API.
|
|
@@ -71,8 +70,6 @@ export type DashboardState = {
|
|
|
71
70
|
/** @alpha */
|
|
72
71
|
automations: IAutomationsState;
|
|
73
72
|
/** @alpha */
|
|
74
|
-
users: IUsersState;
|
|
75
|
-
/** @alpha */
|
|
76
73
|
notificationChannels: INotificationChannelsState;
|
|
77
74
|
/**
|
|
78
75
|
* Internal state for dashboard summary AI workflow.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/model/store/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,KA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Dialog/DefaultAlertingDialog.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.tsx"],"names":[],"mappings":"AAwCA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA4BxD,wBAAgB,sBAAsB,CAAC,EACnC,QAAQ,EACR,eAAe,EACf,aAAa,EACb,OAAO,EACP,SAAS,EACT,WAAW,EACX,aAAa,EAChB,EAAE,oBAAoB,
|
|
1
|
+
{"version":3,"file":"DefaultAlertingDialog.d.ts","sourceRoot":"","sources":["../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.tsx"],"names":[],"mappings":"AAwCA,OAAO,EAAE,KAAK,oBAAoB,EAAE,MAAM,aAAa,CAAC;AA4BxD,wBAAgB,sBAAsB,CAAC,EACnC,QAAQ,EACR,eAAe,EACf,aAAa,EACb,OAAO,EACP,SAAS,EACT,WAAW,EACX,aAAa,EAChB,EAAE,oBAAoB,2CAwhBtB;AAED;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,2CAchE"}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialog.js
CHANGED
|
@@ -45,7 +45,7 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
|
|
|
45
45
|
onDeleteSuccess?.(alert);
|
|
46
46
|
setAlertToDelete(null);
|
|
47
47
|
};
|
|
48
|
-
const { onTitleChange, onRecipientsChange, selectedFilters, availableFilters, onFiltersChange, onApplyCurrentFilters, automationIsValid, filtersAreStale, dropStaleParameters, automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, onMeasureChange, getAttributeValues, onAttributeChange, onComparisonOperatorChange, onRelativeOperatorChange, onAnomalyDetectionChange, onChange, onBlur, onComparisonTypeChange, onDestinationChange, onTriggerModeChange, onTriggerIntervalChange, selectedMeasure, canChangeMeasure, supportedMeasures, selectedAttribute, selectedValue, supportedAttributes, catalogAttributes, catalogDateDatasets, isResultLoading, selectedComparisonOperator, selectedRelativeOperator, selectedAiOperator, value, selectedComparator, selectedSensitivity, onSensitivityChange, selectedGranularity, onGranularityChange, separators, defaultUser, originalAutomation, editedAutomation, allowOnlyLoggedUserRecipients, allowExternalRecipients, warningMessage, validationErrorMessage, isInvalidConnectionToInsight, isSubmitDisabled, isParentValid, thresholdErrorMessage, allowHourlyRecurrence,
|
|
48
|
+
const { onTitleChange, onRecipientsChange, selectedFilters, availableFilters, onFiltersChange, onApplyCurrentFilters, automationIsValid, filtersAreStale, dropStaleParameters, automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, onMeasureChange, getAttributeValues, onAttributeChange, onComparisonOperatorChange, onRelativeOperatorChange, onAnomalyDetectionChange, onChange, onBlur, onComparisonTypeChange, onDestinationChange, onTriggerModeChange, onTriggerIntervalChange, selectedMeasure, canChangeMeasure, supportedMeasures, selectedAttribute, selectedValue, supportedAttributes, catalogAttributes, catalogDateDatasets, isResultLoading, selectedComparisonOperator, selectedRelativeOperator, selectedAiOperator, value, selectedComparator, selectedSensitivity, onSensitivityChange, selectedGranularity, onGranularityChange, separators, defaultUser, originalAutomation, editedAutomation, allowOnlyLoggedUserRecipients, allowExternalRecipients, warningMessage, validationErrorMessage, isInvalidConnectionToInsight, isSubmitDisabled, isParentValid, thresholdErrorMessage, allowHourlyRecurrence, notificationChannels, } = useEditAlert({
|
|
49
49
|
maxAutomationsRecipients,
|
|
50
50
|
externalRecipientOverride,
|
|
51
51
|
});
|
|
@@ -135,7 +135,7 @@ export function AlertingDialogRenderer({ onCancel, onDeleteSuccess, onDeleteErro
|
|
|
135
135
|
id: "insightAlert.config.interval",
|
|
136
136
|
}),
|
|
137
137
|
} }), content: _jsx(FormattedMessage, { id: "insightAlert.config.interval.tooltip" }), arrowPlacement: "left", optimalPlacement: true, offset: 10, width: 280, triggerBy: ["hover", "click"] })
|
|
138
|
-
] }), htmlFor: "alert.interval", children: _jsx(AlertTriggerIntervalSelect, { id: "alert.interval", selectedTriggerInterval: editedAutomation?.alert?.trigger.interval ?? "DAY", onTriggerIntervalChange: onTriggerIntervalChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })) : null, _jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.recipients" }), htmlFor: "alert.recipients", fullWidth: true, children: _jsx(RecipientsSelect, { id: "alert.recipients", loggedUser: defaultUser,
|
|
138
|
+
] }), htmlFor: "alert.interval", children: _jsx(AlertTriggerIntervalSelect, { id: "alert.interval", selectedTriggerInterval: editedAutomation?.alert?.trigger.interval ?? "DAY", onTriggerIntervalChange: onTriggerIntervalChange, overlayPositionType: OVERLAY_POSITION_TYPE, closeOnParentScroll: CLOSE_ON_PARENT_SCROLL }) })) : null, _jsx(FormField, { label: _jsx(FormattedMessage, { id: "insightAlert.config.recipients" }), htmlFor: "alert.recipients", fullWidth: true, children: _jsx(RecipientsSelect, { id: "alert.recipients", loggedUser: defaultUser, value: editedAutomation?.recipients ?? [], originalValue: originalAutomation?.recipients || [], onChange: onRecipientsChange, allowEmptySelection: true, allowOnlyLoggedUserRecipients: allowOnlyLoggedUserRecipients, allowExternalRecipients: allowExternalRecipients, maxRecipients: maxAutomationsRecipients, notificationChannels: notificationChannels, notificationChannelId: editedAutomation?.notificationChannel, showLabel: false, externalRecipientOverride: externalRecipientOverride }) })
|
|
139
139
|
] }), warningMessage ? (_jsx(Message, { type: "warning", className: "gd-notifications-channels-dialog-error", children: warningMessage })) : null, invalidDatapoints.map((datapoint) => (_jsx(Message, { id: datapoint.id, type: datapoint.severity === "info" ? "progress" : datapoint.severity, className: "gd-notifications-channels-dialog-error gd-notifications-channels-dialog-error-scrollable", children: datapoint.message }, datapoint.id)))] })
|
|
140
140
|
] }) }) }) }), alertToDelete ? (_jsx(DeleteAlertConfirmDialog, { alert: alertToDelete, onCancel: () => setAlertToDelete(null), onSuccess: handleAlertDeleteSuccess, onError: onDeleteError })) : null] }));
|
|
141
141
|
}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IAutomationVisibleFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget
|
|
1
|
+
import { type DateAttributeGranularity, type FilterContextItem, type IAlertAnomalyDetectionGranularity, type IAlertAnomalyDetectionSensitivity, type IAlertComparisonOperator, type IAlertRelativeArithmeticOperator, type IAlertRelativeOperator, type IAlertTriggerInterval, type IAlertTriggerMode, type IAutomationMetadataObject, type IAutomationMetadataObjectDefinition, type IAutomationRecipient, type IAutomationVisibleFilter, type IInsight, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
|
|
2
2
|
import { type AlertAttribute, type AlertMetric, type AlertMetricComparatorType } from "../../types.js";
|
|
3
3
|
import { type IMeasureFormatMap } from "../utils/getters.js";
|
|
4
4
|
/**
|
|
@@ -10,7 +10,6 @@ export interface IUseAlertFormStateProps {
|
|
|
10
10
|
insight?: IInsight;
|
|
11
11
|
widget?: IWidget;
|
|
12
12
|
notificationChannels: INotificationChannelIdentifier[] | INotificationChannelMetadataObject[];
|
|
13
|
-
users: IWorkspaceUser[];
|
|
14
13
|
editedAutomationFilters?: FilterContextItem[];
|
|
15
14
|
availableFiltersAsVisibleFilters?: IAutomationVisibleFilter[] | undefined;
|
|
16
15
|
externalRecipientOverride?: string;
|
|
@@ -29,11 +28,11 @@ export interface IUseAlertFormStateProps {
|
|
|
29
28
|
*
|
|
30
29
|
* @internal
|
|
31
30
|
*/
|
|
32
|
-
export declare function useAlertFormState({ alertToEdit, insight, widget, notificationChannels,
|
|
31
|
+
export declare function useAlertFormState({ alertToEdit, insight, widget, notificationChannels, editedAutomationFilters, availableFiltersAsVisibleFilters, externalRecipientOverride, supportedMeasures, supportedAttributes, measureFormatMap }: IUseAlertFormStateProps): {
|
|
33
32
|
editedAutomation: IAutomationMetadataObjectDefinition | undefined;
|
|
34
33
|
setEditedAutomation: import("react").Dispatch<import("react").SetStateAction<IAutomationMetadataObjectDefinition | undefined>>;
|
|
35
34
|
originalAutomation: IAutomationMetadataObjectDefinition | undefined;
|
|
36
|
-
defaultUser:
|
|
35
|
+
defaultUser: IAutomationRecipient;
|
|
37
36
|
defaultRecipient: IAutomationRecipient;
|
|
38
37
|
automationParameters: import("../../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
|
|
39
38
|
availableParameters: import("../../../shared/automationFilters/automationParameters.js").IAutomationParameter[];
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"useAlertFormState.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.ts"],"names":[],"mappings":"AAMA,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,EACtC,KAAK,iCAAiC,EACtC,KAAK,wBAAwB,EAC7B,KAAK,gCAAgC,EACrC,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mCAAmC,EACxC,KAAK,oBAAoB,EACzB,KAAK,wBAAwB,EAC7B,KAAK,QAAQ,EAEb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAe7B,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,WAAW,EAAE,KAAK,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAEvG,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAY7D;;;GAGG;AACH,MAAM,WAAW,uBAAuB;IACpC,WAAW,CAAC,EAAE,yBAAyB,CAAC;IACxC,OAAO,CAAC,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,oBAAoB,EAAE,8BAA8B,EAAE,GAAG,kCAAkC,EAAE,CAAC;IAC9F,uBAAuB,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9C,gCAAgC,CAAC,EAAE,wBAAwB,EAAE,GAAG,SAAS,CAAC;IAC1E,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,iBAAiB,EAAE,WAAW,EAAE,CAAC;IACjC,mBAAmB,EAAE,cAAc,EAAE,CAAC;IACtC,gBAAgB,EAAE,iBAAiB,CAAC;CACvC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,EAC9B,WAAW,EACX,OAAO,EACP,MAAM,EACN,oBAAoB,EACpB,uBAAuB,EACvB,gCAAgC,EAChC,yBAAyB,EACzB,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EACnB,EAAE,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiZzB"}
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useAlertFormState.js
CHANGED
|
@@ -6,7 +6,7 @@ import { useAutomationsContext } from "../../../contexts/AutomationsContext.js";
|
|
|
6
6
|
import { setAlertExecutionParameters } from "../../../shared/automationFilters/automationParameters.js";
|
|
7
7
|
import { useAutomationAlertParameters } from "../../../shared/automationFilters/useAutomationAlertParameters.js";
|
|
8
8
|
import { getAppliedWidgetFilters, getVisibleFiltersByFilters, resolveMvfDimensionalityLocalRefs, } from "../../../shared/filters/index.js";
|
|
9
|
-
import {
|
|
9
|
+
import { convertExternalRecipientToAutomationRecipient, convertUserToAutomationRecipient, } from "../../../shared/utils/automationUtils.js";
|
|
10
10
|
import { createDefaultAlert } from "../utils/convertors.js";
|
|
11
11
|
import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformAlertByComparisonOperator, transformAlertByDestination, transformAlertByGranularity, transformAlertByMetric, transformAlertByRelativeOperator, transformAlertBySensitivity, } from "../utils/transformation.js";
|
|
12
12
|
/**
|
|
@@ -20,18 +20,18 @@ import { transformAlertByAnomalyDetection, transformAlertByAttribute, transformA
|
|
|
20
20
|
*
|
|
21
21
|
* @internal
|
|
22
22
|
*/
|
|
23
|
-
export function useAlertFormState({ alertToEdit, insight, widget, notificationChannels,
|
|
23
|
+
export function useAlertFormState({ alertToEdit, insight, widget, notificationChannels, editedAutomationFilters, availableFiltersAsVisibleFilters, externalRecipientOverride, supportedMeasures, supportedAttributes, measureFormatMap, }) {
|
|
24
24
|
const intl = useIntl();
|
|
25
|
-
const { weekStart, timezone, settings, currentUser, features: { enableAlertOncePerInterval }, } = useAutomationsContext();
|
|
26
|
-
const { dashboardId, hiddenFilters: dashboardHiddenFilters, commonDateFilterId, dashboardEvaluationFrequency,
|
|
25
|
+
const { weekStart, timezone, settings, currentUser, widgetLocalIdToTabIdMap: widgetTabMap, features: { enableAlertOncePerInterval }, } = useAutomationsContext();
|
|
26
|
+
const { dashboardId, hiddenFilters: dashboardHiddenFilters, commonDateFilterId, dashboardEvaluationFrequency, parameterValues, dashboardParameters, } = useAlertingDialogContext();
|
|
27
27
|
// Determine target tab ID if widget is present
|
|
28
28
|
const targetTabIdentifier = widget?.localIdentifier ? widgetTabMap[widget.localIdentifier] : undefined;
|
|
29
29
|
// Default values
|
|
30
30
|
const defaultMeasure = supportedMeasures[0];
|
|
31
|
-
const defaultUser =
|
|
31
|
+
const defaultUser = convertUserToAutomationRecipient(currentUser);
|
|
32
32
|
const defaultRecipient = externalRecipientOverride
|
|
33
33
|
? convertExternalRecipientToAutomationRecipient(externalRecipientOverride)
|
|
34
|
-
:
|
|
34
|
+
: convertUserToAutomationRecipient(currentUser);
|
|
35
35
|
const defaultNotificationChannelId = notificationChannels[0]?.id;
|
|
36
36
|
const resolvedAlertToEdit = (() => {
|
|
37
37
|
if (!alertToEdit) {
|
|
@@ -71,7 +71,12 @@ export function useAlertFormState({ alertToEdit, insight, widget, notificationCh
|
|
|
71
71
|
: defaultNewAlert;
|
|
72
72
|
});
|
|
73
73
|
const [originalAutomation] = useState(editedAutomation);
|
|
74
|
-
const { automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, dropStaleParameters, } = useAutomationAlertParameters({
|
|
74
|
+
const { automationParameters, availableParameters, onParameterChange, onParameterDelete, onParameterAdd, dropStaleParameters, } = useAutomationAlertParameters({
|
|
75
|
+
editedAutomation,
|
|
76
|
+
setEditedAutomation,
|
|
77
|
+
dashboardParameters,
|
|
78
|
+
widgetParameterValues: parameterValues,
|
|
79
|
+
});
|
|
75
80
|
// Local state
|
|
76
81
|
const [warningMessage, setWarningMessage] = useState(undefined);
|
|
77
82
|
const [isTitleValid, setIsTitleValid] = useState(true);
|
|
@@ -161,19 +166,12 @@ export function useAlertFormState({ alertToEdit, insight, widget, notificationCh
|
|
|
161
166
|
* Reset recipients when new notification channel only allows the author/creator
|
|
162
167
|
*/
|
|
163
168
|
const updatedRecipients = selectedDestination?.allowedRecipients === "creator"
|
|
164
|
-
? [
|
|
169
|
+
? [convertUserToAutomationRecipient(currentUser)]
|
|
165
170
|
: undefined;
|
|
166
171
|
setEditedAutomation((alert) => alert
|
|
167
172
|
? transformAlertByDestination(alert, destinationId, updatedRecipients)
|
|
168
173
|
: undefined);
|
|
169
|
-
}, [
|
|
170
|
-
setEditedAutomation,
|
|
171
|
-
alertToEdit?.notificationChannel,
|
|
172
|
-
currentUser,
|
|
173
|
-
notificationChannels,
|
|
174
|
-
intl,
|
|
175
|
-
users,
|
|
176
|
-
]);
|
|
174
|
+
}, [setEditedAutomation, alertToEdit?.notificationChannel, currentUser, notificationChannels, intl]);
|
|
177
175
|
const onTriggerModeChange = useCallback((triggerMode) => {
|
|
178
176
|
setEditedAutomation((s) => s
|
|
179
177
|
? {
|
|
@@ -54,11 +54,9 @@ export declare function useEditAlert({ maxAutomationsRecipients, externalRecipie
|
|
|
54
54
|
selectedComparator: import("../../types.js").AlertMetricComparator | undefined;
|
|
55
55
|
separators: import("@gooddata/sdk-model").ISeparators;
|
|
56
56
|
warningMessage: string | undefined;
|
|
57
|
-
defaultUser: import("@gooddata/sdk-model").
|
|
57
|
+
defaultUser: import("@gooddata/sdk-model").IAutomationRecipient;
|
|
58
58
|
originalAutomation: import("@gooddata/sdk-model").IAutomationMetadataObjectDefinition | undefined;
|
|
59
59
|
editedAutomation: import("@gooddata/sdk-model").IAutomationMetadataObjectDefinition | undefined;
|
|
60
|
-
users: import("@gooddata/sdk-model").IWorkspaceUser[];
|
|
61
|
-
usersError: import("@gooddata/sdk-ui").GoodDataSdkError | undefined;
|
|
62
60
|
notificationChannels: import("@gooddata/sdk-model").INotificationChannelIdentifier[] | import("@gooddata/sdk-model").INotificationChannelMetadataObject[];
|
|
63
61
|
allowOnlyLoggedUserRecipients: boolean;
|
|
64
62
|
allowExternalRecipients: boolean;
|
package/esm/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,kBAAkB;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,wBAAgB,YAAY,CAAC,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,EAAE,kBAAkB
|
|
1
|
+
{"version":3,"file":"useEditAlert.d.ts","sourceRoot":"","sources":["../../../../../../src/presentation/automations/alerting/DefaultAlertingDialog/hooks/useEditAlert.ts"],"names":[],"mappings":"AAaA,MAAM,WAAW,kBAAkB;IAC/B,wBAAwB,EAAE,MAAM,CAAC;IACjC,yBAAyB,CAAC,EAAE,MAAM,CAAC;CACtC;AAED,wBAAgB,YAAY,CAAC,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,EAAE,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6MvG"}
|
|
@@ -10,7 +10,7 @@ import { useAlertSupportedMetrics } from "./useAlertSupportedMetrics.js";
|
|
|
10
10
|
import { useAlertThreshold } from "./useAlertThreshold.js";
|
|
11
11
|
export function useEditAlert({ maxAutomationsRecipients, externalRecipientOverride }) {
|
|
12
12
|
const { catalogDateDatasets, catalogAttributes, separators, weekStart, timezone, allowHourlyRecurrence } = useAutomationsContext();
|
|
13
|
-
const { hiddenFilters: dashboardHiddenFilters, commonDateFilterId, alertToEdit,
|
|
13
|
+
const { hiddenFilters: dashboardHiddenFilters, commonDateFilterId, alertToEdit, notificationChannels, widget, insight, } = useAlertingDialogContext();
|
|
14
14
|
const { editedAutomationFilters, setEditedAutomationFilters, availableFilters, availableFiltersAsVisibleFilters, filtersForNewAutomation, } = useAutomationFiltersSelect({ automationToEdit: alertToEdit, widget });
|
|
15
15
|
const isInvalidConnectionToInsight = alertToEdit?.metadata?.widget && !insight;
|
|
16
16
|
const { measureFormatMap, supportedMeasures, supportedAttributes, isResultLoading, getAttributeValues, getMetricValue, } = useAlertSupportedMetrics({ insight, widget, alertToEdit });
|
|
@@ -19,7 +19,6 @@ export function useEditAlert({ maxAutomationsRecipients, externalRecipientOverri
|
|
|
19
19
|
insight,
|
|
20
20
|
widget,
|
|
21
21
|
notificationChannels,
|
|
22
|
-
users,
|
|
23
22
|
editedAutomationFilters,
|
|
24
23
|
availableFiltersAsVisibleFilters,
|
|
25
24
|
externalRecipientOverride,
|
|
@@ -134,8 +133,6 @@ export function useEditAlert({ maxAutomationsRecipients, externalRecipientOverri
|
|
|
134
133
|
defaultUser,
|
|
135
134
|
originalAutomation,
|
|
136
135
|
editedAutomation,
|
|
137
|
-
users,
|
|
138
|
-
usersError,
|
|
139
136
|
notificationChannels,
|
|
140
137
|
allowOnlyLoggedUserRecipients,
|
|
141
138
|
allowExternalRecipients,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type ComponentType } from "react";
|
|
2
|
-
import { type DateAttributeGranularity, type IAttribute, type IAutomationMetadataObject, type IDataSetMetadataObject, type IInsight, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget
|
|
2
|
+
import { type DateAttributeGranularity, type IAttribute, type IAutomationMetadataObject, type IDataSetMetadataObject, type IInsight, type IMeasure, type INotificationChannelIdentifier, type INotificationChannelMetadataObject, type IWidget } from "@gooddata/sdk-model";
|
|
3
3
|
import { type GoodDataSdkError } from "@gooddata/sdk-ui";
|
|
4
4
|
/**
|
|
5
5
|
* @alpha
|
|
@@ -11,18 +11,6 @@ export interface IAlertingDialogProps {
|
|
|
11
11
|
* @deprecated read `alertToEdit` from `useAlertingDialogContext()` instead. Prop will be removed.
|
|
12
12
|
*/
|
|
13
13
|
alertToEdit?: IAutomationMetadataObject;
|
|
14
|
-
/**
|
|
15
|
-
* Users in workspace
|
|
16
|
-
*
|
|
17
|
-
* @deprecated read `users` from `useAlertingDialogContext()` instead. Prop will be removed.
|
|
18
|
-
*/
|
|
19
|
-
users?: IWorkspaceUser[];
|
|
20
|
-
/**
|
|
21
|
-
* Error occurred while loading users
|
|
22
|
-
*
|
|
23
|
-
* @deprecated read `usersError` from `useAlertingDialogContext()` instead. Prop will be removed.
|
|
24
|
-
*/
|
|
25
|
-
usersError?: GoodDataSdkError;
|
|
26
14
|
/**
|
|
27
15
|
* Notification channels in organization
|
|
28
16
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/alerting/types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,OAAO,EACH,KAAK,wBAAwB,EAC7B,KAAK,UAAU,EACf,KAAK,yBAAyB,EAC9B,KAAK,sBAAsB,EAC3B,KAAK,QAAQ,EACb,KAAK,QAAQ,EACb,KAAK,8BAA8B,EACnC,KAAK,kCAAkC,EACvC,KAAK,OAAO,EACf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAMzD;;GAEG;AACH,MAAM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WAAW,CAAC,EAAE,wBAAwB,CAAC;CAC1C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACtB,OAAO,EAAE,QAAQ,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,WAAW,EAAE,qBAAqB,EAAE,CAAC;CACxC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IACzB,SAAS,EAAE,UAAU,CAAC;IACtB,IAAI,EAAE,eAAe,GAAG,WAAW,CAAC;CACvC,CAAC"}
|
|
@@ -13,11 +13,10 @@ export declare function AlertingAutomationsProvider({ children }: {
|
|
|
13
13
|
* Connector component that reads from the dashboard Redux store and wires up
|
|
14
14
|
* the alerting dialog tree (create/edit and management) via context providers.
|
|
15
15
|
*
|
|
16
|
-
* This is the
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* the note there); moving it behind this connector is tracked on GDP-3167.
|
|
16
|
+
* This is the bridge between dashboard store state and the alerting dialog tree, with no exceptions:
|
|
17
|
+
* the shared `automationFilters` hooks read AutomationsContext and take their widget-scoped values as
|
|
18
|
+
* props from this connector's `AlertingDialogContext`. The `automationFilters` allowlist in
|
|
19
|
+
* `.dependency-cruiser.js` no longer permits any store selector.
|
|
21
20
|
*
|
|
22
21
|
* AutomationsContext is provided by AlertingAutomationsProvider, which wraps this
|
|
23
22
|
* connector (see AlertingDialogProvider).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AlertingConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/AlertingConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"AlertingConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/AlertingConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AA0B1D;;;;;;GAMG;AACH,wBAAgB,2BAA2B,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAG/F;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,iBAAiB,IAAI,YAAY,GAAG,IAAI,CAMvD"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { isWidget, } from "@gooddata/sdk-model";
|
|
3
3
|
import { useDashboardAlerts } from "../../../model/react/useDashboardAlerting/useDashboardAlerts.js";
|
|
4
|
-
import { useWorkspaceUsers } from "../../../model/react/useWorkspaceUsers.js";
|
|
5
4
|
import { AlertingDialog } from "../alerting/AlertingDialog.js";
|
|
6
5
|
import { AlertingManagementDialog } from "../alerting/AlertingManagementDialog.js";
|
|
7
6
|
import { AlertingDialogContextProvider } from "../contexts/AlertingDialogContext.js";
|
|
@@ -11,7 +10,6 @@ import { useAutomationManagementEditRouting } from "./hooks/useAutomationManagem
|
|
|
11
10
|
import { useBuildAlertingDialogContext } from "./hooks/useBuildAlertingDialogContext.js";
|
|
12
11
|
import { useBuildAlertingManagementDialogContext } from "./hooks/useBuildAlertingManagementDialogContext.js";
|
|
13
12
|
import { useBuildAutomationsContext } from "./hooks/useBuildAutomationsContext.js";
|
|
14
|
-
const EMPTY_USERS = [];
|
|
15
13
|
/**
|
|
16
14
|
* Provides AutomationsContext to its children, built from dashboard Redux state.
|
|
17
15
|
* Wraps the alerting dialog subtree (both the create/edit and management dialogs reach
|
|
@@ -27,11 +25,10 @@ export function AlertingAutomationsProvider({ children }) {
|
|
|
27
25
|
* Connector component that reads from the dashboard Redux store and wires up
|
|
28
26
|
* the alerting dialog tree (create/edit and management) via context providers.
|
|
29
27
|
*
|
|
30
|
-
* This is the
|
|
31
|
-
*
|
|
32
|
-
*
|
|
33
|
-
*
|
|
34
|
-
* the note there); moving it behind this connector is tracked on GDP-3167.
|
|
28
|
+
* This is the bridge between dashboard store state and the alerting dialog tree, with no exceptions:
|
|
29
|
+
* the shared `automationFilters` hooks read AutomationsContext and take their widget-scoped values as
|
|
30
|
+
* props from this connector's `AlertingDialogContext`. The `automationFilters` allowlist in
|
|
31
|
+
* `.dependency-cruiser.js` no longer permits any store selector.
|
|
35
32
|
*
|
|
36
33
|
* AutomationsContext is provided by AlertingAutomationsProvider, which wraps this
|
|
37
34
|
* connector (see AlertingDialogProvider).
|
|
@@ -47,7 +44,7 @@ export function AlertingConnector() {
|
|
|
47
44
|
}
|
|
48
45
|
function AlertingConnectorInitialized(alerts) {
|
|
49
46
|
const { isAlertDialogOpen, isAlertManagementDialogOpen } = alerts;
|
|
50
|
-
// Defer store reads
|
|
47
|
+
// Defer store reads until at least one dialog is open.
|
|
51
48
|
if (!isAlertDialogOpen && !isAlertManagementDialogOpen) {
|
|
52
49
|
return null;
|
|
53
50
|
}
|
|
@@ -69,24 +66,18 @@ function AlertingConnectorWithData({ alerts }) {
|
|
|
69
66
|
return (_jsxs(AlertingManagementDialogContextProvider, { value: managementCtx, children: [isAlertManagementDialogOpen ? (_jsx(AlertingManagementDialog, { onAdd: onAlertingManagementAdd, onEdit: handleManagementEdit, onClose: onAlertingManagementClose, onDeleteSuccess: onAlertingManagementDeleteSuccess, onDeleteError: onAlertingManagementDeleteError, onPauseSuccess: onAlertingManagementPauseSuccess, onPauseError: onAlertingManagementPauseError })) : null, isAlertDialogOpen ? (_jsx(AlertingCreateEditConnector, { alertToEdit: alertToEdit, notificationChannels: notificationChannels, widget: insightWidget, insight: insight, automationsLoading: automationsLoading, onCancel: onAlertingCancel, onError: onAlertingCreateError, onSuccess: onAlertingCreateSuccess, onSaveError: onAlertingSaveError, onSaveSuccess: onAlertingSaveSuccess, onDeleteSuccess: onAlertingManagementDeleteSuccess, onDeleteError: onAlertingManagementDeleteError })) : null] }));
|
|
70
67
|
}
|
|
71
68
|
/**
|
|
72
|
-
*
|
|
73
|
-
* the
|
|
74
|
-
* workspace-users load.
|
|
69
|
+
* Hydrates the alerting create/edit context. Lives here rather than in the parent so that opening only
|
|
70
|
+
* the management dialog — which does not consume it — skips the work.
|
|
75
71
|
*/
|
|
76
72
|
function AlertingCreateEditConnector(props) {
|
|
77
73
|
const { alertToEdit, notificationChannels, widget, insight, automationsLoading, onCancel, onError, onSuccess, onSaveError, onSaveSuccess, onDeleteSuccess, onDeleteError, } = props;
|
|
78
|
-
const { users, status: usersStatus, usersError } = useWorkspaceUsers();
|
|
79
|
-
const isLoading = automationsLoading || usersStatus === "pending" || usersStatus === "loading";
|
|
80
|
-
const effectiveUsers = users ?? EMPTY_USERS;
|
|
81
74
|
const alertingCtx = useBuildAlertingDialogContext({
|
|
82
75
|
mode: alertToEdit ? "edit" : "create",
|
|
83
76
|
widget,
|
|
84
77
|
insight,
|
|
85
78
|
alertToEdit,
|
|
86
|
-
users: effectiveUsers,
|
|
87
|
-
usersError,
|
|
88
79
|
notificationChannels,
|
|
89
|
-
isLoading,
|
|
80
|
+
isLoading: automationsLoading,
|
|
90
81
|
});
|
|
91
82
|
return (_jsx(AlertingDialogContextProvider, { value: alertingCtx, children: _jsx(AlertingDialog, { onCancel: onCancel, onError: onError, onSuccess: onSuccess, onSaveError: onSaveError, onSaveSuccess: onSaveSuccess, onDeleteSuccess: onDeleteSuccess, onDeleteError: onDeleteError }) }));
|
|
92
83
|
}
|
|
@@ -9,13 +9,11 @@ const fixtures = vi.hoisted(() => {
|
|
|
9
9
|
let managementDialogProps;
|
|
10
10
|
let dialogProps;
|
|
11
11
|
let automationsError;
|
|
12
|
-
const useWorkspaceUsers = vi.fn(() => ({ users: [], status: "success", usersError: undefined }));
|
|
13
12
|
const alertsState = { isAlertDialogOpen: false, isAlertManagementDialogOpen: true };
|
|
14
13
|
return {
|
|
15
14
|
buildAutomationUrl,
|
|
16
15
|
navigate,
|
|
17
16
|
onAlertingManagementEdit,
|
|
18
|
-
useWorkspaceUsers,
|
|
19
17
|
alertsState,
|
|
20
18
|
get managementDialogProps() {
|
|
21
19
|
return managementDialogProps;
|
|
@@ -75,9 +73,6 @@ vi.mock("../../../model/react/useDashboardAlerting/useDashboardAlerts.js", () =>
|
|
|
75
73
|
insight: undefined,
|
|
76
74
|
}),
|
|
77
75
|
}));
|
|
78
|
-
vi.mock("../../../model/react/useWorkspaceUsers.js", () => ({
|
|
79
|
-
useWorkspaceUsers: fixtures.useWorkspaceUsers,
|
|
80
|
-
}));
|
|
81
76
|
vi.mock("../../../model/store/config/configSelectors.js", () => ({
|
|
82
77
|
selectExternalRecipient: () => "recipient@example.com",
|
|
83
78
|
selectIsEmbedded: () => false,
|
|
@@ -141,7 +136,6 @@ describe("AlertingConnector", () => {
|
|
|
141
136
|
fixtures.managementDialogProps = undefined;
|
|
142
137
|
fixtures.dialogProps = undefined;
|
|
143
138
|
fixtures.automationsError = undefined;
|
|
144
|
-
fixtures.useWorkspaceUsers.mockClear();
|
|
145
139
|
fixtures.alertsState.isAlertDialogOpen = false;
|
|
146
140
|
fixtures.alertsState.isAlertManagementDialogOpen = true;
|
|
147
141
|
});
|
|
@@ -178,16 +172,6 @@ describe("AlertingConnector", () => {
|
|
|
178
172
|
dashboard: undefined,
|
|
179
173
|
});
|
|
180
174
|
});
|
|
181
|
-
it("does not load workspace users when only the management dialog is open", () => {
|
|
182
|
-
render(_jsx(AlertingConnector, {}));
|
|
183
|
-
expect(fixtures.useWorkspaceUsers).not.toHaveBeenCalled();
|
|
184
|
-
});
|
|
185
|
-
it("loads workspace users when the create/edit dialog is open", () => {
|
|
186
|
-
fixtures.alertsState.isAlertDialogOpen = true;
|
|
187
|
-
fixtures.alertsState.isAlertManagementDialogOpen = false;
|
|
188
|
-
render(_jsx(AlertingConnector, {}));
|
|
189
|
-
expect(fixtures.useWorkspaceUsers).toHaveBeenCalled();
|
|
190
|
-
});
|
|
191
175
|
it("does not supply the deprecated data props to the create/edit dialog", () => {
|
|
192
176
|
fixtures.alertsState.isAlertDialogOpen = true;
|
|
193
177
|
fixtures.alertsState.isAlertManagementDialogOpen = false;
|
|
@@ -13,10 +13,10 @@ export declare function ScheduledEmailAutomationsProvider({ children }: {
|
|
|
13
13
|
* Connector component that reads from the dashboard Redux store and wires up
|
|
14
14
|
* the scheduled-email dialog tree (create/edit and management) via context providers.
|
|
15
15
|
*
|
|
16
|
-
* This is the
|
|
17
|
-
*
|
|
18
|
-
* `useAutomationExportParameters`, `useValidateExistingAutomationFilters`) read
|
|
19
|
-
* `
|
|
16
|
+
* This is the bridge between dashboard store state and the scheduled-email dialog tree, with no
|
|
17
|
+
* exceptions: the shared `automationFilters` hooks (`useAutomationFiltersSelect`,
|
|
18
|
+
* `useAutomationExportParameters`, `useValidateExistingAutomationFilters`) read AutomationsContext and
|
|
19
|
+
* take their widget-scoped values as props from this connector's `ScheduledEmailDialogContext`.
|
|
20
20
|
*
|
|
21
21
|
* AutomationsContext is provided by ScheduledEmailAutomationsProvider, which wraps this
|
|
22
22
|
* connector (see ScheduledEmailAutomationsProvider in DashboardHeader).
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ScheduledEmailConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/ScheduledEmailConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"ScheduledEmailConnector.d.ts","sourceRoot":"","sources":["../../../../src/presentation/automations/connectors/ScheduledEmailConnector.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,YAAY,EAAE,KAAK,SAAS,EAAW,MAAM,OAAO,CAAC;AAsCnE;;;;;;GAMG;AACH,wBAAgB,iCAAiC,CAAC,EAAE,QAAQ,EAAE,EAAE;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,GAAG,YAAY,CAGrG;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,uBAAuB,IAAI,YAAY,GAAG,IAAI,CAM7D"}
|
|
@@ -5,7 +5,6 @@ import { isWidget, } from "@gooddata/sdk-model";
|
|
|
5
5
|
import { getAutomationDashboardFilters, getAutomationVisualizationFilters, } from "../../../_staging/automation/index.js";
|
|
6
6
|
import { useDashboardSelector } from "../../../model/react/DashboardStoreProvider.js";
|
|
7
7
|
import { useDashboardScheduledEmails } from "../../../model/react/useDasboardScheduledEmails/useDashboardScheduledEmails.js";
|
|
8
|
-
import { useWorkspaceUsers } from "../../../model/react/useWorkspaceUsers.js";
|
|
9
8
|
import { selectAutomationDefaultSelectedFilters, selectDashboardHiddenFilters, } from "../../../model/store/filtering/dashboardFilterSelectors.js";
|
|
10
9
|
import { AutomationsContextProvider } from "../contexts/AutomationsContext.js";
|
|
11
10
|
import { ScheduledEmailDialogContextProvider } from "../contexts/ScheduledEmailDialogContext.js";
|
|
@@ -18,9 +17,6 @@ import { useBuildAutomationsContext } from "./hooks/useBuildAutomationsContext.j
|
|
|
18
17
|
import { useBuildScheduledEmailDialogContext } from "./hooks/useBuildScheduledEmailDialogContext.js";
|
|
19
18
|
import { useBuildScheduledEmailManagementDialogContext } from "./hooks/useBuildScheduledEmailManagementDialogContext.js";
|
|
20
19
|
import { useWidgetAutomationFilters } from "./hooks/useWidgetAutomationFilters.js";
|
|
21
|
-
// Stable placeholder so useBuildScheduledEmailDialogContext's useMemo does not see a fresh array
|
|
22
|
-
// (and therefore a new context identity) on every render.
|
|
23
|
-
const EMPTY_USERS = [];
|
|
24
20
|
/**
|
|
25
21
|
* Provides AutomationsContext to its children, built from dashboard Redux state.
|
|
26
22
|
* Wraps the scheduled-email dialog subtree (both the create/edit and management dialogs reach
|
|
@@ -36,10 +32,10 @@ export function ScheduledEmailAutomationsProvider({ children }) {
|
|
|
36
32
|
* Connector component that reads from the dashboard Redux store and wires up
|
|
37
33
|
* the scheduled-email dialog tree (create/edit and management) via context providers.
|
|
38
34
|
*
|
|
39
|
-
* This is the
|
|
40
|
-
*
|
|
41
|
-
* `useAutomationExportParameters`, `useValidateExistingAutomationFilters`) read
|
|
42
|
-
* `
|
|
35
|
+
* This is the bridge between dashboard store state and the scheduled-email dialog tree, with no
|
|
36
|
+
* exceptions: the shared `automationFilters` hooks (`useAutomationFiltersSelect`,
|
|
37
|
+
* `useAutomationExportParameters`, `useValidateExistingAutomationFilters`) read AutomationsContext and
|
|
38
|
+
* take their widget-scoped values as props from this connector's `ScheduledEmailDialogContext`.
|
|
43
39
|
*
|
|
44
40
|
* AutomationsContext is provided by ScheduledEmailAutomationsProvider, which wraps this
|
|
45
41
|
* connector (see ScheduledEmailAutomationsProvider in DashboardHeader).
|
|
@@ -55,7 +51,7 @@ export function ScheduledEmailConnector() {
|
|
|
55
51
|
}
|
|
56
52
|
function ScheduledEmailConnectorInitialized(se) {
|
|
57
53
|
const { isScheduleEmailingDialogOpen, isScheduleEmailingManagementDialogOpen } = se;
|
|
58
|
-
// Defer store reads
|
|
54
|
+
// Defer store reads until at least one dialog is open.
|
|
59
55
|
// This is a deliberate behavior alignment with AlertingConnector (GDP-3167).
|
|
60
56
|
if (!isScheduleEmailingDialogOpen && !isScheduleEmailingManagementDialogOpen) {
|
|
61
57
|
return null;
|
|
@@ -88,21 +84,15 @@ function ScheduledEmailConnectorWithData({ se }) {
|
|
|
88
84
|
return (_jsxs(ScheduledEmailManagementDialogContextProvider, { value: managementCtx, children: [isScheduleEmailingManagementDialogOpen ? (_jsx(ScheduledEmailManagementDialog, { onAdd: onScheduleEmailingManagementAdd, onEdit: handleManagementEdit, onClose: onScheduleEmailingManagementClose, onDeleteSuccess: onScheduleEmailingManagementDeleteSuccess, onDeleteError: onScheduleEmailingManagementDeleteError })) : null, isScheduleEmailingDialogOpen ? (_jsx(ScheduledEmailCreateEditConnector, { scheduledExportToEdit: scheduledExportToEdit, notificationChannels: notificationChannels, widget: insightWidget, insight: insight, dashboardFilters: dashboardFilters, isLoading: isLoading, onBack: onScheduleEmailingBack, onCancel: onScheduleEmailingCancel, onError: onScheduleEmailingCreateError, onSuccess: onScheduleEmailingCreateSuccess, onSaveError: onScheduleEmailingSaveError, onSaveSuccess: onScheduleEmailingSaveSuccess, onDeleteSuccess: onScheduleEmailingManagementDeleteSuccess, onDeleteError: onScheduleEmailingManagementDeleteError })) : null] }));
|
|
89
85
|
}
|
|
90
86
|
/**
|
|
91
|
-
*
|
|
92
|
-
*
|
|
93
|
-
* neither — never dispatches the workspace-users load.
|
|
87
|
+
* Hydrates the scheduled-email create/edit context. Lives here rather than in the parent so that
|
|
88
|
+
* opening only the management dialog — which does not consume it — skips the work.
|
|
94
89
|
*/
|
|
95
90
|
function ScheduledEmailCreateEditConnector(props) {
|
|
96
|
-
const { scheduledExportToEdit, notificationChannels, widget, insight, dashboardFilters, isLoading
|
|
97
|
-
const { users, status: usersStatus, usersError } = useWorkspaceUsers();
|
|
98
|
-
const isLoading = isDataLoading || usersStatus === "pending" || usersStatus === "loading";
|
|
99
|
-
const effectiveUsers = users ?? EMPTY_USERS;
|
|
91
|
+
const { scheduledExportToEdit, notificationChannels, widget, insight, dashboardFilters, isLoading, onBack, onCancel, onError, onSuccess, onSaveError, onSaveSuccess, onDeleteSuccess, onDeleteError, } = props;
|
|
100
92
|
const seCtx = useBuildScheduledEmailDialogContext({
|
|
101
93
|
widget,
|
|
102
94
|
insight,
|
|
103
95
|
scheduledExportToEdit,
|
|
104
|
-
users: effectiveUsers,
|
|
105
|
-
usersError,
|
|
106
96
|
notificationChannels,
|
|
107
97
|
dashboardFilters,
|
|
108
98
|
isLoading,
|