OpenForum Component Architecture
The frontend is organized into a hierarchical structure to separate routing, layout, and feature logic:
- Page Components (
app/directory): Route-based components responsible for server-side data fetching, SEO metadata, and layout composition. - View Components (
components/views/): Large, page-level components that manage complex state and integrate multiple feature components (e.g., Forum Home View, Thread View). - Feature Components (
components/forum/): Small, reusable UI elements such as Thread Cards, Post Components, and Vote Buttons. - Global Layout: Includes a Header (Navigation, User Dropdown, Search), a context-specific Sidebar, and a Footer.