Skip to content

Commit c8e78cb

Browse files
authored
fix(copy): clarify unavailable tasks and duplicate requests (#24149)
1 parent 35041c2 commit c8e78cb

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
@@ -1090,7 +1090,7 @@ function TaskForm({
10901090
}
10911091
/>
10921092
<FormField
1093-
label="Replay key template"
1093+
label="Duplicate request key"
10941094
value={draft.schedule.replayKey}
10951095
placeholder="{{headers.delivery-id}}"
10961096
disabled={saving}
@@ -1099,6 +1099,9 @@ function TaskForm({
10991099
setDraft({ ...draft, schedule: { ...draft.schedule, replayKey } })
11001100
}
11011101
/>
1102+
<Text className="px-4 pb-3 text-sm text-foreground-muted">
1103+
Requests with the same key run only once within 7 days.
1104+
</Text>
11021105
<FormField
11031106
label="Coalesce key template"
11041107
value={draft.schedule.coalesceKey}
@@ -1121,8 +1124,8 @@ function TaskForm({
11211124
}
11221125
/>
11231126
<Text className="px-4 pb-3 text-sm text-foreground-muted">
1124-
Replay keys suppress repeats for 7 days. Coalescing runs the latest payload when the
1125-
window from the first delivery closes. Empty keys run normally.
1127+
Coalescing runs the latest payload when the window from the first delivery closes.
1128+
Empty keys run normally.
11261129
</Text>
11271130
</>
11281131
) : (

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

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -575,7 +575,7 @@ function ScheduledTaskEnvironmentList({
575575
{taskId && linkedState?.tasks && linkedState.error === null && !linkedTask ? (
576576
<SettingsRow
577577
title="Task unavailable"
578-
description="This task no longer exists or is outside the selected project scope."
578+
description="This task was deleted or belongs to a different project. Check your project filter."
579579
role="status"
580580
/>
581581
) : null}
@@ -675,7 +675,7 @@ function ScheduledTaskEnvironmentSection({
675675
{taskId && !linkedTask ? (
676676
<SettingsRow
677677
title="Task unavailable"
678-
description="This task no longer exists or is outside the selected project scope."
678+
description="This task was deleted or belongs to a different project. Check your project filter."
679679
role="status"
680680
/>
681681
) : null}
@@ -1631,7 +1631,7 @@ function ScheduledTaskEditorForm({
16311631
onChange={(filters) => setDraft((current) => ({ ...current, filters }))}
16321632
/>
16331633
<Field
1634-
label="Replay key"
1634+
label="Duplicate request key"
16351635
hint="template, optional"
16361636
htmlFor="scheduled-task-replay-key"
16371637
>
@@ -1644,6 +1644,9 @@ function ScheduledTaskEditorForm({
16441644
}
16451645
/>
16461646
</Field>
1647+
<p className="text-xs text-muted-foreground">
1648+
Requests with the same key run only once within 7 days.
1649+
</p>
16471650
<Field
16481651
label="Coalesce key"
16491652
hint="template, optional"
@@ -1680,9 +1683,8 @@ function ScheduledTaskEditorForm({
16801683
/>
16811684
</Field>
16821685
<p className="text-xs text-muted-foreground">
1683-
Replay keys suppress repeat deliveries for 7 days. Coalescing runs the latest
1684-
payload once when the window from the first delivery closes. Empty keys run
1685-
normally.
1686+
Coalescing runs the latest payload once when the window from the first delivery
1687+
closes. Empty keys run normally.
16861688
</p>
16871689
<div className="flex items-center justify-between gap-4">
16881690
<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
@@ -107,7 +107,7 @@ export function webhookDraftErrors(draft: DraftState) {
107107
];
108108
const errors: Array<{ title: string; description: string }> = [];
109109
for (const [label, value] of [
110-
["Replay key", draft.replayKey],
110+
["Duplicate request key", draft.replayKey],
111111
["Coalesce key", draft.coalesceKey],
112112
] as const) {
113113
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
@@ -134,7 +134,7 @@ compare as text, and a value that is an object or a list only passes
134134
**exists**. Separate **is one of** values with commas; a value can't contain
135135
a comma or start or end with a space.
136136

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

0 commit comments

Comments
 (0)