Skip to content

Commit

Permalink
Update backfill not supported message (#1437)
Browse files Browse the repository at this point in the history
* Adding support link

* Renaming component as it did not match file

* Updating content to match other content
  • Loading branch information
travjenkins authored Jan 31, 2025
1 parent 3928836 commit 6a8315a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
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';

function BackfillNotSupportedWarning() {
function BackfillNotSupportedAlert() {
const intl = useIntl();
const entityType = useEntityType();

Expand All @@ -19,15 +20,10 @@ function BackfillNotSupportedWarning() {
{ entityType }
)}
>
{intl.formatMessage(
{
id: 'workflows.collectionSelector.manualBackfill.notSupported.message',
},
{ entityType }
)}
<MessageWithLink messageID="workflows.collectionSelector.manualBackfill.notSupported.message" />
</AlertBox>
</Box>
);
}

export default BackfillNotSupportedWarning;
export default BackfillNotSupportedAlert;
5 changes: 4 additions & 1 deletion src/lang/en-US/Workflows.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export const Workflows: Record<string, string> = {

'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 {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.`,
Expand Down

0 comments on commit 6a8315a

Please sign in to comment.