How Elysia Frontend handles navigation and state
mainElysia is built as a Single Page Application (SPA) using Next.js with client-side routing.
Navigation: Main navigation is handled through a RouterContext (React context) to allow transitions between sections (Chat, Data, Settings, Evaluation, Explorer) without full page reloads.
State Management: The application follows these patterns:
- Context-based state management for global state.
- Custom hooks for shared logic.
- Component composition using Radix UI primitives for UI building blocks.