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
+14 -1
View File
@@ -1,4 +1,4 @@
import { Body, Controller, Delete, Get, Param, Post } from '@nestjs/common';
import { Body, Controller, Delete, Get, Param, Patch, Post } from '@nestjs/common';
import { MyService } from './my.service';
import { MemberAuth } from '../auth/member-auth.decorator';
import { CurrentMember } from '../auth/current-member.decorator';
@@ -39,6 +39,19 @@ export class MyController {
return this.service.getProfile(member.sub, member.tenantId);
}
@Patch('profile')
updateProfile(@CurrentMember() member: MemberJwtPayload, @Body() body: {
displayName?: string;
hometown?: string;
currentLocation?: string;
interests?: string[];
language?: string;
digestPreference?: string;
directoryVisible?: boolean;
}) {
return this.service.updateProfile(member.sub, member.tenantId, body);
}
@Get('groups')
listGroups(@CurrentMember() member: MemberJwtPayload) {
return this.service.listGroups(member.sub, member.tenantId);