Issue 8 : fix country-wise phone number validation and 10-digit limit for India (#8) #17

Merged
amit merged 2 commits from fix/issue-8-phone-number-validation into main 2026-10-06 12:19:27 +00:00

2 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