Skip to content

Commit 3f1d0da

Browse files
committed
Add entity specific backfill section description
1 parent 3b9e406 commit 3f1d0da

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

src/components/editor/Bindings/ManualBackfill.tsx

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { Box, Stack, Typography } from '@mui/material';
22
import OutlinedToggleButton from 'components/shared/OutlinedToggleButton';
3+
import { useEntityType } from 'context/EntityContext';
34
import { useEffect, useMemo, useState } from 'react';
45
import { FormattedMessage } from 'react-intl';
56
import {
@@ -23,6 +24,7 @@ interface Props {
2324
}
2425

2526
function ManualBackfill({ bindingIndex }: Props) {
27+
const entityType = useEntityType();
2628
const { updateBackfillCounter } = useUpdateBackfillCounter();
2729

2830
// Draft Editor Store
@@ -117,7 +119,9 @@ function ManualBackfill({ bindingIndex }: Props) {
117119
</Typography>
118120

119121
<Typography component="div">
120-
<FormattedMessage id="workflows.collectionSelector.manualBackfill.message" />
122+
<FormattedMessage
123+
id={`workflows.collectionSelector.manualBackfill.message.${entityType}`}
124+
/>
121125
</Typography>
122126
</Stack>
123127
</Stack>

src/lang/en-US.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,8 @@ const Workflows: ResolvedIntlConfig['messages'] = {
994994
'workflows.collectionSelector.schemaInference.cta.continue': `Apply Inferred Schema`,
995995

996996
'workflows.collectionSelector.manualBackfill.header': `Backfill`,
997-
'workflows.collectionSelector.manualBackfill.message': `This is a placeholder for a description.`,
997+
'workflows.collectionSelector.manualBackfill.message.capture': `Trigger a backfill of this binding from the captured endpoint.`,
998+
'workflows.collectionSelector.manualBackfill.message.materialization': `Trigger a backfill of this binding from its source collection to its materialized resource.`,
998999
'workflows.collectionSelector.manualBackfill.cta.backfill': `Backfill`,
9991000
'workflows.collectionSelector.manualBackfill.failed': `Failed to set backfill trigger for one or more bindings`,
10001001

0 commit comments

Comments
 (0)