Skip to content
Source
Sign inSign up
pingdotgg/t3code

feat: link pull requests to threads #8160

Mergedt3dotgg(GitHub profile, opens in a new tab)merged 7 commits intomain fromrefs/pull/8160/headmerged by t3dotgg(GitHub profile, opens in a new tab) View on GitHub

Showing 39 changed files with 22 additions and 19 deletions (loading 36).

x
0 of 39 viewed, 39 left
5 additions and 4 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -12,7 +12,6 @@
type EnvironmentThreadSearchMatch,
} from "@t3tools/client-runtime/state/thread-search";
import { sortPinnedThreadsByOrderKey } from "@t3tools/client-runtime/state/thread-sort";
-import type { ChangeRequestSettleSource } from "@t3tools/client-runtime/state/thread-settled";
import type {
EnvironmentId,
SidebarProjectGroupingMode,
@@ -54,6 +53,7 @@
buildThreadListV2ListItems,
THREAD_LIST_V2_SETTLED_INITIAL_COUNT,
THREAD_LIST_V2_SETTLED_PAGE_COUNT,
+ type ThreadListV2ChangeRequestState,
type ThreadListV2ListItem,
} from "../threads/threadListV2";
import { useThreadListV2ShelfPreferences } from "../threads/use-thread-list-v2-shelf-preferences";
@@ -491,15 +491,16 @@
// PR states stream in per-row. The next partition applies the configured
// merge rule and the always-on close rule, matching web.
const [changeRequestByKey, setChangeRequestByKey] = useState<
- ReadonlyMap<string, ChangeRequestSettleSource>
+ ReadonlyMap<string, ThreadListV2ChangeRequestState>
>(() => new Map());
const handleChangeRequestState = useCallback(
- (threadKey: string, changeRequest: ChangeRequestSettleSource | null) => {
+ (threadKey: string, changeRequest: ThreadListV2ChangeRequestState | null) => {
setChangeRequestByKey((current) => {
const existing = current.get(threadKey) ?? null;