Modern admin dashboard for managing EndoConnect platform users, consent, clinical data, and educational content. Built with Next.js 15, TypeScript, and Ant Design.
- Node.js 18+
- npm, yarn, pnpm, or bun
- Git
-
Clone the repository
git clone <repository-url> cd EndoConnect_admin
-
Install dependencies
npm install # or yarn install # or pnpm install
-
Run development server
npm run dev # or yarn dev # or pnpm dev
-
Access the application
- Open http://localhost:3000 in your browser
- If port 3000 is in use, Next.js will automatically use port 3001
- Network access available at
http://<your-ip>:3001
EndoConnect_admin/
βββ src/
β βββ app/ # Next.js App Router
β β βββ layout.tsx # Root layout with AntD setup
β β βββ page.tsx # Main admin dashboard
β β βββ globals.css # Global styles
β β βββ favicon.ico # App icon
β βββ components/ # React components
β βββ SERPDashboard.tsx # Symptom, Engagement & Risk Profile dashboard
β βββ UserManagement.tsx # User management with LGPD consent
β βββ TeamMemberManagement.tsx # Team member admin
β βββ EducationalModules.tsx # Educational content management
β βββ FeedbackForms.tsx # Screening questions management
β βββ ClinicalDataManagement.tsx # Clinical data & feedback
β βββ WarningSupressor.tsx # Development warnings handler
βββ public/ # Static assets
βββ package.json # Dependencies and scripts
βββ next.config.ts # Next.js configuration
βββ tsconfig.json # TypeScript configuration
βββ .eslintrc.json # ESLint configuration
- Name: Pavlo (Dev)
- Role: Coordenador TΓ©cnico (Technical Coordinator)
- Access Level: Full admin access to all modules
- Coordenador TΓ©cnico: Full system access
- Pesquisador: Research data access
- Desenvolvedor: Technical management
- Analista: Data analysis access
Symptom, Engagement & Risk Profile monitoring
- Real-time user metrics (156 total users, 98 active)
- Symptom distribution analysis
- Engagement scoring (73.5/100 average)
- Risk assessment alerts
- Weekly triage tracking (47 screenings)
LGPD-compliant user administration
- Anonymous user profiles (ANON-XXXXXX)
- Consent status tracking (
ativo,revogado,pendente) - Risk level assessment (
baixo,medio,alto) - Symptom profile categorization
- Educational module progress tracking
- One-click consent revocation with audit trail
Administrative team control
- Team member invitation system
- Role-based permission management
- Access level configuration
- Activity tracking and audit logs
- Department organization
Clinical questionnaire management
- Dynamic screening form builder
- Question flow logic
- Response analytics
- Risk scoring algorithms
- Multi-language support ready
Content management system
- Module creation and editing
- Progress tracking
- Engagement analytics
- Content categorization
- Interactive learning materials
Research data management
- Clinical data aggregation
- Feedback form responses
- Statistical analysis tools
- Data export capabilities
- Research compliance tracking
- Mock authentication system (development)
- Role-based access control implemented
- LGPD compliance features built-in
- β Consent version tracking
- β User rights management
- β Data portability support
- β Right to deletion
- β Consent revocation
- β Audit trail logging
- β IP address tracking
- β Anonymous user identification
- CSRF protection ready
- Secure cookie configuration
- Content Security Policy headers
# Development
npm run dev # Start development server
npm run build # Build production bundle
npm run start # Start production server
npm run lint # Run ESLint checks
# Code Quality
npx tsc --noEmit # TypeScript type checking
npm run lint --fix # Auto-fix linting issues- Frontend: Next.js 15.3.3, React 18.3.1, TypeScript 5
- UI Library: Ant Design 5.25.4 with custom theming
- Styling: CSS Modules + Ant Design tokens
- State Management: React hooks (useState, useEffect)
- Icons: Ant Design Icons 6.0.0
- Date Handling: Day.js 1.11.13
- Code Style: Follow ESLint configuration
- Components: Use functional components with hooks
- Naming: Use descriptive names (camelCase for variables, PascalCase for components)
- Types: Prefer explicit TypeScript interfaces over
any - Imports: Clean up unused imports before commits
- Unused imports: Clean up unused Ant Design components
- Unused variables: Remove unused form handlers and state
- TypeScript: Replace
anytypes with specific interfaces - Error handling: Implement proper error logging
# Auto-fix many linting issues
npm run lint -- --fix
# Remove unused imports (manual review recommended)
# Check each component for unused imports and variablesnpm run build # Creates optimized production build
npm run start # Serves production build locally- Development: Auto-reloading, detailed errors
- Production: Optimized bundles, error boundaries
- Network Access: Configurable via Next.js settings
- Run
npm run buildsuccessfully - Fix all TypeScript errors
- Address critical ESLint warnings
- Test all module functionality
- Verify LGPD consent flows
- Check responsive design
- Configure production environment variables
- Chrome 90+
- Firefox 88+
- Safari 14+
- Edge 90+
- Follow existing code patterns
- Update documentation for new features
- Test consent management thoroughly
- Maintain LGPD compliance
- Use semantic commit messages
For technical issues or questions:
- Review component documentation in source files
- Check browser console for development errors
- Verify all dependencies are installed correctly
Last Updated: January 2024
Version: 0.1.0
License: Private - EndoConnect Platform