the-tip-top-frontend/components/forms
soufiane 0a00c04b54 fix: reduce code duplication and add tests for SonarQube quality gate
- Consolidate API logic: hooks/useApi.ts now uses services/api.ts
- Create BaseFormField component to reduce form duplication
- Refactor FormField, FormSelect, FormTextarea to use BaseFormField
- Add centralized theme utility (utils/theme.ts) for colors/styles
- Add comprehensive tests for api, auth.service, useApi hooks, AuthContext
- Add tests for theme utility

This reduces duplication from 11.45% and improves test coverage.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-12-01 14:54:24 +01:00
..
BaseFormField.tsx fix: reduce code duplication and add tests for SonarQube quality gate 2025-12-01 14:54:24 +01:00
FormCheckbox.tsx dev 2025-11-17 23:38:02 +01:00
FormField.tsx fix: reduce code duplication and add tests for SonarQube quality gate 2025-12-01 14:54:24 +01:00
FormSelect.tsx fix: reduce code duplication and add tests for SonarQube quality gate 2025-12-01 14:54:24 +01:00
FormTextarea.tsx fix: reduce code duplication and add tests for SonarQube quality gate 2025-12-01 14:54:24 +01:00
index.ts dev 2025-11-17 23:38:02 +01:00