feat: member portal Sprint 3 — profile edit form and privacy center

- PATCH /my/profile API endpoint (displayName, hometown, currentLocation, interests, language, digestPreference, directoryVisible)
- BFF PATCH /api/my/profile route
- ProfileForm client component: interest chips, digest preference, language, directory toggle
- Settings page rewrite: profile edit + privacy center (consent list + opt-out) + session + account delete

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-06-17 16:06:20 +05:30
parent bc9fe7c145
commit f7922454ca
5 changed files with 334 additions and 6 deletions
+11
View File
@@ -7,3 +7,14 @@ export async function GET(): Promise<Response> {
const body = await res.json();
return jsonResponse(body, res.status);
}
export async function PATCH(request: Request): Promise<Response> {
const body = await request.json();
const res = await memberApiFetch('/my/profile', {
method: 'PATCH',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});
const resBody = await res.json();
return jsonResponse(resBody, res.status);
}