wealth/docs/pages/market/layout-dashboard-investor.md

2.5 KiB

Layout: dashboard (investor)

apps/{bull,bear}/src/app/(main)/dashboard/(investor)/layout.tsx · wraps /dashboard/subscriptions, /dashboard/transactions and /dashboard/following · it awaits no read, so it adds nothing to any page's first flush; it sits outside each section's loading.tsx, so the bar and the tabs stay while a section loads

Section Data HTML JS Index Notes
MobileTopBar (bull) config first flush hydrate no isTab: the brand and «داشبورد» centred, in a <span>; support entry; the connection bar under it (0040)
↳ NotificationBell and account avatar (bull) viewer none hydrate no member only; while the viewer is unknown, the guest's «ورود/ثبت‌نام» holds the end of the bar, invisible
«داشبورد» <h1> (bear) config first flush none no at the top of the 640 column
DashboardTabs config first flush hydrate no island TabLinks, an <a href> per section «اشتراک‌ها» · «تراکنش‌ها» · «دنبال‌شده‌ها» (0025); the active one comes from usePathname, so the server HTML already marks it

Scripts: none beyond the root layout's.

Notes

  • No guard in the layout: each page's AuthGuard role="investor" sends a guest to login and shows a creator the page-size no-access state, under these tabs. A creator's داشبورد is layout-dashboard-creator.md; the two groups' URLs don't overlap.
  • Debt: bull has no <h1> (the bar's «داشبورد» is a <span>), bear has one, apps/bull/src/app/(main)/dashboard/(investor)/layout.tsx:21. Same fix as the creator layout.