Skip to content

Conversation

@miriamjorna
Copy link

London | Jan26ITP | Miriam Jorna | Sprint 2 | T-shirt form

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

Homework for Sprint 2: HTML form. Now in a clean branch.

@netlify
Copy link

netlify bot commented Feb 6, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit cebf3c9
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6989ffd08a41f50008f2e850
😎 Deploy Preview https://deploy-preview-1154--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: 88 (🟢 up 2 from production)
PWA: -
View the detailed breakdown and full score reports

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

@miriamjorna miriamjorna 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 Feb 6, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

Can you also take a look at this General Feedback to see if there
is anything you can do to make your PR more robust and ready?

@cjyuan cjyuan 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. labels Feb 6, 2026
@miriamjorna miriamjorna changed the title London | Jan26ITP | Miriam Jorna | Sprint 2 | T-shirt form London | 26-ITP-Jan | Miriam Jorna | Sprint 2 | T-shirt form Feb 7, 2026
…and spaces are no longer valid input).

Have put label tags on radio buttons as proposed.
Put sizes in a table to make page shorter, so that Submit button doesn't run out of sight.
@miriamjorna miriamjorna added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 9, 2026
Copy link
Contributor

@cjyuan cjyuan left a comment

Choose a reason for hiding this comment

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

According to https://validator.w3.org/, there is an error in your code. Can you fix it?

<p>
<label for="name">
Name: <input type="text" id="name" minlength="2" name="user_name"
pattern="[A-Za-z]{2}" title="At least two letters are needed" required autofocus />
Copy link
Contributor

Choose a reason for hiding this comment

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

Have you tested this input field to see if it can correctly accept and reject the values as expected?

Copy link
Author

Choose a reason for hiding this comment

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

Ahhh... I did several times, but clearly not after the last change! Thanks for spotting that

Comment on lines 48 to 52
<p>
<label for="email">
Email: <input type="email" id="email" name="user_email" required />
</label>
</p>
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 improve the indentation of the code in 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.

Have changed this.
About line 50:
When I ask VSCode to autoformat it keeps changing my change on line 50 (into a more vertical listing as with Name) back into one line. This suggests I'm doing it wrong? I'm leaving it as autoformatted.
For clarity, the /> is now a >

Copy link
Contributor

Choose a reason for hiding this comment

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

The trailing slash / in <input ... /> is not needed in HTML.

Not sure what you meant by "more vertical listing".

Is this your concern?

<input type="email" id="email" name="user_email" required />

is changed to

<input 
  type="email" 
  id="email" 
  name="user_email" 
  required
>

?

Both formats work.

Copy link
Author

Choose a reason for hiding this comment

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

Yes, that's what I did, and then VSCode keeps changing it back to one line. I tried the vertical form to find out if that would be what you meant by an improvement on the indentation.

Comment on lines 81 to 82
<table>
<tr padding="30px">
Copy link
Contributor

Choose a reason for hiding this comment

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

It is a bad practice to use <table> for layout purpose. A normal approach would be to use CSS.

However, without CSS, we can still create enough spacing to reach 100 in Lighthouse accessibility score using some elements that can produce space/gap in HTML.

@cjyuan cjyuan 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. labels Feb 9, 2026
…oing colours earlier)

- After validation removed a whole lot of empty slashes in /> and replaced with just >
- Removed invalid padding code
- Responded to comments in review

Thank you for your patience
@miriamjorna miriamjorna added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Reviewed Volunteer to add when completing a review with trainee action still to take. labels Feb 9, 2026
@cjyuan
Copy link
Contributor

cjyuan commented Feb 9, 2026

Changes look good enough.

There are several areas the code can be further improved. Can you share your code to ChatGPT and ask it for possible improvements?

I will mark this PR as complete first.

@cjyuan cjyuan removed the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 9, 2026
@cjyuan cjyuan added the Complete Volunteer to add when work is complete and all review comments have been addressed. label Feb 9, 2026
@miriamjorna
Copy link
Author

Hurray and thank you!
I'm first going to use what little time I have left to try and make the deadline for onboarding, which has today been set for a week earlier (panic!). I will certainly revisit this after that.

@miriamjorna miriamjorna changed the title London | 26-ITP-Jan | Miriam Jorna | Sprint 2 | T-shirt form London | 26-ITP-Jan | Miriam Jorna | Sprint 2 | Form Controls Feb 11, 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. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants