✅ Store.tsx - Complete API Integration: - Replaced mock data with real API calls - useQuery for fetching settings, countries, timezones, currencies - useMutation for saving settings - Optimistic updates and error handling ✅ Real Data Sources: - Countries: 200+ countries from WooCommerce (WC_Countries) - Timezones: 400+ timezones from PHP with UTC offsets - Currencies: 100+ currencies with symbols - Settings: All WooCommerce store options ✅ UI Improvements: - Country select: Full list instead of 5 hardcoded - Timezone select: Grouped by continent with UTC offsets - Currency select: Full list with symbols - Already using shadcn components (Input, Select) ✅ Performance: - 1 hour cache for static data (countries, timezones, currencies) - 1 minute cache for settings - Proper loading states 📋 Addresses user feedback: - ✅ Wire real options for country and timezone - ✅ Contact fields already use shadcn components Next: Create custom BACS form with bank account repeater
13 KiB
13 KiB