feat: merge people search into the recipe search bar on Explore

People search existed but was buried in its own tab with no entry
point from anywhere else — easy to conclude it "doesn't work" since
nobody would find it. Now one query on Explore hits both
/api/v1/search and /api/v1/users/search and renders People/Recipes
sections together; the standalone people tab and its now-dead
PeopleSearch component are gone.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-13 15:38:29 +02:00
parent 6dd48b5c25
commit 79cdb8cd04
9 changed files with 109 additions and 146 deletions
+2 -3
View File
@@ -27,9 +27,9 @@ export type RecipeResult = {
export default async function ExplorePage({
searchParams,
}: {
searchParams: Promise<{ q?: string; tab?: string }>;
searchParams: Promise<{ q?: string }>;
}) {
const { q, tab } = await searchParams;
const { q } = await searchParams;
const sevenDaysAgo = new Date(Date.now() - 7 * 24 * 60 * 60 * 1000);
// Trending: public recipes ordered by favorite count in last 7 days
@@ -81,7 +81,6 @@ export default async function ExplorePage({
trending={trending}
recent={recent}
initialQuery={q ?? ""}
initialTab={tab === "people" ? "people" : "recipes"}
/>
);
}