agents.md update

This commit is contained in:
echo 2025-11-09 15:15:42 +01:00
parent df668927f5
commit 771fcdf23b

View File

@ -1,22 +1,24 @@
# AGENTS.md # AGENTS.md
## Project Overview ## Project Overview
FitAI is a fitness management solution with admin web app and React Native mobile app for client management, payments, attendance tracking, and notifications.
FitAI fitness management solution: Next.js admin web app + Expo React Native mobile app for client management, payments, attendance tracking, and notifications. Monorepo with shared packages.
## Build/Test Commands ## Build/Test Commands
This project is in early prototype stage - no build system configured yet.
- When implementing: expect standard npm/yarn commands (npm run dev, npm run build, npm test) - Admin: npm run dev/build/lint/typecheck/test (from apps/admin)
- For single tests: use npm test -- --testNamePattern="test name" or npm test path/to/test.test.js - Mobile: npm run start/build/lint/typecheck/test (from apps/mobile)
- Database: npm run build/dev/typecheck/db:push/db:studio (from packages/database)
- Single test: npm test -- --testNamePattern="test name" or npm test path/to/test.test.js
## Code Style Guidelines ## Code Style Guidelines
- Use TypeScript for type safety
- Follow React/React Native conventions - TypeScript strict mode, avoid `any` (warned by ESLint)
- Use camelCase for variables and functions - React/React Native conventions with functional components
- Use PascalCase for components - camelCase for variables/functions, PascalCase for components
- Import order: external libraries → internal modules → relative imports - Import order: external → internal (@fitai/\*) → relative imports
- Implement proper error handling with try/catch blocks - Error handling with try/catch, use React Query for API errors
- Use semantic HTML and accessible components - ESLint enforced: no-unused-vars, prefer-const, no-var
- Follow mobile-first responsive design principles - Use Zod for validation, React Hook Form for forms
- Implement proper state management (Context API or Redux) - Database: Drizzle ORM with SQLite, use shared schemas
- Use environment variables for configuration - Testing: Jest + Testing Library, write tests for critical functionality
- Write comprehensive tests for critical functionality