wealth/docs/pages/market/account.md

35 lines
5.3 KiB
Markdown

# حساب کاربری (account)
`/account` · `apps/{bull,bear}/src/app/(main)/account/page.tsx` · Type: account · Layout: [layout-main.md](layout-main.md), [layout.md](layout.md)
| Field | Value |
| ----------- | ------------------------------------------------------------------------------------- |
| Robots | `noindex` (page `metadata`) |
| Status | `200`; a guest is sent to login in the browser |
| loading.tsx | `(main)/account/loading.tsx`: the bar or title, then the overview skeleton |
| First flush | none: the identity comes from the session in the browser |
| Canonical | none |
| H1 | bull: none, the top bar's title is a `<span>`; bear: `DesktopPageTitle` «حساب کاربری» |
| JSON-LD | none |
| Scripts | none beyond the layout's |
## Sections
In bull's document order.
| Section | Data | HTML | JS | Index | Notes |
| ------------------------------- | ------------- | ----------- | ------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| MobileTopBar (bull) | config | first flush | hydrate | no | a pushed page's bar: back and support |
| ↳ Title or login link (bull) | viewer | skeleton | hydrate | no | |
| DesktopPageTitle (bear) | config | first flush | hydrate | no | «بازگشت» and the H1 |
| AccountOverview | viewer | skeleton | hydrate | no | `AuthGuard` with `AccountOverviewSkeleton`, in `PartBoundary name="account-overview"`; bear: `framed` |
| ↳ IdentityCard, CreatorFacts | viewer, query | skeleton | hydrate | no | creators also get the review badge, followers and subscribers: browser `useQuery`s that never throw and leave out what fails |
| ↳ PrivacyNote | config | skeleton | hydrate | no | investors only |
| ↳ Settings and help lists | viewer | skeleton | hydrate | no | `ListRow` links to `/account/profile`, `/dashboard/finance#…` (creators), `/account/notifications`, `/account/install` (not in the installed app), `/terms`, `/terms/analyst-agreement` (creators, with version and date from `GET /me/legal-acceptances`); پشتیبانی opens `SupportDialog` |
| ↳ Sign-out button | — | skeleton | hydrate | no | `SignOutConfirm` asks first (0041) |
| ↳ SupportDialog, SignOutConfirm | — | none | hydrate | no | rendered with `open`; statically imported |
## Notes
- Debt: bull has no H1 while bear has one. Give bull an `sr-only` H1 with the same text.