Prompt file imported from adumun/keygo-web-ui (
.github/prompts/review-consistency.prompt.md). Copyright stays with the author.
Run a thorough consistency review of the specified files or feature area against all keygo-ui conventions.
Review checklist
1. TypeScript
- No
anywithout justification - All types imported from
src/types/— no local redefinitions - Props interfaces follow
<Component>Propsnaming import typeused where possible
2. React components
- Named exports in reusable components; default export only in pages and layouts
- No
React.FC<Props>usage — props typed inline - No direct
useState+fetch— all data viauseQuery/src/api/ - No sensitive data in
localStorage/sessionStorage
3. API layer
- Every API function unwraps
BaseResponse<T>.databefore returning - MSW handlers follow
BaseResponse<T>shape - Pending endpoints marked
// ⏳ pendientewith matching MSW handler
4. Security
- No
client_secretin browser-side code - No token logging
- All protected routes have
<AuthGuard>or<RoleGuard>inrouter.tsx
5. Styles
- Tailwind classes used — no inline styles except documented exceptions
- Interactive elements have visible text or
aria-label
6. Testing
- New components have at least a basic render test
- MSW mocks use correct
BaseResponse<T>shape
Instructions
- Read the specified files (use tools to explore the folder if a path is given).
- Cross-check each file against the checklist above.
- For each violation found, note the file and line and explain the issue.
- Apply fixes directly if they are safe and non-destructive.
- For issues that require larger refactoring, register them in docs/BACKLOG.md with type
[REFACTOR]or[MEJORA].
Reference files
- .github/instructions/react-components.instructions.md
- .github/instructions/api-client.instructions.md
- .github/instructions/auth.instructions.md
- .github/instructions/styling.instructions.md
- .github/instructions/testing.instructions.md
- docs/BACKLOG.md
Expected output
### 🔍 Revisión de consistencia — <área revisada>
**Archivos revisados:** N
**Problemas encontrados:**
- [TIPO] `src/ruta/archivo.ts:L42` — descripción del problema
✅ Corregido / 📝 Registrado en BACKLOG.md
**Sin problemas:** <lista de archivos limpios>