Skip to content

Commit 0006c1d

Browse files
fix(mobile): sort the iOS thread list project filter pill by recent activity
Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent e5ba287 commit 0006c1d

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎apps/mobile/src/features/home/HomeScreen.tsx‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ import {
9292
buildHomeProjectScopes,
9393
findHomeProjectScope,
9494
type HomeProjectSortOrder,
95+
sortHomeProjectScopes,
9596
} from "./homeThreadList";
9697
import { createSwipeRowActivation } from "./swipe-row-activation";
9798
import { SwipeableScrollGateProvider, useSwipeableScrollGate } from "./thread-swipe-actions";
@@ -678,7 +679,14 @@ export function HomeScreen(props: HomeScreenProps) {
678679
<ThreadListFilters
679680
gutter={sidebarSurface ? 8 : 0}
680681
environments={props.environments}
681-
projects={pickableProjectGroups(projectScopes).map((scope) => ({
682+
projects={pickableProjectGroups(
683+
sortHomeProjectScopes({
684+
scopes: projectScopes,
685+
threads: props.threads,
686+
pendingTasks: [],
687+
projectSortOrder: "updated_at",
688+
}),
689+
).map((scope) => ({
682690
key: scope.key,
683691
label: scope.title,
684692
}))}

0 commit comments

Comments
 (0)