Commit Graph

26 Commits

Author SHA1 Message Date
ShivaniKhaire 5241396999 fix(validation): implement generic country prefix validation for mobile numbers (issue #116)
- Add validPrefixes and example fields to CountryCode interface in constants/countries.ts
- Refactor validatePhoneNumber in utils/validation.ts to generically enforce starting prefixes across all countries
- Clearly indicate starting prefix requirement (e.g. 'For Pakistan, the mobile number must start with 3.')
- Improve phone input error matching in AuthModal and ProfileDrawer for mobile validation errors
2026-11-23 12:48:07 +05:30
Urvish Prajapati 9af7a9ad33 Merge branch 'main' into fix/stale-password-success-message 2026-11-20 11:30:57 +05:30
Urvish Prajapati 38d5149114 Merge branch 'main' into fix/issue-84-country-code-search 2026-11-19 14:36:08 +05:30
Urvish Prajapati aa4e1f0831 Merge branch 'main' into fix/stale-password-success-message 2026-11-19 13:46:01 +05:30
Urvish Prajapati 70b9e7146e fix(auth): clear stale password update success message on login, logout, and navigation 2026-11-17 14:13:39 +05:30
ShivaniKhaire 41e885a7c9 fix(billing): sync billing country with phone country and allow entering valid phone per country
- Synchronize Billing Country and Phone dial code in BillingPhoneModal and ProfileDrawer
- Reset phone and clear errors upon country change so user can enter a valid number per country rules
- Display Billing Country in CartDrawer's Billing Profile prefill summary
- Prioritize country-based rules over dial code in validation to support shared dial codes accurately
2026-11-17 13:41:17 +05:30
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
Amit Salunke 7a2d966796 Merge pull request 'feat(store): add country search, alphabetical sorting, and country code display (#84)' (#96) from issue-84 into main
Reviewed-on: https://git.zedobject.local/AcuPedia/acupedia-store-ui/pulls/96
Reviewed-by: Amit Salunke <amit@noreply.localhost>
2026-11-16 05:25:07 +00:00
Urvish Prajapati 47fa05d16b Merge branch 'main' into issue-84 2026-11-12 11:21:19 +05:30
Urvish Prajapati 1cd87a333d Merge branch 'main' into fix/change-password-confirm-visibility-and-error 2026-11-12 11:11:07 +05:30
Urvish Prajapati 7f8bd75c99 fix(auth): add visibility toggle to confirm password and update mismatch error message 2026-11-11 15:45:34 +05:30
Urvish Prajapati 2513c85411 fix(auth): enforce strict national phone length and prevent country code combining 2026-11-11 13:21:45 +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 a0c5a2d6fc fix(store): standardize phone number input, validation, and billing modal 2026-11-05 12:42:33 +05:30
Urvish Prajapati 9625643042 fix(store): display storefront and subscriptions navigation tabs on mobile 2026-11-05 11:44:28 +05:30
Urvish Prajapati b65249e075 fix(profile): sync country dial code and prevent hyphens in phone numbers 2026-10-29 14:10:04 +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
Urvish Prajapati eba0870e7f issue(49): enforce strict mobile number validation and sanitization across storefront 2026-10-20 12:01:41 +05:30
Urvish Prajapati 7e19e51708 issue(31):Password validation fixed 2026-10-19 14:18:48 +05:30
Urvish Prajapati 7c50c94f36 fixed-issue(50): added invoice download from subscription view, profile drawer and checkout modal 2026-10-14 12:57:29 +05:30
Amit Salunke c08080753e Merge pull request 'Issue 8 : fix country-wise phone number validation and 10-digit limit for India (#8)' (#17) from fix/issue-8-phone-number-validation into main
Reviewed-on: https://10.10.0.4/AcuPedia/acupedia-store-ui/pulls/17
2026-10-06 12:19:26 +00:00
ShivaniKhaire f3d13722e3 fix(auth): enforce password special character validation and disallow whitespace as special character 2026-10-05 17:26:54 +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