feat: user search/discovery

Previously the only way to find someone to follow was knowing their
exact username. Add GET /api/v1/users/search (name/username ilike,
excludes blocked-either-way) and a /people page with debounced search
+ inline follow buttons. Linked from the Explore page.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
Arnaud
2026-07-03 22:12:03 +02:00
parent 57c29f62b4
commit 73a71d28cd
4 changed files with 149 additions and 1 deletions
+16
View File
@@ -0,0 +1,16 @@
import type { Metadata } from "next";
import { PeopleSearch } from "@/components/social/people-search";
export const metadata: Metadata = { title: "Find People — Epicure" };
export default function PeoplePage() {
return (
<div className="max-w-2xl mx-auto space-y-6">
<div>
<h1 className="text-2xl font-bold tracking-tight">Find People</h1>
<p className="text-muted-foreground text-sm mt-1">Search for cooks to follow by name or username.</p>
</div>
<PeopleSearch />
</div>
);
}