Skip to content

Conversation

@Shohreh-bayat
Copy link

@Shohreh-bayat Shohreh-bayat commented Jan 20, 2025

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.

@netlify
Copy link

netlify bot commented Jan 20, 2025

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 8bb275e
🔍 Latest deploy log https://app.netlify.com/sites/cyf-onboarding-module/deploys/6794f946b2c513000811563b
😎 Deploy Preview https://deploy-preview-194--cyf-onboarding-module.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

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

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

@Shohreh-bayat Shohreh-bayat added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 20, 2025
@Shohreh-bayat Shohreh-bayat changed the title Form Control London ITP | Shohreh Bayat | Onboarding-Form Control | Week 2 Jan 20, 2025
@Shohreh-bayat Shohreh-bayat changed the title London ITP | Shohreh Bayat | Onboarding-Form Control | Week 2 London ITP- Jan25 | Shohreh Bayat | Onboarding-Form Control | Week 2 Jan 20, 2025
@SallyMcGrath SallyMcGrath added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Jan 23, 2025
Copy link
Member

@SallyMcGrath SallyMcGrath left a comment

Choose a reason for hiding this comment

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

Thanks for this @Shohreh-bayat . Let me know what you find out about the form validations and patterns.

</div>
<div>
<label for="email">E-mail</label>
<input type="email" name="email" id="email" placeholder="e.g., user@example.com" pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" size="30" required > <br> <br>
Copy link
Member

Choose a reason for hiding this comment

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

Goodness! This is a lot of validation. Tell me, what happens when you remove the pattern and test your form (by writing in a malformed email and hitting submit)?

Copy link
Author

@Shohreh-bayat Shohreh-bayat Jan 24, 2025

Choose a reason for hiding this comment

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

Hi Sally, Initially, I tried to use simpler validations like .+@example.com size="30" required
but in reality it was not allowing me to enter my own email address when I was testing the form, so I put this long validation to allow different email to be accepted e.g my own email address has underscore "_" on it, and with a simple pattern, the form would not accept that.

<label for="email">E-mail</label>
<input type="email" name="email" id="email" placeholder="e.g., user@example.com" pattern="^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$" size="30" required > <br> <br>
</div>
</fieldset> <br>
Copy link
Member

Choose a reason for hiding this comment

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

What is this br tag trying to do?

Suggested change
</fieldset> <br>
</fieldset>

Copy link
Author

Choose a reason for hiding this comment

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

Hi Sally, I was trying to create space so that it shows better on the website. Considering that we are not allowed to use CSS,
tag was doing that for me.

<!--
try writing out the requirements first as comments
this will also help you fill in your PR message later-->
<fieldset>
Copy link
Member

Choose a reason for hiding this comment

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

Love the fieldsets, you legend! ⭐

Copy link
Author

Choose a reason for hiding this comment

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

Thank you, Sally ⭐

@SallyMcGrath SallyMcGrath added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jan 23, 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 with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants