Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(server): pause scheduled tasks bound to archived threads #11635

Closedsaphid(GitHub profile, opens in a new tab)wants to merge 27 commits intomain fromrefs/pull/11635/headopened View on GitHub

Showing 39 changed files with 75 additions and 28 deletions (loading 37).

x
0 of 39 viewed, 39 left
11 additions and 1 deletionapps/mobile/src/features/archive/ArchivedThreadsScreen.tsxModified
View file
@@ -434,7 +434,17 @@
keyExtractor={(item) => item.key}
ListEmptyComponent={listEmptyComponent}
ListHeaderComponent={
- props.error ? <ArchiveError message={props.error} onRetry={props.onRefresh} /> : null
+ <>
+ {listItems.length > 0 ? (
+ <Text className="px-1 pb-3 text-sm text-foreground-muted">
+ Unarchiving leaves any scheduled tasks paused. Re-enable them in Scheduled
+ tasks.
+ </Text>
+ ) : null}
+ {props.error ? (
+ <ArchiveError message={props.error} onRetry={props.onRefresh} />
+ ) : null}
+ </>
onScrollBeginDrag={() => openSwipeableRef.current?.close()}
refreshControl={
64 additions and 27 deletionsapps/mobile/src/features/settings/SettingsScheduledTasksRouteScreen.tsxModified
View file
@@ -5,6 +5,7 @@
clampManagedRuntimeMode,
managedCapabilityDenial,
resolveProjectProviderInstanceEnabled,
+ scheduledTaskLegacyUpsert,
} from "@t3tools/contracts";
import { readEnvironmentScope } from "../../state/session";