Documentation Index
Fetch the complete documentation index at: https://docs.thesozocrm.com/llms.txt
Use this file to discover all available pages before exploring further.
Code Review Process
This guide covers the code review process, standards, and what reviewers look for.PR Checklist
Before requesting a review, ensure:What Reviewers Look For
Code Quality
Readability
Code is easy to read and understand
Consistency
Follows project patterns and conventions
Error Handling
Proper error handling and user feedback
Performance
No obvious performance issues
Security
No security vulnerabilities
Testing
Adequate test coverage
Common Issues
Missing Error Handling
Missing Error Handling
Hardcoded Values
Hardcoded Values
Missing Loading States
Missing Loading States
Unused Imports
Unused Imports
Remove unused imports and variables
Debug Code
Debug Code
Remove console.logs and debug statements
Review Standards
Must Have
- ✅ Code compiles without errors
- ✅ All tests pass
- ✅ No linter errors
- ✅ Follows project patterns
- ✅ Error handling implemented
- ✅ Loading states provided
Should Have
- 📝 Clear variable/function names
- 📝 Comments for complex logic
- 📝 Type safety (if using TypeScript)
- 📝 Accessibility considerations
Nice to Have
- 🎨 Consistent formatting
- 🎨 Performance optimizations
- 🎨 Additional test coverage
Review Process
Responding to Reviews
When You Get Feedback
- Read Carefully - Understand what’s being asked
- Ask Questions - If unclear, ask for clarification
- Make Changes - Address all feedback
- Push Updates - Push new commits to the PR
- Re-request Review - If needed, re-request review
When Reviewing
- Be Constructive - Provide helpful feedback
- Be Specific - Point to exact lines/issues
- Suggest Solutions - Offer alternatives when possible
- Approve When Ready - Don’t block on minor issues
Common Review Comments
”Please add error handling"
"This needs a loading state"
"Please add tests"
"Please remove debug code”
Approval Requirements
Dev Branch
- ✅ 1 approval required
- ✅ All CI checks must pass
- ✅ No merge conflicts
Staging Branch
- ✅ 1 approval required
- ✅ All CI checks must pass
- ✅ Must come from dev branch
Main Branch (Production)
- ✅ 2 approvals required
- ✅ All CI checks must pass
- ✅ Must come from staging branch
- ✅ No bypass allowed (even for admins)
Best Practices
Small PRs
Keep PRs focused and small (< 500 lines)
Clear Description
Explain what and why in PR description
Link Issues
Link to Linear issues in PR description
Review Your Own Code
Review your own PR before requesting review
Be Responsive
Respond to review feedback promptly
Learn from Feedback
Use reviews as learning opportunities
Related Guides
- Team Workflow - Git Flow and PR process
- Testing Workflow - Writing tests

