trading-platform-frontend-v2/src
Adrian Flores Cortes 261dc4c71c feat: Add 2FA frontend components (TwoFactorSetup, TwoFactorVerifyModal, TwoFactorSettings)
Created three complete 2FA components integrating with existing backend endpoints:

1. TwoFactorSetup.tsx (auth/components)
   - 3-step wizard for 2FA setup
   - QR code display with manual entry fallback
   - TOTP code verification
   - Backup codes display with copy functionality
   - Integrates with POST /auth/2fa/setup and /auth/2fa/enable

2. TwoFactorVerifyModal.tsx (auth/components)
   - Modal for 2FA verification during login
   - Support for both TOTP (6 digits) and backup codes (8 digits)
   - Auto-submit for TOTP codes
   - Switch between code types
   - Auto-focus input field

3. TwoFactorSettings.tsx (settings/components)
   - Management panel for 2FA in settings
   - Enable/disable 2FA with confirmation
   - Regenerate backup codes
   - Status display with activation date
   - Integrates with all 2FA endpoints

All components follow project patterns:
- Tailwind CSS styling matching existing components
- lucide-react icons
- Centralized apiClient with auto-refresh
- Complete TypeScript types
- No placeholders or TODOs

Related: GAP-P1-004 2FA Frontend Flow

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-28 12:23:06 -06:00
..
__tests__ feat: Implement BLOCKER-001 proactive refresh + E2E video tests (frontend) 2026-01-27 01:44:40 -06:00
components fix(frontend): resolve all 218 pre-existing TypeScript errors 2026-01-27 05:45:12 -06:00
hooks feat: Initial commit - Trading Platform Frontend 2026-01-18 04:30:39 -06:00
lib feat: Implement BLOCKER-001 proactive refresh + E2E video tests (frontend) 2026-01-27 01:44:40 -06:00
modules feat: Add 2FA frontend components (TwoFactorSetup, TwoFactorVerifyModal, TwoFactorSettings) 2026-01-28 12:23:06 -06:00
services fix(frontend): correct WebSocket URLs and ports 2026-01-27 05:50:35 -06:00
stores feat: Implement BLOCKER-001 proactive refresh + E2E video tests (frontend) 2026-01-27 01:44:40 -06:00
styles feat: Initial commit - Trading Platform Frontend 2026-01-18 04:30:39 -06:00
types fix(frontend): resolve all 218 pre-existing TypeScript errors 2026-01-27 05:45:12 -06:00
App.tsx fix: Centralize API clients and add global ErrorBoundary (Phase 3) 2026-01-27 04:56:44 -06:00
main.tsx feat: Initial commit - Trading Platform Frontend 2026-01-18 04:30:39 -06:00
vite-env.d.ts feat: Initial commit - Trading Platform Frontend 2026-01-18 04:30:39 -06:00