Development Workflow
Code Organization Principles
- Feature-Based Structure: Code is organized by features rather than file types
- API-First Design: All data operations go through RTK Query API slices
- Type Safety: Comprehensive TypeScript coverage with strict mode
- Component Composition: Reusable components built with Radix UI primitives
Development Best Practices
-
Git Workflow:
- Create feature branches from
main - Use conventional commits:
feat:,fix:,docs:,style:,refactor: - Husky pre-commit hooks ensure code quality
- Create feature branches from
-
Component Development:
- Use TypeScript for all components
- Implement proper prop interfaces
- Follow accessibility guidelines (ARIA)
- Use Tailwind CSS for styling
-
API Integration:
- Define API endpoints in feature-specific slices
- Use RTK Query for automatic caching and synchronization
- Implement optimistic updates for better UX
-
State Management:
- Keep global state minimal
- Use local state for component-specific data
Last updated on