wealth/docs/pages/market/dashboard-plans.md

3.8 KiB

Dashboard: plans

/dashboard/plans · apps/{bull,bear}/src/app/(main)/dashboard/(creator)/plans/page.tsx · Type: account · Layout: layout-dashboard-creator.md, layout-main.md, layout.md

Field Value
Robots noindex (page metadata)
Status 200 for every viewer: a guest is sent to login in the browser, an investor sees AuthGuard's page-size no-access state
loading.tsx (creator)/plans/loading.tsx: the three cards' skeletons, delayed
First flush none
Canonical none: noindex
H1 bull: none (see the layout doc); bear: «داشبورد» in the layout
JSON-LD none
Scripts none beyond the layout's

Sections

In bull's document order. Everything sits in AuthGuard role="creator", whose fallback is the three skeletons, so the server HTML is only skeletons.

Section Data HTML JS Index Notes
PricingCard viewer skeleton hydrate no «قیمت طرح‌ها»: its own PartBoundary and <Suspense> (useSuspenseQuery in the browser); links to /dashboard/pricing
InviteCodeCard viewer skeleton hydrate no «کد دعوت»: renders nothing until the creator is approved (J10-1e); the invite link is built from NEXT_PUBLIC_SITE_URL; own PartBoundary and <Suspense>
↳ InviteShareSheet, CapacityRequestDialog viewer none hydrate no mount when opened; bull: share opens a bottom sheet; bear: a popover beside the link field
SubscribersPreview viewer skeleton hydrate no «مشترکان»: the total and the three who end soonest, with «مشاهده همه» to /dashboard/subscribers; own PartBoundary and <Suspense>

Notes

  • bull: cards 12px apart; bear: 16px apart, desktop card layouts. Same sections in both apps.
  • The cards' queries run only in the browser: AuthGuard returns its fallback on the server, so no useSuspenseQuery sends a request from the server.

Price floor

A plan the price floor took off sale gets a «خارج از فروش» badge on its row, and a banner above the card, «طرح {tier} شما از فروش خارج شد», with «اصلاح قیمت» to /dashboard/pricing. Both read offSale from the pricing form, so they load with the card.