36 lines
4.6 KiB
Markdown
36 lines
4.6 KiB
Markdown
# Login
|
|
|
|
`/auth/login` · `apps/{bull,bear}/src/app/(auth)/auth/login/(number)/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`, never by the server |
|
|
| loading.tsx | `apps/{bull,bear}/src/app/(auth)/auth/login/(number)/loading.tsx`: the same frame and a `delayed` form skeleton |
|
|
| First flush | `none` |
|
|
| Canonical | none set |
|
|
| H1 | `auth:login.title`, or `auth:login.subscribe.title` when the visitor came from «اشتراک»; inside `LoginStep`, so 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; sticky, with the connection bar in its box |
|
|
| ↳ BackButton (bull) | URL | first flush | hydrate | no | `<a href="/">`, or straight to `?redirect=` (`leavesFlow`, J01-1e) |
|
|
| AuthTemplate header (bear) | config | first flush | none | no | brand `<a href="/">`; the step sits in the 560 card below |
|
|
| SupportEntry | — | first flush | hydrate | no | headset icon in the bar; bull: bottom sheet; bear: popover |
|
|
| ↳ SupportDialog | config | none | hydrate | no | island `Dialog` mounts its content only while open |
|
|
| NetworkBar | — | none | hydrate | no | under the bar, only while offline or reconnecting |
|
|
| LoginStep | viewer | skeleton | hydrate | no | `GuestGuard` shows `SkeletonPreset preset="form"` until the viewer is known; guest: H1, phone form, register link, support; member: replaced to `?redirect=`, home, or step 5 when `needsProfile` |
|
|
| ↳ RulesCaption | config | none | hydrate | no | under the submit button; its link opens `LegalDocumentDialog`, which reads `GET /legal/platform_rules` only when opened; a sheet on bull, a modal on bear |
|
|
|
|
## Notes
|
|
|
|
- Decision 0013 overrides the skill's login map (H1 and phone form in the first flush): every `(auth)` step renders only in the browser behind `GuestGuard`, and flow state stays in memory.
|
|
- The `(auth)` layout renders nothing; it only sets `dynamic = 'force-dynamic'`. `(auth)/error.tsx` shows `PageError` with `standalone`.
|
|
- bull: `size="lg"`, support at the bottom; bear: `size="md"`, support as a popover.
|