Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(mobile): show done for unread completions #4961

Closeddanvernon(GitHub profile, opens in a new tab)wants to merge 2 commits intomain fromrefs/pull/4961/headopened View on GitHub

Showing 15 changed files with 76 additions and 4 deletions (loading 12).

x
0 of 15 viewed, 15 left
21 additions and 2 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -28,13 +28,14 @@
import { EmptyState } from "../../components/EmptyState";
import type { WorkspaceEnvironment, WorkspaceState } from "../../state/workspaceModel";
import type { SavedRemoteConnection } from "../../lib/connection";
-import { scopedProjectKey } from "../../lib/scopedEntities";
+import { scopedProjectKey, scopedThreadKey } from "../../lib/scopedEntities";
import { NATIVE_LIQUID_GLASS_SUPPORTED } from "../../native/native-glass";
import { mobilePreferencesAtom, updateMobilePreferencesAtom } from "../../state/preferences";
import { useThreadSearch } from "../../state/queries";
import { useThreadListV2Enabled } from "../threads/use-thread-list-v2-enabled";
import { environmentServerConfigsAtom } from "../../state/server";
import type { PendingNewTask } from "../../state/use-pending-new-tasks";
+import { useThreadVisits } from "../../state/thread-visits";
import {
PendingTaskListRow,
ThreadListGroupHeader,
@@ -190,6 +191,7 @@
ReadonlyMap<string, HomeGroupDisplayState>
>(() => new Map());
const preferencesResult = useAtomValue(mobilePreferencesAtom);
+ const { lastVisitedAtByThreadKey } = useThreadVisits();
const threadListV2Enabled = useThreadListV2Enabled();
const savePreferences = useAtomSet(updateMobilePreferencesAtom);
const openSwipeableRef = useRef<SwipeableMethods | null>(null);
@@ -664,6 +666,9 @@
(thread.session?.providerInstanceId ?? thread.modelSelection.instanceId),
)?.driver ?? null