Commit Graph

6 Commits

Author SHA1 Message Date
ShivaniKhaire b476492bd8 refactor(auth): make country and phone code configuration generic across store
- Render country selection options dynamically from COUNTRY_CODES in AuthModal and ProfileDrawer
- Synchronize dial code, country, and currency generically using getCountryRuleByName and getCountryRuleByDialCode
- Eliminate hardcoded country options and country-specific checks in favor of registry-driven rules
2026-10-05 13:56:41 +05:30
ShivaniKhaire 917dd258d2 fix(auth): enforce country-wise phone number validation and 10-digit limit for India (#8)
- Enforce exact 10-digit mobile number requirement and input length restriction for India
- Add country-wise phone length rules, placeholders, and helper hints in AuthModal
- Synchronize dial code and country selection bidirectionally during registration
- Validate phone numbers against selected country rules during registration, profile update, and checkout
- Sanitize phone input in real time to filter out non-numeric characters
2026-10-05 13:17:01 +05:30
Amit Salunke 776e09a918 Merge pull request 'fix(storefront): integrate access/me for subscriptions and update profile payload' (#1) from plan-access-update into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-store-ui/pulls/1
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-09-11 12:07:36 +00:00
Urvish Prajapati dad4d87d9f fix(profile): re-enable country field in profile update payload
- Uncomment `country: profileCountry` in `PUT /api/auth/profile` request payload in `src/App.tsx`
- Align frontend profile submission with the updated backend `ProfileUpdateRequest` schema
2026-09-11 14:48:02 +05:30
Urvish Prajapati 61dd158af7 fix(storefront): integrate access/me for subscriptions and update profile payload
- Fetch /api/access/me alongside /api/auth/profile in fetchUserProfile to populate active subscriptions and unlocked modules from new backend
2026-09-10 16:22:53 +05:30
Urvish Prajapati 90bc14d37e feat: initial commit for standalone acupedia storefront 2026-09-10 12:56:24 +05:30