wealth/docs/pages/market/auth-register.md

33 lines
3.5 KiB
Markdown

# Register: account type
`/auth/register` · `apps/{bull,bear}/src/app/(auth)/auth/register/(type)/page.tsx` · Type: login · Layout: [layout.md](layout.md)
| Field | Value |
| ----------- | -------------------------------------------------------------------------------------- |
| Robots | `noindex` (page `metadata`) |
| Status | `200` for every visitor; a signed-in visitor is sent on in the browser by `GuestGuard` |
| loading.tsx | `apps/{bull,bear}/src/app/(auth)/auth/register/(type)/loading.tsx` |
| First flush | `none` |
| Canonical | none set; `?role=` preselects a card |
| H1 | `auth:register.type.title`; 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 | back button, no title |
| ↳ BackButton (bull) | URL | first flush | hydrate | no | `<a href>` to `/auth/login`, keeping `?redirect=` |
| AuthTemplate header (bear) | config | first flush | none | no | brand `<a href="/">` |
| 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 |
| RegisterTypeStep | viewer | skeleton | hydrate | no | `GuestGuard` fallback `SkeletonPreset preset="form" count={2}`; guest: `RegisterProgress`, H1, two `ChoiceCard`s (investor, creator) in a fieldset, the note that the type can't change, «ادامه» |
## Notes
- Decision 0013: the step renders only in the browser; the chosen role goes to the auth-flow store, never the URL.
- bull: `size="lg"`, support at the bottom; bear: `size="md"`, support as a popover.