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
Member
No description provided.
shivani added 1 commit 2026-10-05 08:20:22 +00:00
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
shivani added 1 commit 2026-10-05 08:28:45 +00:00
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
amit merged commit c08080753e into main 2026-10-06 12:19:27 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: AcuPedia/acupedia-store-ui#17
No description provided.