Commit Graph

7 Commits

Author SHA1 Message Date
Urvish Prajapati 841f9a86a5 fix(validation): add country-specific mobile phone validation and libphonenumber-js
- Integrate libphonenumber-js to validate country mobile numbering plans (e.g., France 06/07, India 6-9, UK 07)
- Add ISO-2 country codes to eliminate dropdown collisions between countries sharing dial codes (+1 for US and Canada)
- Automatically strip leading national trunk zero (0) when converting to standard international E.164 format
- Ensure new dependency is registered in package.json and package-lock.json for npm install
2026-11-16 16:13:26 +05:30
ShivaniKhaire 9c0315c36a feat(store): add country search, alphabetical sorting, and country code display (#84) 2026-11-07 16:01:38 +05:30
Urvish Prajapati 57cf92f4a6 fix(validation): standardize phone validation to 7-15 digits 2026-10-26 16:14:21 +05:30
Urvish Prajapati c314d47228 update: added missing country codes 2026-10-26 13:29:56 +05:30
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
Urvish Prajapati 90bc14d37e feat: initial commit for standalone acupedia storefront 2026-09-10 12:56:24 +05:30