diff options
author | Eric Bailey <git@esb.lol> | 2025-04-07 19:40:31 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-07 17:40:31 -0700 |
commit | 28876a4b23ec9a2269f19f0914aa751de7e85f99 (patch) | |
tree | fe21c9d321117d393645f1c4a6a242b05bb70d63 | |
parent | 1e8a96e297861c400e060ed3b423408bca075201 (diff) | |
download | voidsky-28876a4b23ec9a2269f19f0914aa751de7e85f99.tar.zst |
Slice 'For You' results (#8152)
-rw-r--r-- | src/screens/Search/Explore.tsx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/screens/Search/Explore.tsx b/src/screens/Search/Explore.tsx index e29b85f76..a978ec556 100644 --- a/src/screens/Search/Explore.tsx +++ b/src/screens/Search/Explore.tsx @@ -215,7 +215,6 @@ export function Explore({ const gate = useGate() const guide = useProgressGuide('follow-10') const [selectedInterest, setSelectedInterest] = useState<string | null>(null) - // TODO always get at least 10 back TODO still const { data: suggestedUsers, isLoading: suggestedUsersIsLoading, @@ -373,7 +372,12 @@ export function Explore({ key: 'profileEmpty', }) } else { - i.push(...profileItems) + if (selectedInterest === null) { + // First "For You" tab, only show 5 to keep screen short + i.push(...profileItems.slice(0, 5)) + } else { + i.push(...profileItems) + } } } else { i.push({ @@ -393,6 +397,7 @@ export function Explore({ suggestedUsersIsLoading, suggestedUsersIsRefetching, suggestedUsersError, + selectedInterest, ]) const suggestedFeedsModule = useMemo(() => { const i: ExploreScreenItems[] = [] |