Skip to content

Commit 87c805e

Browse files
committed
fix(copy): clarify unavailable tasks and duplicate requests
1 parent 66ee628 commit 87c805e

4 files changed

Lines changed: 16 additions & 11 deletions

File tree

‎apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1068,7 +1068,7 @@ function TaskForm({
10681068
}
10691069
/>
10701070
<FormField
1071-
label="Replay key template"
1071+
label="Duplicate request key"
10721072
value={draft.schedule.replayKey}
10731073
placeholder="{{headers.delivery-id}}"
10741074
disabled={saving}
@@ -1077,6 +1077,9 @@ function TaskForm({
10771077
setDraft({ ...draft, schedule: { ...draft.schedule, replayKey } })
10781078
}
10791079
/>
1080+
<Text className="px-4 pb-3 text-sm text-foreground-muted">
1081+
Requests with the same key run only once within 7 days.
1082+
</Text>
10801083
<FormField
10811084
label="Coalesce key template"
10821085
value={draft.schedule.coalesceKey}
@@ -1099,8 +1102,8 @@ function TaskForm({
10991102
}
11001103
/>
11011104
<Text className="px-4 pb-3 text-sm text-foreground-muted">
1102-
Replay keys suppress repeats for 7 days. Coalescing runs the latest payload when the
1103-
window from the first delivery closes. Empty keys run normally.
1105+
Coalescing runs the latest payload when the window from the first delivery closes.
1106+
Empty keys run normally.
11041107
</Text>
11051108
</>
11061109
) : (

‎apps/web/src/components/settings/ScheduledTasksSettings.tsx‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ function ScheduledTaskEnvironmentList({
549549
{taskId && linkedState?.tasks && linkedState.error === null && !linkedTask ? (
550550
<SettingsRow
551551
title="Task unavailable"
552-
description="This task no longer exists or is outside the selected project scope."
552+
description="This task was deleted or belongs to a different project. Check your project filter."
553553
role="status"
554554
/>
555555
) : null}
@@ -640,7 +640,7 @@ function ScheduledTaskEnvironmentSection({
640640
{taskId && !linkedTask ? (
641641
<SettingsRow
642642
title="Task unavailable"
643-
description="This task no longer exists or is outside the selected project scope."
643+
description="This task was deleted or belongs to a different project. Check your project filter."
644644
role="status"
645645
/>
646646
) : null}
@@ -1547,7 +1547,7 @@ function ScheduledTaskEditorForm({
15471547
onChange={(filters) => setDraft((current) => ({ ...current, filters }))}
15481548
/>
15491549
<Field
1550-
label="Replay key"
1550+
label="Duplicate request key"
15511551
hint="template, optional"
15521552
htmlFor="scheduled-task-replay-key"
15531553
>
@@ -1560,6 +1560,9 @@ function ScheduledTaskEditorForm({
15601560
}
15611561
/>
15621562
</Field>
1563+
<p className="text-xs text-muted-foreground">
1564+
Requests with the same key run only once within 7 days.
1565+
</p>
15631566
<Field
15641567
label="Coalesce key"
15651568
hint="template, optional"
@@ -1596,9 +1599,8 @@ function ScheduledTaskEditorForm({
15961599
/>
15971600
</Field>
15981601
<p className="text-xs text-muted-foreground">
1599-
Replay keys suppress repeat deliveries for 7 days. Coalescing runs the latest
1600-
payload once when the window from the first delivery closes. Empty keys run
1601-
normally.
1602+
Coalescing runs the latest payload once when the window from the first delivery
1603+
closes. Empty keys run normally.
16021604
</p>
16031605
<div className="flex items-center justify-between gap-4">
16041606
<div className="min-w-0 space-y-1">

‎apps/web/src/components/settings/scheduledTasksSettings.logic.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export function webhookDraftErrors(draft: DraftState) {
110110
];
111111
const errors: Array<{ title: string; description: string }> = [];
112112
for (const [label, value] of [
113-
["Replay key", draft.replayKey],
113+
["Duplicate request key", draft.replayKey],
114114
["Coalesce key", draft.coalesceKey],
115115
] as const) {
116116
if (value.trim() && !isWebhookDedupeTemplate(value.trim()))

‎docs/user/project-settings.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ compare as text, and a value that is an object or a list only passes
118118
**exists**. Separate **is one of** values with commas; a value can't contain
119119
a comma or start or end with a space.
120120

121-
To suppress repeated deliveries, set a **Replay key** template, such as
121+
To suppress repeated deliveries, set a **Duplicate request key** template, such as
122122
`{{headers.delivery-id}}`. The same key is ignored for seven days per task.
123123
To combine a burst, set a **Coalesce key**, such as `{{body.id}}`, and a window
124124
of 10–3600 seconds (120 by default). One run uses the latest body, headers,

0 commit comments

Comments
 (0)