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

London ITP January 25 | Khalil Ali | Module-Onboarding | Week2 #262

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

khalil-ali1
Copy link

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with COHORT_NAME | FIRST_NAME LAST_NAME | REPO_NAME | WEEK
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

Briefly explain your PR.

Questions

Ask any questions you have for your reviewer.

Copy link

netlify bot commented Feb 11, 2025

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 5b3398d
🔍 Latest deploy log https://app.netlify.com/sites/cyf-onboarding-module/deploys/67aef5c7da1cb900088d2fc7
😎 Deploy Preview https://deploy-preview-262--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
2 paths audited
Performance: 100 (no change from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 86 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify site configuration.

@day-lee day-lee self-requested a review February 13, 2025 12:46
@day-lee day-lee added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Feb 13, 2025
@day-lee
Copy link

day-lee commented Feb 13, 2025

Thank you for the submission. For your work to be reviewed, it is important to change labels as 'Needs review'. This will ensure that your work appears on PR tracking dashboard for volunteers so we can review it in a timely manner. Please add the label as 'Needs review'.

type="text"
id="name"
name="name"
minlength="2"
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems the name input accepts numbers as well. Can you think of a pattern attribute that only accepts a text string of two characters or more?
FYI, Requirement: I require a valid name. I have defined a valid name as a text string of two characters or more.

Copy link
Author

@khalil-ali1 khalil-ali1 Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many Thanks for you on your time and effort.
pattern="^[a-zA-Z\s\-']{2,}$"
this pattern would do the task.

pattern="^[a-zA-Z\s-']{2,}$"This is a regular expression that checks for a minimum of two letters, and allows for spaces, hyphens, and apostrophes

</select>
</fieldset>
<br />
<input type="button" value="Submit" />
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While the requirement states, "Do not write a form action for this project," it is important to test the functionality. With input type="button", the form won't submit at all, and therefore it won't validate the form either. Can you think of another type attribute that would allow you to test the form?

@day-lee day-lee added Reviewed Volunteer to add when completing a review and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Reviewed Volunteer to add when completing a review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants