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

18 lines
2.3 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.

# Layout: root
`apps/wall-street-plaza/src/app/layout.tsx` · wraps every page of the admin app · it reads nothing on the server; its `metadata` (`rootMetadata()` in `src/configs/seo.ts`) sets `robots: { index: false, follow: false }`, which every page inherits
| Section | Data | HTML | JS | Index | Notes |
| ----------------------- | ------ | ---- | ------- | ----- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| AppProviders › AppShell | viewer | none | hydrate | no | garden-roof `app/app-shell`: the query client and i18n; `useSession` reads the admin once per load in the browser, so the auth store is `unknown` on the server and in the first browser render; `useCrossSectionRefresh` refetches the sections an admin action touches |
| ToastPlacementMarker | config | none | hydrate | no | toasts centred, 32px from the bottom, in both templates |
| Toaster | — | none | hydrate | no | the one toast region; a toast shows only after an action |
Scripts: none.
## Notes
- One app serves both templates (proposed 0063): the mobile template is the layout under 1024px, the desktop template is the `desktop:` variants, in one DOM. Every admin doc lists its rows in that one document order.
- No service worker, manifest, JSON-LD or server caches (proposed 0062); `src/server.ts` exports nothing.
- `lang` and `dir` come from server i18n; the critical font is preloaded; the viewport is `ROOT_VIEWPORT` with `maximumScale: 1`.