Skip to content

Manchester | 26-ITP-Jan | Farancis Dore Etonkie | Sprint 2 | Form Control#1065

Closed
FarancisGH wants to merge 4 commits into
CodeYourFuture:mainfrom
FarancisGH:Form-Control
Closed

Manchester | 26-ITP-Jan | Farancis Dore Etonkie | Sprint 2 | Form Control#1065
FarancisGH wants to merge 4 commits into
CodeYourFuture:mainfrom
FarancisGH:Form-Control

Conversation

@FarancisGH
Copy link
Copy Markdown

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

    1. A text input for the user's name
    2. An email input for the user's email address
    3. A set of radio buttons for selecting a colour (red, blue, green)
    4. A dropdown menu for selecting a size (XS, S, M, L, XL, XXL)
    5. A submit button to send the form data

@netlify
Copy link
Copy Markdown

netlify Bot commented Jan 26, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 4a95576
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6985a1b2de808800083988c1
😎 Deploy Preview https://deploy-preview-1065--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 project configuration.

@FarancisGH FarancisGH 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. Module-Onboarding The name of the module. labels Jan 26, 2026
Copy link
Copy Markdown
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.

Suggestion: Share your code to an AI tool and ask it to review your code in terms of semantic, accessibility, typo, and consistency.
It can often help us catch errors, improve consistency, and reinforce best practices.

Comment thread Form-Controls/index.html Outdated
Comment on lines +31 to +32
<label for="red">Red</label>
<input type="radio" id="red" name="Available colours" value="red" required />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

  • Can consider wrapping the radio button input within the label. This way, we don't need to use the for and id attributes.
        <label>Red
          <input type="radio" name="Available colours" value="red" required>
        </label>
  • Can you find out from AI about "general practice of using mixed letter cases and space in name attributes"?

Comment thread Form-Controls/index.html Outdated
<fieldset>
<legend>Enter your Name</legend>
<strong><label for="name">Name</label></strong>
<input type="text" id="name" name="name" required />
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Currently a user can enter a name consisting of only space characters (e.g., " "). Can you enforce a stricter validation rule using the pattern attribute to disallow any name that contains only space characters?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hello @cjyuan ,
Thank you for your review and feedback. I have made the changes and adjustments you requested to my Form Control. Please can you review?

Thank you.

@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 3, 2026
Comment thread Form-Controls/index.html Outdated
Comment on lines +28 to +37
<label id="Availablecolours">Available colours:</label>
<label>Red
<input type="radio" name="Available colours" value="red" required>
</label>
<label>Blue
<input type="radio" name="Available colours" value="blue" required>
</label>
<label>Green
<input type="radio" name="Available colours" value="green" required>
</label>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You could also consider using VSCode's "Format Document" feature auto format the code.
Once advantage of using it is that it can help us format the code in a consistent way.
To use the feature, right-click inside the code editor and select the option.

Comment thread Form-Controls/index.html Outdated
<p><b>Select a colour</b></p>
<label id="Availablecolours">Available colours:</label>
<label>Red
<input type="radio" name="Available colours" value="red" required>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Did you ask AI about general practice of using mixed letter cases and space in the 'name' attribute?

Comment thread Form-Controls/index.html Outdated
<input type="email" name="email" required>
</label>
</p>
<p><b>Select a colour</b></p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

May I suggest using an AI tool to identify ways to improve the semantics of the HTML code? (There are elements more suitable than <p> and <b> for accomplishing what you try to achieve)

Comment thread Form-Controls/index.html Outdated
Comment on lines +41 to +57
<input type="radio" name="Available sizes" value="ExtraSmall" required>
</label>
<label>S
<input type="radio" name="Available sizes" value="Small" required>
</label>
<label>M
<input type="radio" name="Available sizes" value="Medium" required>
</label>
<label>L
<input type="radio" name="Available sizes" value="Large" required>
</label>
<label>XL
<input type="radio" name="Available sizes" value="ExtraLarge" required>
</label>
<label>XXL
<input type="radio" name="Available sizes" value="DoubleExtraLarge" required>
</label>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Part of this code is redundant and can be slightly simplified. Can you figure out the redundant part and remove them?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

Hello @cjyuan
Please, I have made the necessary changes you asked me to make to my Form control. Can you please review it?

Copy link
Copy Markdown
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.

Changes look good mostly. Just one request.

Note: You forgot to add the "Needs review" label.

Comment thread Form-Controls/index.html Outdated
<fieldset>
<legend>Product Information</legend>

<p>Select a colour:</p>
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"Select a colour:" does not seem like a paragraph in an article.
To improve the semantic of the markups, can you replace the <p> element by the generic block-level element?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

@cjyuan Please review.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It seems I was incorrect. I was thinking <div> might be more appropriate than <p>, but upon checking with AI, it suggested <p> is more appropriate than <div> or <label>.

I won't go into details, you can ask AI yourself to find out more.

All good.

@FarancisGH FarancisGH added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label Feb 6, 2026
@cjyuan cjyuan 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 Feb 6, 2026
@illicitonion
Copy link
Copy Markdown
Member

Closing PR because the January ITP run has finished. Feel free to re-open if you're still working on it.

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. Module-Onboarding The name of the module. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants