Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(web): a thread that left a shell running shows its unseen completion #14910

MergedMnigos(GitHub profile, opens in a new tab)merged 2 commits intomain fromrefs/pull/14910/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 8 changed files with 66 additions and 7 deletions (loading 5).

x
0 of 8 viewed, 8 left
27 additions and 4 deletionsapps/mobile/src/features/threads/threadListV2.test.tsModified
View file
@@ -1,3 +1,5 @@
+import { presentThreadShell } from "@t3tools/client-runtime/state/models";
+import * as DateTime from "effect/DateTime";
import { planPinnedMove } from "@t3tools/client-runtime/state/thread-sort";
import {
createPendingThreadOrder,
@@ -23,7 +25,7 @@
import { describe, expect, it, vi } from "vite-plus/test";
​
import type { PendingNewTask } from "../../state/use-pending-new-tasks";
-import { makeThreadShellFixture } from "../../test-fixtures";
+import { makeRawThreadShell, makeThreadShellFixture } from "../../test-fixtures";
import { threadJumpTarget } from "../keyboard/threadKeyboardShortcuts";
import {
buildThreadListV2Items,
@@ -36,6 +38,7 @@
resolveThreadListV2SwipeActions,
sortThreadsForListV2,
threadListV2ListItemsAreEqual,
+ threadHasUnseenCompletion,
type ThreadListV2ListItem,
} from "./threadListV2";
​
@@ -160,9 +163,7 @@
makeThread({
id: ThreadId.make("t"),
title: "t",
- pendingBackgroundTasks: [