Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: snooze running threads until done #13196

Closedjakeleventhal(GitHub profile, opens in a new tab)wants to merge 2 commits intot3code/codex-turn-mapping fromrefs/pull/13196/headopened View on GitHub

Showing 34 changed files with 19 additions and 7 deletions (loading 31).

x
0 of 34 viewed, 34 left
7 additions and 3 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -10,6 +10,7 @@
threadSearchMatchKey,
type EnvironmentThreadSearchMatch,
} from "@t3tools/client-runtime/state/thread-search";
+import type { SnoozeTarget } from "@t3tools/client-runtime/state/thread-settled";
import { type EnvironmentId, type SidebarProjectGroupingMode } from "@t3tools/contracts";
import { useAtomValue } from "@effect/atom-react";
import { useFocusEffect } from "@react-navigation/native";
@@ -95,7 +96,7 @@
readonly onSettleThread: (thread: EnvironmentThreadShell) => Promise<boolean>;
readonly onSnoozeThread: (
thread: EnvironmentThreadShell,
- snoozedUntil: string,
+ target: SnoozeTarget,
) => Promise<boolean>;
readonly onUnsnoozeThread: (thread: EnvironmentThreadShell) => Promise<boolean>;
readonly onUnsettleThread: (thread: EnvironmentThreadShell) => void;
@@ -400,8 +401,8 @@
// optimistic holds.
const handleSettleThread = props.onSettleThread;
const handleSnoozeThread = useCallback(
- (thread: EnvironmentThreadShell, snoozedUntil: string) => {
- void props.onSnoozeThread(thread, snoozedUntil);
+ (thread: EnvironmentThreadShell, target: SnoozeTarget) => {
+ void props.onSnoozeThread(thread, target);
[props.onSnoozeThread],