wealth/docs/pages/wall-street-plaza/analysts-id.md

27 lines
3.1 KiB
Markdown
Raw 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.

# Analyst
`/analysts/[id]` · `apps/wall-street-plaza/src/app/(panel)/analysts/[id]/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`, also for an unknown id: the browser read's 404 shows the not-found state in the page's `PartBoundary` |
| loading.tsx | `(panel)/analysts/[id]/loading.tsx` |
| First flush | none; the page entry awaits only `params` |
| Canonical | none |
| H1 | in the browser, the analyst's `fullName` (`AnalystDetail`); the server HTML's skeleton has `analysts:detail.title` |
| JSON-LD | none |
| Scripts | none |
## Sections
One read, `useAnalystDetailPage(id)` with `useSuspenseQuery`, fills every row. `AdminGuard` › `PartBoundary` › `<Suspense>`, all with `DetailSkeleton`: a `PageHeader` with the generic title and the back link, over two card skeletons.
| Section | Data | HTML | JS | Index | Notes |
| ---------------------------------------------- | ----- | -------- | ------- | ----- | ---------------------------------------------------------------------------------------------------------------------- |
| PageHeader, with the H1 | query | skeleton | hydrate | no | the name, `@username`, the back link to `/analysts`; desktop: the account states and the one account action at its end |
| AccountBadges and AccountActionButton (mobile) | query | skeleton | hydrate | no | `desktop:hidden`; full width under the title |
| AnalystFacts | query | skeleton | hydrate | no | the 432px column on desktop |
| AuditLog | query | skeleton | hydrate | no | garden-roof `screens/AuditLog`, beside the facts on desktop |
| AccountDialogs | query | none | hydrate | no | suspend and reinstate, mounted only while open; the page updates in place |