Instructions
Review code against these categories:
1. Architecture & Patterns
- •Backend Cleanliness: Is
DerotMyBrain.Corefree of external dependencies (No EF Core, No JSON)? - •Thin Controllers: Do controllers only orchestrate services?
- •Dumb Components: Are components in
src/frontend/src/componentsfree ofuseEffectdata fetching? (Logic should be in hooks). - •Zustand: Is state accessed via custom hooks, not directly from stores?
2. Testing & Quality
- •TDD Verification: Check if tests were added to
DerotMyBrain.Testsorsrc/frontend/src/**/*.test.tsx. - •AAA Pattern: Are tests structured with Arrange, Act, Assert?
- •Mock Data: Is there updated seed data for
TestUser(test-user-id-001)?
3. Aesthetics & Theming
- •Semantic Colors: Search for hardcoded colors like
#ffffff,bg-white,text-black. These should bebg-background,text-foreground. - •Premium UI: Does the change use shadcn components and maintain a high-end look?
- •Dark Mode: Is the UI legible and beautiful in both modes?
4. Logging & Errors
- •Structured Logging: Is
Serilogused with message templates (e.g.,_logger.LogInfo("User {Id}", id))? - •Error Handling: Are custom exceptions used from
Core?
Feedback Format
Provide feedback in a structured way:
- •Major: Architectural violations or missing tests.
- •Minor: Naming inconsistencies or 스타일 enhancements.
- •Positive: Good use of patterns or clean code.