Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge Stage into Main #228

Merged
merged 37 commits into from
Oct 9, 2024
Merged
Changes from 1 commit
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
fb0871d
#181 Fix styles of pet-tags/tag-quote and pet-tags/tag-select (#182)
miakobchuk Aug 6, 2024
7ad2286
hotfix for change domain
miakobchuk Aug 7, 2024
4c4d79b
adding additional environment entry to config
miakobchuk Aug 8, 2024
19b96ad
updated trusted site block
miakobchuk Aug 8, 2024
7c16136
Menu links refactoring (#188)
miakobchuk Aug 9, 2024
760d840
PM-361
miakobchuk Aug 13, 2024
ec80ebd
PM-361
miakobchuk Aug 13, 2024
61de609
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Aug 14, 2024
4f3a98a
updated document-based footer
miakobchuk Aug 16, 2024
c646d3a
added x icon for footer
miakobchuk Aug 16, 2024
dd27d15
removed external icon for petmicrochiplookup.org link
miakobchuk Aug 16, 2024
472442a
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Aug 22, 2024
3f7a07e
Merge remote-tracking branch 'refs/remotes/origin/main' into stage
BaDos Aug 30, 2024
433f2fd
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Aug 30, 2024
9b9a03e
Merge remote-tracking branch 'refs/remotes/origin/main' into stage
BaDos Sep 10, 2024
941bf8c
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Sep 10, 2024
ba32c40
24PW: Post Purchase Thank You Page - EDS Build (#201)
hero-dokane Sep 11, 2024
ef8d162
24PW: Post Purchase Thank You Page - EDS Build - QA Feedback Updates …
hero-dokane Sep 12, 2024
dc21b70
24PW: Post Purchase Thank You Page - EDS Build - QA Feedback Updates …
hero-dokane Sep 13, 2024
f155c78
Fixes for the form issues (#205)
BaDos Sep 16, 2024
d06bf4d
Feature/post purchase thank you page (#206)
hero-dokane Sep 16, 2024
9217777
Sync develop into stage (#207)
BaDos Sep 16, 2024
9c7dc18
24PW: Membership V2 Paid Page - EDS Build (#208)
hero-dokane Sep 17, 2024
e386258
24PW: Membership V2 Paid Page - QA Updates (#209)
hero-dokane Sep 17, 2024
9dc8710
Add page /paid/lost-pet-protection (#194)
hero-dokane Sep 18, 2024
1f49990
24PW: Membership V2 Paid Page - QA Updates (#211)
hero-dokane Sep 18, 2024
95c0d6b
Fix config matching (#212)
BaDos Sep 18, 2024
510df5e
Merge remote-tracking branch 'origin/stage' into develop
BaDos Sep 18, 2024
866cd49
24PW: Lost Pet Recovery Paid Page - EDS Build (#210)
hero-dokane Sep 18, 2024
d53e374
Sync develop into stage (#213)
BaDos Sep 18, 2024
909c0f5
Sync develop into stage (#213) (#214)
BaDos Sep 18, 2024
9f26a83
Fix css (#216)
BaDos Sep 25, 2024
510aede
Merge branch 'develop' into stage
fe-lix- Sep 25, 2024
c1a242e
Merge remote-tracking branch 'origin/main' into stage
BaDos Oct 3, 2024
316c81e
Sync develop into stage (#220)
hero-dokane Oct 4, 2024
d533307
Sync develop into stage (#223)
hero-dokane Oct 7, 2024
d5d7dbe
Sync develop into stage (#227)
hero-dokane Oct 8, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
PM-361
  • Loading branch information
miakobchuk committed Aug 13, 2024
commit 760d8404ab1482d081b9a8b4a01e7417d859d514
9 changes: 5 additions & 4 deletions blocks/found-pet-report/found-pet-report.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default async function decorate(block) {
<div class="error-message"></div>
</div>
<div class="wrapper wrapper-info">
<input type="number" id="microchipId" name="microchipId" required placeholder="">
<input type="text" id="microchipId" name="microchipId" required placeholder="" maxlength="15">
<label for="microchipId" class="float-label">Microchip number (up to 15 digits)*</label>
<span class="checkmark"></span>
<div class="error-message"></div>
Expand All @@ -93,7 +93,7 @@ export default async function decorate(block) {
<div class="error-message"></div>
</div>
<div class="wrapper">
<input type="number" id="phoneNumber" name="phoneNumber" placeholder="" maxlength="10">
<input type="tel" id="phoneNumber" name="phoneNumber" placeholder="" maxlength="12">
<label for="phoneNumber" class="float-label">Phone Number*</label>
<span class="checkmark"></span>
<div class="error-message"></div>
Expand Down Expand Up @@ -168,7 +168,8 @@ export default async function decorate(block) {
// REGEX for validators
const AT_LEAST_ONE_SYMBOL_REGEX = /.+/;
const AT_LEAST_ONE_SYMBOL_OR_NUMBER_REGEX = /[0-9\p{P}\p{S}]/u;
const PHONE_OPTIONAL_REGEX = /^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/;
// const PHONE_OPTIONAL_REGEX = /^\(?(\d{3})\)?[- ]?(\d{3})[- ]?(\d{4})$/;
const PHONE_OPTIONAL_REGEX = /^\d{3}-?\d{3}-?\d{4}$/;
const EMAIL_OPTIONAL_REGEX = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/;

const states = {
Expand Down Expand Up @@ -275,7 +276,7 @@ export default async function decorate(block) {
validateField(event.target, AT_LEAST_ONE_SYMBOL_REGEX, 'This value is required.');
});
microchipId.addEventListener('blur', (event) => {
validateField(event.target, AT_LEAST_ONE_SYMBOL_OR_NUMBER_REGEX, 'This value is required.');
validateField(event.target, AT_LEAST_ONE_SYMBOL_REGEX, 'This value is required.');
});
ownerName.addEventListener('blur', (event) => {
validateField(event.target, AT_LEAST_ONE_SYMBOL_REGEX, 'This value is required.');
Expand Down