How aksel26/intranet-v2-user works
Main System Components
a) Client-Side (Frontend):
• Auth Layer (from src/app/(auth))
• Content Layer (from src/app/(content))
• Global Components (from src/components/Global)
• API Integration Layer (from src/app/api)
b) Feature Modules:
• Attendance Management
• Welfare Management
• Notice System
• Survey System
• Meal Management
• User Management
Architectural Patterns
Following architectural patterns:
• Next.js App Router Structure (using nested rectangles)
• Client-Side State Management (using Zustand, as evident from src/lib/store)
• API Integration Layer (showing GET/POST operations)
Data Flow Representation
• User Authentication Flow
• API Request/Response Patterns
• State Management Flow
• Component Hierarchy
Specific Implementation Details
• Custom Hooks Layer (from src/hooks)
• Utility Functions (from src/utils)
• Type Definitions (from src/lib/types)
• Global Stores (from src/lib/store)
Component Relationships
Relationships between:
• Pages and their corresponding components
• Global state and consuming components
• API endpoints and their consumers
• Auth layer and protected routes
Technical Stack Indicators
• Next.js
• TypeScript
• Tailwind CSS
• Zustand (State Management)
┌─ Presentation Layer ─────────────────────┐
• Components | Pages | Layouts │
• Feature Modules ──────────────────────┐ │
• Attendance | Welfare | Notice | etc. │ │
• State Management ────────────────────┐│ │
• Zustand Stores ││ │
• API Integration ───────────────────┐│││
• GET/POST APIs ││││
• Utilities & Helpers ─────────────┐││││
• Utils | Hooks | Types │││││
• ┘└└└└┘