How afonsodasilva1/resolucao-teste-tecnico-desenvolvimento-fronteend works
Main System Components
a) Client-Side Layer:
• Next.js Application (Core)
• Pages/Routes Structure
• Component Library
• State Management (TanStack Query)
b) API Layer:
• JSON Server (Mock API)
• API Integration Layer
Detailed Component Breakdown
A. Application Core:
• Providers section (QueryClientProvider)
• Global configuration (mantineTheme, tailwind config)
B. Page Structure:
• Dashboard
• New Doctor
• Users
C. Component Architecture:
• Shared Components (Form, Header, InputGroup)
• Page-Specific Components
• Component relationships and reusability
D. Data Flow:
• Data flow between:
• Components and API
• TanStack Query interactions
• State management flow
Specific Implementation Details
Technical aspects:
[Next.js App Container]
• [Providers]
• QueryClientProvider
• [Pages]
• Dashboard
• New Doctor
• List Users
• [Shared Components]
• Form Components
• Header
• Input Groups
• [API Integration]
• JSON Server Connection
Additional Elements
Supporting details:
• Notes about the mock API integration
• Component communication patterns
• Error handling flow
• State management strategy