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

31 lines
3.4 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Predictions
`/predictions` · `apps/wall-street-plaza/src/app/(panel)/predictions/page.tsx` · Type: account (back office) · Layout: [layout-panel.md](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`.