wealth/docs/pages/market/account-profile.md

4.4 KiB

Account profile

/account/profile · apps/{bull,bear}/src/app/(flow)/account/profile/page.tsx · Type: account · Layout: layout.md

Field Value
Robots noindex (page metadata)
Status 200 for every viewer: AuthGuard sends a guest to login in the browser, with a return path
loading.tsx account/profile/loading.tsx: bull: the bar and the investor's form skeleton; bear: the header, the title and the same skeleton; delayed
First flush none
Canonical none: noindex
H1 bull: none (the bar's name isn't a heading); bear: DesktopPageTitle, account:profile.title from i18n
JSON-LD none
Scripts none beyond the layout's

Sections

In bull's document order. One route for both roles (0046): the server sends the investor's frame and skeleton, because most members are investors.

Section Data HTML JS Index Notes
DesktopHeader (bear) viewer first flush hydrate no the page renders it itself; rows as in layout-main.md
AuthGuard fallback: MobileTopBar (bull) or DesktopPageTitle (bear) config first flush hydrate no account:profile.title; back to /account
AccountProfile viewer skeleton hydrate no server HTML: InvestorProfileFormSkeleton; once the viewer is known, CreatorProfileEdit (J03-1, bear's 640 column) or InvestorProfileForm (J12-2, bear's 560 column), each with its own bar or title that replaces the fallback's
↳ LeaveDialog — none hydrate no mounts when back or a link would drop unsaved changes

Notes

  • AccountProfile imports both role forms statically, so every member downloads both. Split them with next/dynamic only if this route's first-load JS runs over its target.
  • A session that ends on the page shows SessionEnded in place and keeps the draft (0042).
  • Debt: different H1 per app. bull has no h1; add a screen-reader h1 to the forms' mobile branch, as SubscriptionTerms does (platforms/market/src/app/screens/(flow)/terms/subscription/organisms/subscription-terms/SubscriptionTerms.tsx:24).