wealth/docs/pages/wall-street-plaza/predictions.md

3.4 KiB
Raw Blame History

Predictions

/predictions · apps/wall-street-plaza/src/app/(panel)/predictions/page.tsx · Type: account (back office) · Layout: layout-panel.md

Field Value
Robots noindex (root layout metadata, src/configs/seo.ts)
Status 200; an unknown ?id= shows the not-found state inside the side sheet, with 200
loading.tsx (panel)/predictions/loading.tsx
First flush none
Canonical none
H1 predictions:page.title from i18n, in PageHeader
JSON-LD none
Scripts none

Sections

Section Data HTML JS Index Notes
PageHeader, with the H1 config first flush none no the title and the rule that nothing closes without ops
PredictionQueues — skeleton hydrate no AdminGuard › <Suspense>; both fallbacks are QueuesSkeleton (the health strip and the table)
↳ QuoteHealth query skeleton hydrate no the quote sources' health, refetched every minute; its own <Suspense> and PartBoundary
↳ Queue TabLinks config, query skeleton hydrate no the queue in the URL, replace; «نیاز به تأیید» with its count
↳ QueueRows query skeleton hydrate no one table per queue; useSuspenseQuery behind its own <Suspense> and a PartBoundary keyed by the args; each row opens the detail through ?id=
PredictionSheet query none hydrate no a side Sheet while the URL has ?id=; the prediction loads inside; a link to the analyst's page
PredictionDialogs query none hydrate no confirm close, override, flag and reject proposal, mounted only while open

Notes

  • Debt: the guard's fallback (predictions/page.tsx:21, QueuesSkeleton) has no row for the queue tabs, so the table moves down when the admin is known. Add the tabs' row to QueuesSkeleton.