michangarrito-frontend-v2/src
rckrdmrd 1b2fca85f8 [MCH-FE] feat: Connect Settings to real API
- Add settingsApi in lib/api.ts with get, update, getWhatsAppStatus,
  testWhatsApp and getSubscription endpoints
- Rewrite Settings.tsx to use React Query for data fetching
- Implement useQuery for loading settings and subscription data
- Implement useMutation for saving settings changes
- Add form state management with controlled inputs
- Add loading states, error handling and success notifications
- Add individual save buttons per section plus global save
- Add WhatsApp connection test functionality
- Display subscription details with token usage

Also includes exports API and export button components added by linter.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-20 02:34:59 -06:00
..
assets Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
components [MCH-FE] feat: Connect Settings to real API 2026-01-20 02:34:59 -06:00
contexts [MCH-FE] refactor: Improve ThemeContext with useSyncExternalStore 2026-01-20 02:28:26 -06:00
lib [MCH-FE] feat: Connect Settings to real API 2026-01-20 02:34:59 -06:00
locales Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00
pages [MCH-FE] feat: Connect Settings to real API 2026-01-20 02:34:59 -06:00
App.tsx [MCH-FE] feat: Add dark mode theme support 2026-01-20 02:27:08 -06:00
index.css [MCH-FE] feat: Add dark mode theme support 2026-01-20 02:27:08 -06:00
main.tsx Migración desde michangarrito/frontend - Estándar multi-repo v2 2026-01-16 08:12:10 -06:00