Skip to content
Source
Sign inSign up
pingdotgg/t3code

refactor(mobile): retire the legacy grouped thread list #13183

Mergedjuliusmarmingemerged 4 commits intoagent/mobile-audit-list-recycler fromrefs/pull/13183/headmerged by juliusmarminge View on GitHub

Showing 24 changed files with 14 additions and 112 deletions (loading 21).

x
0 of 24 viewed, 24 left
6 additions and 58 deletionsapps/mobile/src/features/home/HomeHeader.android.tsxModified
View file
@@ -1,13 +1,7 @@
import type { MenuAction } from "@react-native-menu/menu";
import { useCallback, useMemo } from "react";
import { NativeStackScreenOptions } from "../../native/StackHeader";
-import { useThreadListV2Enabled } from "../threads/use-thread-list-v2-enabled";
import { MaterialThreadListToolbar } from "./MaterialThreadListToolbar";
-import {
- hasCustomHomeListOptions,
- PROJECT_SORT_OPTIONS,
- THREAD_SORT_OPTIONS,
-} from "./home-list-options";
import type { HomeHeaderProps } from "./HomeHeader.types";
​
export type { HomeHeaderEnvironment } from "./HomeHeader.types";
@@ -17,13 +11,11 @@
​
export function HomeHeader(props: HomeHeaderProps) {
- // Thread List v2 lays the list out in fixed creation order, so the
- // sort/group filter controls would be silently ignored — hide them and
- // key the "customized" icon state off the environment filter alone.
- const threadListV2Enabled = useThreadListV2Enabled();
- const hasCustomListOptions = threadListV2Enabled
- ? props.selectedEnvironmentId !== null || props.selectedProjectKey !== null
- : hasCustomHomeListOptions(props);
+ // The list uses a fixed creation order and ignores sort/group options, so
+ // the filter menu only carries the filters and the "customized" icon state
+ // keys off those alone.
+ const hasCustomListOptions =
+ props.selectedEnvironmentId !== null || props.selectedProjectKey !== null;