wealth/platforms
Amiram_se 436695ae0b feat(market): registration step 5, profile completion
Creator (required, resumable) and investor (optional) profile steps, on the
session after registration step 4.

- Profile repository: `saveDraft` (PATCH /traders/me/profile, markets may be
  empty) and `complete` (POST /traders/me/profile/complete).
- Account repository: avatar upload and removal, `interests`; the account
  payload carries `avatarUrl` and `interests`.
- Actions: completeCreatorProfile (saves the form, then completes; emits
  `profile.complete`) and saveInvestorProfile (photo with progress, then
  markets; emits `auth.profile-saved`).
- Creator models: the page (form from the saved draft, links field array,
  submit), autosave (1 s after typing and on blur, one save at a time, never
  after completion), the photo part (uploads on pick, failed state with retry)
  and the live preview.
- Investor model: photo and markets saved on «ذخیره و ورود», «بعداً» skips;
  both land on ?redirect= or home with the welcome toast.
- The auth-flow store remembers the role registered in this tab, so step 5
  shows the resume banner only after a login or a reload.
- Validations: photo, bio, link rows per platform, markets, consent.
  Utils: social link handle and URL mapping, market toggle. PROFILE_LIMITS
  moves to shared/validations.
- Screens: CreatorProfileStep (mobile column with a preview sheet, desktop
  card beside a sticky preview, end-of-registration view) with its skeleton,
  and InvestorProfileStep.
- Copy for step 5 in the auth namespace; market and status labels in common.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-05 22:33:00 +04:00
..
market feat(market): registration step 5, profile completion 2026-10-05 22:33:00 +04:00