3.3 KiB
3.3 KiB
Layout: dashboard (creator)
apps/{bull,bear}/src/app/(main)/dashboard/(creator)/layout.tsx · wraps /dashboard/overview, /dashboard/plans, /dashboard/predictions and /dashboard/finance · it awaits no read, so it adds nothing to any page's first flush; it sits outside each tab's loading.tsx, so the bar and the tabs stay while a tab loads
| Section | Data | HTML | JS | Index | Notes |
|---|---|---|---|---|---|
| OnboardingGuard | viewer | none | hydrate | no | renders its children unchanged; once the browser knows the viewer, a creator who hasn't finished step 5 is sent to /onboarding/creator-profile with a return path (0016) |
| 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 | role="creator": island TabLinks, an <a href> per tab «نمای کلی» · «طرحهای اشتراک» · «سیگنالها» · «مالی» (0034, 0072); the active tab comes from usePathname, so the server HTML already marks it |
Scripts: none beyond the root layout's.
Notes
- The tabs' URLs don't overlap the investor group's:
(creator)ownsoverview,plans,predictionsandfinance,(investor)ownssubscriptions,transactionsandfollowing. There is no/dashboardpage, so/dashboardanswers the root not-found. The bottom nav (bull) and the header (bear) link a creator to/dashboard/overviewand an investor to/dashboard/subscriptions. - The layout doesn't check the role: each page's
AuthGuard role="creator"shows an investor the page-size no-access state, under these tabs. - Debt: bull has no
<h1>(the bar's «داشبورد» is a<span>), bear has one,apps/bull/src/app/(main)/dashboard/(creator)/layout.tsx:22. Make the bar's tab title an<h1>on tab screens, or add a visually hidden<h1>in the bull layout.