TypeScript
fix(copy): clarify unavailable tasks and duplicate requests (#24149)
Exoticc8e78cbd8490
diff --git a/apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx b/apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsxindex fcb66ae1e62..1af02becdc8 100644--- a/apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx+++ b/apps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsx@@ -1090,7 +1090,7 @@ function TaskForm({}/><FormField- label="Replay key template"+ label="Duplicate request key"value={draft.schedule.replayKey}placeholder="{{headers.delivery-id}}"disabled={saving}@@ -1099,6 +1099,9 @@ function TaskForm({setDraft({ ...draft, schedule: { ...draft.schedule, replayKey } })}/>+ <Text className="px-4 pb-3 text-sm text-foreground-muted">+ Requests with the same key run only once within 7 days.+ </Text><FormFieldlabel="Coalesce key template"value={draft.schedule.coalesceKey}@@ -1121,8 +1124,8 @@ function TaskForm({}/><Text className="px-4 pb-3 text-sm text-foreground-muted">- Replay keys suppress repeats for 7 days. Coalescing runs the latest payload when the- window from the first delivery closes. Empty keys run normally.+ Coalescing runs the latest payload when the window from the first delivery closes.+ Empty keys run normally.</Text></>) : (diff --git a/apps/web/src/components/settings/ScheduledTasksSettings.tsx b/apps/web/src/components/settings/ScheduledTasksSettings.tsxindex 934436d8dce..05c740e55a8 100644--- a/apps/web/src/components/settings/ScheduledTasksSettings.tsx+++ b/apps/web/src/components/settings/ScheduledTasksSettings.tsx@@ -575,7 +575,7 @@ function ScheduledTaskEnvironmentList({{taskId && linkedState?.tasks && linkedState.error === null && !linkedTask ? (<SettingsRowtitle="Task unavailable"- description="This task no longer exists or is outside the selected project scope."+ description="This task was deleted or belongs to a different project. Check your project filter."role="status"/>) : null}@@ -675,7 +675,7 @@ function ScheduledTaskEnvironmentSection({{taskId && !linkedTask ? (<SettingsRowtitle="Task unavailable"- description="This task no longer exists or is outside the selected project scope."+ description="This task was deleted or belongs to a different project. Check your project filter."role="status"/>) : null}@@ -1631,7 +1631,7 @@ function ScheduledTaskEditorForm({onChange={(filters) => setDraft((current) => ({ ...current, filters }))}/><Field- label="Replay key"+ label="Duplicate request key"hint="template, optional"htmlFor="scheduled-task-replay-key">@@ -1644,6 +1644,9 @@ function ScheduledTaskEditorForm({}/></Field>+ <p className="text-xs text-muted-foreground">+ Requests with the same key run only once within 7 days.+ </p><Fieldlabel="Coalesce key"hint="template, optional"@@ -1680,9 +1683,8 @@ function ScheduledTaskEditorForm({/></Field><p className="text-xs text-muted-foreground">- Replay keys suppress repeat deliveries for 7 days. Coalescing runs the latest- payload once when the window from the first delivery closes. Empty keys run- normally.+ Coalescing runs the latest payload once when the window from the first delivery+ closes. Empty keys run normally.</p><div className="flex items-center justify-between gap-4"><div className="min-w-0 space-y-1">diff --git a/apps/web/src/components/settings/scheduledTasksSettings.logic.ts b/apps/web/src/components/settings/scheduledTasksSettings.logic.tsindex 27ddc59f84c..35647d5a76d 100644--- a/apps/web/src/components/settings/scheduledTasksSettings.logic.ts+++ b/apps/web/src/components/settings/scheduledTasksSettings.logic.ts@@ -107,7 +107,7 @@ export function webhookDraftErrors(draft: DraftState) {];const errors: Array<{ title: string; description: string }> = [];for (const [label, value] of [- ["Replay key", draft.replayKey],+ ["Duplicate request key", draft.replayKey],["Coalesce key", draft.coalesceKey],] as const) {if (value.trim() && !isWebhookDedupeTemplate(value.trim()))diff --git a/docs/user/project-settings.md b/docs/user/project-settings.mdindex 63d2ba04e8e..802c15433f0 100644--- a/docs/user/project-settings.md+++ b/docs/user/project-settings.md@@ -134,7 +134,7 @@ compare as text, and a value that is an object or a list only passes**exists**. Separate **is one of** values with commas; a value can't containa comma or start or end with a space.-To suppress repeated deliveries, set a **Replay key** template, such as+To suppress repeated deliveries, set a **Duplicate request key** template, such as`{{headers.delivery-id}}`. The same key is ignored for seven days per task.To combine a burst, set a **Coalesce key**, such as `{{body.id}}`, and a windowof 10–3600 seconds (120 by default). One run uses the latest body, headers,