No description
Find a file
counterweight 3beb23a765
refactor(frontend): improve code quality and maintainability
- Extract API error handling utility (utils/error-handling.ts)
  - Centralize error message extraction logic
  - Add type guards for API errors
  - Replace duplicated error handling across components

- Create reusable Toast component (components/Toast.tsx)
  - Extract toast notification logic from profile page
  - Support auto-dismiss functionality
  - Consistent styling with shared styles

- Extract form validation debouncing hook (hooks/useDebouncedValidation.ts)
  - Reusable debounced validation logic
  - Clean timeout management
  - Used in profile page for form validation

- Consolidate duplicate styles (styles/auth-form.ts)
  - Use shared style tokens instead of duplicating values
  - Reduce code duplication between auth-form and shared styles

- Extract loading state component (components/LoadingState.tsx)
  - Standardize loading UI across pages
  - Replace duplicated loading JSX patterns
  - Used in profile, exchange, and trades pages

- Fix useRequireAuth dependency array
  - Remove unnecessary hasPermission from dependencies
  - Add eslint-disable comment with explanation
  - Improve hook stability and performance

All frontend tests pass. Linting passes.
2025-12-25 19:04:45 +01:00
.cursor/rules Phase 1: Add pgqueuer infrastructure 2025-12-21 22:37:04 +01:00
.githooks fix pre-commit hook and code quality fixes 2025-12-21 22:14:48 +01:00
backend Complete repository delegation - remove remaining direct db operations 2025-12-25 18:57:55 +01:00
frontend refactor(frontend): improve code quality and maintainability 2025-12-25 19:04:45 +01:00
scripts parallel tests 2025-12-25 00:48:22 +01:00
shared Add bitcoinTransferMethods and lightningMaxEur to shared constants 2025-12-23 14:10:10 +01:00
.env.example tests passing 2025-12-18 23:33:32 +01:00
.envrc seed user 2025-12-18 22:42:32 +01:00
.gitignore Add Vitest coverage for frontend tests 2025-12-21 22:00:47 +01:00
.pre-commit-config.yaml code quality in place 2025-12-21 22:12:43 +01:00
docker-compose.yml tests passing 2025-12-18 22:08:31 +01:00
Makefile parallel tests 2025-12-25 00:48:22 +01:00
REFACTOR_PLAN.md Extract price logic to PriceService 2025-12-25 18:30:26 +01:00