Skip to content
Source
Sign inSign up
pingdotgg/t3code

fix(search): make older threads easier to find #44686

ClosedImBIOS(GitHub profile, opens in a new tab)wants to merge 1 commit intomain fromrefs/pull/44686/headopened View on GitHub

Showing 21 changed files with 14 additions and 10 deletions (loading 18).

x
0 of 21 viewed, 21 left
1 addition and 3 deletionsapps/mobile/src/features/home/HomeScreen.tsxModified
View file
@@ -385,9 +385,7 @@
const threadSearch = useThreadSearch(
searchEnvironmentIds,
props.searchQuery,
- v2ScopedProjectGroup === null
- ? {}
- : { projectIds: v2ScopedProjectGroup.projectRefs.map((ref) => ref.projectId) },
+ v2ScopedProjectGroup === null ? {} : { projectRefs: v2ScopedProjectGroup.projectRefs },
const threadSearchMatchByKey = useThreadListSearchMatches(props.threads, threadSearch);
const v2ProjectTitleByProjectKey = new Map(
1 addition and 3 deletionsapps/mobile/src/features/threads/ThreadNavigationSidebar.tsxModified
View file
@@ -247,9 +247,7 @@
const threadSearch = useThreadSearch(
searchEnvironmentIds,
props.searchQuery,
- selectedProjectScope === null
- ? {}
- : { projectIds: selectedProjectScope.projectRefs.map((ref) => ref.projectId) },
+ selectedProjectScope === null ? {} : { projectRefs: selectedProjectScope.projectRefs },
// This map reaches LegendList's extraData, which re-renders every row whenever it changes
// identity; the hook keeps it stable.
12 additions and 4 deletionsapps/mobile/src/state/queries.tsModified
View file