Skip to content

Conversation

@codebyshay
Copy link

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 created a form that collects customer t-shirt orders. I have added validation on both names and emails.

Questions

No Questions

@netlify
Copy link

netlify bot commented Jan 23, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit ec07304
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/697d02267903e00008287b30
😎 Deploy Preview https://deploy-preview-1021--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: 71 (🔴 down 15 from production)
PWA: -
View the detailed breakdown and full score reports

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

@codebyshay codebyshay added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 23, 2026
I added required> to name, email, select colour and select size.
@jenny-alexander jenny-alexander self-requested a review January 28, 2026 22:23
@jenny-alexander jenny-alexander added Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Jan 28, 2026
Copy link
Contributor

@jenny-alexander jenny-alexander left a comment

Choose a reason for hiding this comment

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

Hi @codebyshay - good work. I left a few comments within the code.

Also, can you check the Lighthouse accessibility score for your form page? I see it as 89 and the exercise requirements say it should be 100.

<button type="submit">Submit</button>
</form>

<script>
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you review the exercise instructions? I believe there shouldn't be any javascript in the file.

</script>

<footer>
<h2>By Shuheda Begum</h2>
Copy link
Contributor

Choose a reason for hiding this comment

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

The <h2> tag in the footer suggests a major section heading. Footer typically has smaller headings or <p> tags.

@jenny-alexander jenny-alexander added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Review in progress This review is currently being reviewed. This label will be replaced by "Reviewed" soon. labels Jan 28, 2026
Footer changed from <h2> to <p.
Block and padding added around the <label tag.
@codebyshay
Copy link
Author

codebyshay commented Jan 29, 2026

Hi, I've amended footer and the <label. This was the cause behind the 89% score on lighthouse. Lighthouse accessibility score is now 100%. Will change the code to eliminate JavaScript tomorrow.

<input type="radio" name="size" value="XS" required> XS
</label>

<label style="display:block; padding:12px 0;">
Copy link
Contributor

Choose a reason for hiding this comment

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

I missed this in my prior review -> Ensure that you don't add CSS to the file, as stated in the instructions.

Copy link
Author

Choose a reason for hiding this comment

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

All done. JavaScript and CSS removed. Lighthouse score 100%. Thank you.

@codebyshay codebyshay added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 29, 2026
@jenny-alexander
Copy link
Contributor

jenny-alexander commented Jan 30, 2026

@codebyshay - Your form works well. Thanks for making the suggested corrections.
When I use W3 validator to review your deployed application, there are multiple errors. Can you please review?
https://validator.w3.org/

@jenny-alexander jenny-alexander removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 30, 2026
@codebyshay
Copy link
Author

Was that part of the requirements? I don't remember seeing anything about validation via W3?

@codebyshay codebyshay added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Jan 30, 2026
@jenny-alexander
Copy link
Contributor

Hi @codebyshay Even though running W3 validator checks isn't explicitly stated in the CYF requirements, writing valid HTML is a baseline expectation for any web development work.
Invalid markup can cause unexpected browser behaviour, accessibility problems, and maintenance problems down the line.

It's a good habit to run your markup through W3 validator at this stage of your development journey.

@codebyshay
Copy link
Author

I appreciate it's good practice, but I believe I have fulfilled the criteria for this part of the course.

@cjyuan
Copy link
Contributor

cjyuan commented Jan 30, 2026

@codebyshay Your form implementation looks good.

While it's not explicitly stated in the spec, things like "valid HTML" are usually assumed rather than written into requirements in a real job.

CYF asks mentors to hold trainees to a high standard in order to better prepare them for the real world.
That’s why @jenny-alexander and I are encouraging trainees to develop the habit of validating their code.
Our goal isn’t to add extra rules, but to help trainees consistently deliver work that meets professional standards and can stand up to review in a real job.

It should be an easy fix. Can you try?

@codebyshay
Copy link
Author

Thank you @cjyuan I am a complete novice when it comes to coding, so I am not familiar with expectations or common practices amongst coders. I am however, trying hard to learn. I appreciate the feedback provided by yourself and @jenny-alexander. I have attempted it to make the code valid, hopefully all is in order now.

@jenny-alexander jenny-alexander 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 Jan 30, 2026
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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants