wealth/docs/pages/market/onboarding-creator-profile.md

37 lines
4.9 KiB
Markdown
Raw Permalink Normal View History

2026-10-21 09:16:11 +00:00
# Onboarding: creator profile
`/onboarding/creator-profile` · `apps/{bull,bear}/src/app/(onboarding)/onboarding/creator-profile/(form)/page.tsx` · Type: account · Layout: [layout.md](layout.md)
| Field | Value |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Robots | `noindex` (page `metadata`) |
| Status | `200`; a guest is replaced to `/auth/login?redirect=` and an investor sees the page-size no-access state, both in the browser (`AuthGuard role="creator"`) |
| loading.tsx | `apps/{bull,bear}/src/app/(onboarding)/onboarding/creator-profile/(form)/loading.tsx` |
| First flush | `none` |
| Canonical | none set |
| H1 | `auth:register.profile.creator.title` in `ProfileForm`; browser only |
| JSON-LD | `none` |
| Scripts | none beyond the layout's |
## Sections
In bull's document order.
| Section | Data | HTML | JS | Index | Notes |
| -------------------------- | ------------- | ----------- | ------- | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AuthTopBar (bull) | config | first flush | none | no | `auth:register.header` only: no back, no brand |
| AuthTemplate header (bear) | config | first flush | none | no | brand `<a href="/feed">`; `framed={false}`, so form and preview sit side by side |
| SupportEntry | — | first flush | hydrate | no | in the bar; the dialog mounts only when open |
| NetworkBar | — | none | hydrate | no | under the bar, only while offline or reconnecting |
| CreatorProfileStep | viewer, query | skeleton | hydrate | no | `AuthGuard` fallback, then `<Suspense>` with the same `CreatorProfileStepSkeleton` while `useSuspenseQuery(profileKeys.mine())` loads the draft in the browser |
| ↳ ProfileForm | query | skeleton | hydrate | no | resume banner, `RegisterProgress`, H1, photo, fields; autosaves the draft (`PATCH`, proposed 0014); «تکمیل ثبت‌نام» opens `/onboarding/creator-profile/done` |
| ↳ SaveStatus | query | skeleton | hydrate | no | the autosave state beside the submit button |
| ↳ ProfilePreview (bull) | query | none | hydrate | no | in a `Sheet` opened by «پیش‌نمایش»; mounts when open |
| ↳ ProfilePreview (bear) | query | skeleton | hydrate | no | live preview card in the aside, beside the form |
## Notes
- The `(onboarding)` layout renders nothing; it only sets `dynamic = 'force-dynamic'`.
- The `<Suspense>` sits inside `AuthGuard`, a client component that returns its fallback on the server, so the query never runs on the server.
- A creator who already finished goes on to their channel or `?redirect=` behind the skeleton.