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:
@@ -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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user