4.9 KiB
4.9 KiB
New prediction
/compose/prediction · apps/{bull,bear}/src/app/(flow)/compose/prediction/page.tsx; bear's dialog: apps/bear/src/app/(main)/@modal/(.)compose/prediction/page.tsx · Type: account · Layout: layout.md; the dialog: layout-main.md
| Field | Value |
|---|---|
| Robots | noindex (page metadata) |
| Status | 200 for every viewer: a guest goes to login in the browser, an investor sees AuthGuard's page-size no-access state |
| loading.tsx | compose/prediction/loading.tsx: bull: the form skeleton only; bear: the header and the form skeleton; delayed. The dialog has none |
| First flush | none |
| Canonical | none: noindex |
| H1 | bull: none (the composer's bar names it, in the browser); bear: the 960 card's header, predictions:composer.title, in the browser |
| JSON-LD | none |
| Scripts | none beyond the layout's |
Sections
In bull's document order. compose/layout.tsx is only OnboardingGuard (0016): it renders nothing, and sends a creator who hasn't finished step 5 to the creator profile.
| Section | Data | HTML | JS | Index | Notes |
|---|---|---|---|---|---|
| DesktopHeader (bear) | viewer | first flush | hydrate | no | the page renders it itself; rows as in layout-main.md |
| PredictionComposer | viewer | skeleton | hydrate | no | AuthGuard role="creator", fallback SkeletonPreset form; usePublishAccess: pending keeps the skeleton, blocked sends the creator to their channel (J09-1e, 0060) |
| ↳ ComposerPage | viewer | skeleton | hydrate | no | bull: MobileTopBar, the «انصراف» row, the fields, the preview, and «انتشار پیشبینی» pinned; bear: a 960 card drawn as the dialog, with its h1, the fields beside the preview; published, it replaces itself with the creator's channel |
| ↳ SymbolPicker | query | none | hydrate | no | «انتخاب نماد»: bull: a sheet; bear: a modal; mounts on open, then searches symbols in the browser |
| ↳ ConfirmPublish, LeaveConfirm | — | none | hydrate | no | mount on publish and on leaving with something to lose |
| PredictionComposerDialog (bear) | viewer | none | interaction | no | the @modal intercept (J09-1-D, 0023), on a soft navigation from a main page: the 960 dialog over that page; fallback PredictionComposerDialogSkeleton; anyone but a creator gets no-access inside the dialog |
Notes
- A hard load or refresh gets the full page; a soft navigation from a
(main)page gets the dialog over it (see compose-post.md). - Debt: different H1 per app. bull has no
h1; add a screen-readerh1toComposerPage's mobile branch (platforms/market/src/app/screens/(flow)/compose/prediction/organisms/prediction-composer/components/ComposerPage.tsx:57).