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

32 lines
3.4 KiB
Markdown
Raw Permalink Normal View History

2026-10-21 09:16:11 +00:00
# Payouts
`/payouts` · `apps/wall-street-plaza/src/app/(panel)/payouts/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)/payouts/loading.tsx` |
| First flush | none |
| Canonical | none |
| H1 | `payouts: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 weekly rule |
| ↳ PayoutsSearch | — | first flush | hydrate | no | the analyst search in the URL; it searches whichever tab is open |
| PayoutsBoard | — | skeleton | hydrate | no | `AdminGuard` › `<Suspense>`; both fallbacks are `PayoutsSkeleton` (the table preset) |
| ↳ TabLinks | config, query | skeleton | hydrate | no | four tabs in the URL, `replace`; «آماده» shows the sidebar's ready count; mobile: the row scrolls |
| ↳ ReadyRows or PayoutRows | query | skeleton | hydrate | no | `useSuspenseQuery` behind its own `<Suspense>` and a `PartBoundary` keyed by tab, search and page |
| PayoutDetailSheet | query | none | hydrate | no | a side `Sheet` while the URL has `?id=`; the payout loads inside; a link to its receipt |
| CreatePayoutDialog, MarkPaidDialog, CancelPayoutDialog | query | none | hydrate | no | mounted only while open |
## Notes
- Debt: the guard's fallback (`payouts/page.tsx:20`, `PayoutsSkeleton`) has no row for the tabs that `PayoutsBoard` draws, so the table moves down when the admin is known. Draw `TabLinks` in the fallback, as `BetaHealthSkeleton` does.
- Debt: `payouts/loading.tsx:10` draws the header without `PayoutsSearch`, so the header can change height when the page arrives.