Skip to content

Conversation

@TzeMingHo
Copy link

@TzeMingHo TzeMingHo commented Sep 2, 2025

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

I have edited the HTML file with a fieldset, accepting customers' inputs for their names, emails, the colour of the T-shirt, and the size of the T-shirt, while adding a legend and a label for each input.

@netlify
Copy link

netlify bot commented Sep 2, 2025

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 49210ad
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/68c1683e01de2800084af2de
😎 Deploy Preview https://deploy-preview-738--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: 98 (🔴 down 2 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 project configuration.

@github-actions
Copy link

github-actions bot commented Sep 2, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

@TzeMingHo TzeMingHo added 📅 Sprint 2 Assigned during Sprint 2 of this module Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 2, 2025
@github-actions
Copy link

github-actions bot commented Sep 2, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

1 similar comment
@github-actions
Copy link

github-actions bot commented Sep 2, 2025

Your PR description contained template fields which weren't filled in.

Check you've ticked everything in the self checklist, and that any sections which prompt you to fill in an answer are either filled in or removed.

@LonMcGregor LonMcGregor added the Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. label Sep 9, 2025
Copy link

@LonMcGregor LonMcGregor left a comment

Choose a reason for hiding this comment

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

Good start on this sprint's tasks, I have spotted a few areas where you could improve code further

Remember to update the default PR text when submitting on github. If you have no questions you can remove that section

Did you mean to include the wireframe files? We try to keep pull requests specific to just the files in the feature we are changing - for this, everything within the Form-Controls directory.

Choose a reason for hiding this comment

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

Did you mean to delete this file?

Copy link
Author

Choose a reason for hiding this comment

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

Hi Lon,
Thank you for your reminder. I have deleted Wireframe/index.html, Wireframe/style.css, and Form-Controls/README.md.

Choose a reason for hiding this comment

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

If you look at the "changed files" section on this Pull Request, you will see that these files are all listed as changed. This means if this PR were merged, those files would be deleted for everyone from all new branches. What we want to achieve is for the "changed files" area to only show changes. Instead of deleting files that you don't want changed entirely, you need to revert them to their original state before modification. Can you figure out how to do that?

Copy link
Author

Choose a reason for hiding this comment

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

Hi Lon,
Thank you for the clarification. Now I understand where to look for file changes. It was a valuable lesson to learn about how to restore files from the main, and I feel more confident about not messing up the original state.

id="name"
name="name"
minlength="2"
pattern="^[A-Za-z]{2,}$"

Choose a reason for hiding this comment

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

Good to see you using a regular expression here. This might be a bit restrictive, however. Think about the kind of names people might use. What if they put a firstname and surname? What if their name has non-english characters?

Copy link
Author

Choose a reason for hiding this comment

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

Hi Lon,
Thank you for your suggestion. I was not thoughtful enough to think about users may input both their first name and surname, or even non-English characters. The pattern for name input is deleted in [f91b77e].

Choose a reason for hiding this comment

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

Validation issues like that are a common pitfall - good fix

type="email"
id="email"
name="email"
pattern="^[A-Za-z0-9._]+@[A-Za-z0-9]+\.[a-z]{2,}(\.[a-z]{2,})?$"

Choose a reason for hiding this comment

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

Do you need to include a pattern for this input type?

Copy link
Author

Choose a reason for hiding this comment

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

Hi Lon,
A pattern for email is not required in the exercise. However, I read the MDN suggestion to add a pattern for email validation. So, I included it to practice the concept. The pattern has been removed in [f91b77e].

Choose a reason for hiding this comment

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

Most browsers now include the same pattern built-in, so you don't need to specify it. Thanks for fixing this

@LonMcGregor LonMcGregor 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 Sep 9, 2025
@LonMcGregor
Copy link

I've left some additional comments. Remember if you are done making changes and want some feedback to add the "needs review" label to this PR.

@TzeMingHo TzeMingHo added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Sep 10, 2025
@LonMcGregor
Copy link

Great work on this task - you are done with this PR now

@LonMcGregor LonMcGregor added Complete Volunteer to add when work is complete and all review comments have been addressed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. Reviewed Volunteer to add when completing a review with trainee action still to take. labels Sep 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Complete Volunteer to add when work is complete and all review comments have been addressed. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants