Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat(relay,server,web,mobile): opt-in to hold webhooks while offline #15487

Mergedjuliusmarmingemerged 35 commits intot3code/webhooks-web fromt3code/webhooks-mailboxmerged by juliusmarminge View on GitHub

Showing 73 changed files with 96 additions and 21 deletions (loading 69).

x
0 of 73 viewed, 73 left
59 additions and 15 deletionsapps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsxModified
View file
@@ -4,7 +4,10 @@
ScheduledTask,
ScheduledTaskUpsertInput,
} from "@t3tools/contracts";
-import { resolveEnvironmentMachineKind } from "@t3tools/contracts";
+import {
+ MAX_WEBHOOK_DELIVERY_AGE_MINUTES,
+ resolveEnvironmentMachineKind,
+} from "@t3tools/contracts";
import type { MenuAction } from "@react-native-menu/menu";
import { DateTimePicker } from "@expo/ui/community/datetime-picker";
import {
@@ -12,6 +15,10 @@
squashAtomCommandFailure,
type AtomCommandResult,
} from "@t3tools/client-runtime/state/runtime";
+import {
+ DEFAULT_WEBHOOK_PROMPT,
+ parseMaxDeliveryAge,
+} from "@t3tools/client-runtime/scheduled-task-webhook";
import {
useCallback,
useEffect,
@@ -59,7 +66,6 @@
import { useSettingsEnvironmentFilter, type SettingsTarget } from "./settings-environment-filter";
import {
editDraft,
- DEFAULT_WEBHOOK_PROMPT,