# Edit post `/compose/post/[id]` · `apps/{bull,bear}/src/app/(flow)/compose/post/[id]/page.tsx`; bear's dialog: `apps/bear/src/app/(main)/@modal/(.)compose/post/[id]/page.tsx` · Type: account · Layout: [layout.md](layout.md); the dialog: [layout-main.md](layout-main.md) | Field | Value | | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Robots | `noindex` (page `metadata`) | | Status | `200`: under `loading.tsx`, a malformed id (`POST_ID_PATTERN`) renders the not-found UI in the stream; the check exists because the API answers such an id with a 500 | | loading.tsx | `compose/post/[id]/loading.tsx`: bull: the form skeleton only; bear: the header and the form skeleton; `delayed`. The dialog has none | | First flush | none: the page entry awaits only `params` | | Canonical | none: `noindex` | | H1 | bull: none (the composer's bar names it, in the browser); bear: the composer card's header, `content:composer.edit-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](layout-main.md) | | PostComposer | viewer | skeleton | hydrate | no | `AuthGuard role="creator"`, fallback `SkeletonPreset form`; `usePublishAccess`: pending keeps the skeleton, blocked sends the creator to their channel (0060) | | ↳ EditComposer | query | skeleton | hydrate | no | `useEditablePost(postId)` in the browser; past the 15-minute window or not the creator's own, an `EmptyState` says why (0022); else `ComposerForm` filled with the post | | ↳ LeaveConfirm | — | none | hydrate | no | mounts when leaving with changes | | PostComposerDialog (bear) | viewer | none | interaction | no | the `@modal` intercept (J08-4-D, 0023), on a soft navigation from a main page: «ویرایش پست» as a 640 dialog over that page; fallback `PostComposerDialogSkeleton edit`; the same id check calls `notFound()` | ## Notes - A hard load of the URL gets the full page; a soft navigation from a `(main)` page gets the dialog over it (see [compose-post.md](compose-post.md)). - Debt: different H1 per app. bull has no `h1`; add a screen-reader `h1` to `ComposerForm`'s mobile branch (`platforms/market/src/app/screens/(flow)/compose/post/organisms/post-composer/components/ComposerForm.tsx:64`).