From 8a33238c8c354519bdd5c7256d141fd494b327e7 Mon Sep 17 00:00:00 2001 From: Travis Jenkins Date: Thu, 30 Jan 2025 18:22:08 -0500 Subject: [PATCH 1/3] Adding support link --- .../Bindings/Backfill/BackfillNotSupportedAlert.tsx | 8 ++------ src/lang/en-US/Workflows.ts | 5 ++++- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx b/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx index 87f336e1c..2d51607bb 100644 --- a/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx +++ b/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx @@ -1,4 +1,5 @@ import { Box } from '@mui/material'; +import MessageWithLink from 'components/content/MessageWithLink'; import AlertBox from 'components/shared/AlertBox'; import { useEntityType } from 'context/EntityContext'; import { useIntl } from 'react-intl'; @@ -19,12 +20,7 @@ function BackfillNotSupportedWarning() { { entityType } )} > - {intl.formatMessage( - { - id: 'workflows.collectionSelector.manualBackfill.notSupported.message', - }, - { entityType } - )} + ); diff --git a/src/lang/en-US/Workflows.ts b/src/lang/en-US/Workflows.ts index e93ba73b6..7b19593f1 100644 --- a/src/lang/en-US/Workflows.ts +++ b/src/lang/en-US/Workflows.ts @@ -79,7 +79,10 @@ export const Workflows: Record = { 'workflows.collectionSelector.manualBackfill.header': `Backfill`, 'workflows.collectionSelector.manualBackfill.notSupported.title': `This {entityType} doesn’t support backfills.`, - 'workflows.collectionSelector.manualBackfill.notSupported.message': `To backfill, disable each binding, save and then re-enable and save.`, + 'workflows.collectionSelector.manualBackfill.notSupported.message': `Please reach out to {docLink} for help with a backfill.`, + 'workflows.collectionSelector.manualBackfill.notSupported.message.docLink': `${CTAs['cta.support']}`, + 'workflows.collectionSelector.manualBackfill.notSupported.message.docPath': `${CommonMessages['support.email']}`, + 'workflows.collectionSelector.manualBackfill.message.capture': `Trigger a backfill of this collection from the source when published.`, 'workflows.collectionSelector.manualBackfill.message.capture.allBindings': `Trigger a backfill of all collections from the source when published. The UI will mark all collections to be backfilled but the server will filter out those that cannot be backfilled (e.g. disabled collections).`, 'workflows.collectionSelector.manualBackfill.message.materialization': `Trigger a backfill from the source collection to its materialized resource when published.`, From a9bbc2d8d66d403995d078b9569b20172f6b2391 Mon Sep 17 00:00:00 2001 From: Travis Jenkins Date: Thu, 30 Jan 2025 18:25:03 -0500 Subject: [PATCH 2/3] Renaming component as it did not match file --- .../editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx b/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx index 2d51607bb..125afed66 100644 --- a/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx +++ b/src/components/editor/Bindings/Backfill/BackfillNotSupportedAlert.tsx @@ -4,7 +4,7 @@ import AlertBox from 'components/shared/AlertBox'; import { useEntityType } from 'context/EntityContext'; import { useIntl } from 'react-intl'; -function BackfillNotSupportedWarning() { +function BackfillNotSupportedAlert() { const intl = useIntl(); const entityType = useEntityType(); @@ -26,4 +26,4 @@ function BackfillNotSupportedWarning() { ); } -export default BackfillNotSupportedWarning; +export default BackfillNotSupportedAlert; From 786df91ef547dc77a1e1c886c946ebf92669928e Mon Sep 17 00:00:00 2001 From: Travis Jenkins Date: Thu, 30 Jan 2025 18:32:19 -0500 Subject: [PATCH 3/3] Updating content to match other content --- src/lang/en-US/Workflows.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lang/en-US/Workflows.ts b/src/lang/en-US/Workflows.ts index 7b19593f1..2ae13c281 100644 --- a/src/lang/en-US/Workflows.ts +++ b/src/lang/en-US/Workflows.ts @@ -79,7 +79,7 @@ export const Workflows: Record = { 'workflows.collectionSelector.manualBackfill.header': `Backfill`, 'workflows.collectionSelector.manualBackfill.notSupported.title': `This {entityType} doesn’t support backfills.`, - 'workflows.collectionSelector.manualBackfill.notSupported.message': `Please reach out to {docLink} for help with a backfill.`, + 'workflows.collectionSelector.manualBackfill.notSupported.message': `Please {docLink} for help with a backfill.`, 'workflows.collectionSelector.manualBackfill.notSupported.message.docLink': `${CTAs['cta.support']}`, 'workflows.collectionSelector.manualBackfill.notSupported.message.docPath': `${CommonMessages['support.email']}`,