brackt/app/components/user/settings/ApiSection.tsx
Claude 388071fef8
Add account deletion and multi-section settings page
- Rename /user-profile → /settings with 301 redirect from old URL
- Add multi-section settings nav (Profile, Account, API placeholder, Data & Privacy)
  reusing existing SettingsDesktopNav/SettingsMobileGridNav components
- Implement account deletion via anonymization: wipes all PII from users row,
  releases team ownerships, removes commissioner records, deletes sessions/accounts
- Add data export request form that emails privacy@brackt.com via Resend
- Add deletedAt timestamp column to users table (migration 0100)
- Add anonymizeUserAccount() to user model
- Add removeAllCommissionersByUserId() to commissioner model
- Tests for both new model functions
- Update UserMenu "Profile" link → "Settings" at /settings

https://claude.ai/code/session_017Hvmof82Xr3UwKFc3pnC4X
2026-05-10 20:28:23 +00:00

24 lines
794 B
TypeScript

import { Key } from "lucide-react";
export function ApiSection() {
return (
<div className="space-y-6">
<div>
<h2 className="text-lg font-semibold">API Access</h2>
<p className="text-sm text-muted-foreground">
Manage API keys for third-party integrations.
</p>
</div>
<div className="rounded-lg border border-dashed p-8 text-center">
<div className="mx-auto mb-3 flex h-10 w-10 items-center justify-center rounded-lg bg-muted">
<Key className="h-5 w-5 text-muted-foreground" />
</div>
<h3 className="text-sm font-medium">Coming Soon</h3>
<p className="mt-1 text-sm text-muted-foreground">
API access will be available in a future update.
</p>
</div>
</div>
);
}