# Forum spaces — handoff ## Summary Forum spaces provide a board-style UI for `m.forum` rooms and `forum_space` room kinds: topic sections, post feeds, thread detail, rich replies, filters, and dedicated composers. This is a large Paarrot-specific feature area separate from the card-based **Lobby** view. ## User-facing behavior - Forum spaces open to a **feed** of posts (not the lobby card grid) - Sections group topics (child rooms / subspaces) - Create posts with title + rich body; threaded replies - Board detail view, thread detail, topic search/filter bar - Distinct composers: new post, reply, chat-style ## Architecture ``` ForumAwareSpaceLayout / ForumSpaceLayout → ForumFeedPage (feed sidebar + post list) → ForumBoardDetail / ForumThreadDetail → forumFeed.ts (aggregate posts from topic rooms) → forumTopicHelpers, forumRichText, topicSearch Hooks: useForumBoard, useForumRoomLiveUpdates, useForumMessageReactions ``` Routing: `getSpaceDefaultPath` + `shouldShowForumLobby` in path utils / room utils. ## Key files | Path | Role | |------|------| | `cinny/src/app/features/forum/ForumFeedPage.tsx` | Main feed page | | `cinny/src/app/features/forum/ForumSpaceLayout.tsx` | Layout shell | | `cinny/src/app/features/forum/ForumAwareSpaceLayout.tsx` | Forum vs non-forum switch | | `cinny/src/app/features/forum/forumFeed.ts` | Post aggregation, root detection | | `cinny/src/app/features/forum/types.ts` | ForumTopic, ForumPost, etc. | | `cinny/src/app/features/forum/ForumBoardView.tsx` | Board listing | | `cinny/src/app/features/forum/ForumThreadDetail.tsx` | Thread view | | `cinny/src/app/features/forum/ForumNewPostModal.tsx` | Create post | | `cinny/src/app/features/forum/ForumReplyComposer.tsx` | Replies | | `cinny/src/app/features/forum/useForumBoard.ts` | Board data hook | | `cinny/src/app/features/forum/useForumRoomLiveUpdates.ts` | Live timeline sync | | `cinny/src/app/pages/pathUtils.ts` | Forum routing | ## Data model | Signal | Purpose | |--------|---------| | `m.room.create` `type: m.forum` | Matrix forum room type | | `im.paarrot.room.kind: forum_space` | Paarrot forum classification | | `com.matrixsso.title` on messages | Forum post title (legacy/custom) | | `formatted_body` with `