3.7 KiB
3.7 KiB
Dashboard: predictions
/dashboard/predictions · apps/{bull,bear}/src/app/(main)/dashboard/(creator)/predictions/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)/predictions/loading.tsx: PredictionsTabSkeleton, 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 PredictionsTabSkeleton.
| Section | Data | HTML | JS | Index | Notes |
|---|---|---|---|---|---|
| PredictionsTab | viewer | skeleton | hydrate | no | useQuery for open and closed; before the first prediction, only the empty state with «پیشبینی جدید» to /compose/prediction (J10-3c) |
| ↳ TrackRecord | viewer | skeleton | hydrate | no | the record or its progress to public; own PartBoundary and <Suspense> |
| ↳ PredictionSection «باز» | viewer | skeleton | hydrate | no | every open prediction as OwnPredictionCard; not drawn when empty; loads and fails on its own |
| ↳↳ ClosePredictionSheet | viewer | none | interaction | no | next/dynamic, rendered on the first «بستن زودهنگام» tap; its price poll loads with it |
| ↳ PredictionSection «بستهشدههای اخیر» | viewer | skeleton | hydrate | no | the two closed most recently; then «همه پیشبینیها», an <a href> to /dashboard/predictions/all |
Notes
- bull and bear differ only in
layout(card and sheet placement). A card's tap opens its post. /dashboard/predictions/allis a separate page outside the(creator)group, under its ownOnboardingGuardlayout: dashboard-predictions-all.md.