Skip to content

Conversation

@Oussama-Mouggal
Copy link

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

A basic T-shirt e-store based on html only, where form won't be submitted unless email and name are entered correctly based on the required form.

Copilot AI review requested due to automatic review settings January 21, 2026 22:10
@netlify
Copy link

netlify bot commented Jan 21, 2026

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit bde8e77
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/69714ebe4ee6a30008dcda87
😎 Deploy Preview https://deploy-preview-1009--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.

@Oussama-Mouggal Oussama-Mouggal 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 21, 2026
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR implements a basic T-shirt e-store form using HTML with client-side validation. The form collects customer information (name and email) along with product preferences (color and size) and validates required fields before submission.

Changes:

  • Added form inputs for name (with pattern validation) and email (with type validation)
  • Implemented radio button group for color selection (black, blue, red)
  • Added dropdown select menu for size selection (XS through XXL)
  • Updated footer with student name

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL
All fields are required. Do not write a form action for this project.-->
</form>
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

Duplicate closing form tag detected. The form is already closed on line 52, so this closing tag should be removed to avoid invalid HTML structure.

Suggested change
</form>

Copilot uses AI. Check for mistakes.
<br /><br />
<fieldset>
<legend>Please select a color:</legend>
<input type="radio" id="black" name="color" value="black" />
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

The radio buttons for color selection should have the required attribute to enforce that users make a selection. Since all fields are required per the specification, at least one radio button in the group should be marked as required to ensure a color is selected before form submission.

Suggested change
<input type="radio" id="black" name="color" value="black" />
<input type="radio" id="black" name="color" value="black" required />

Copilot uses AI. Check for mistakes.
Comment on lines +42 to +49
<select id="size" name="size" required>
<option value="XS">XS</option>
<option value="S">S</option>
<option value="M">M</option>
<option value="L">L</option>
<option value="XL">XL</option>
<option value="XXL">XXL</option>
</select>
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

The size dropdown should include a default placeholder option to ensure users actively select a size. Consider adding a first option like "Select a size" with an empty value and the disabled and selected attributes, so that the required attribute properly enforces selection.

Copilot uses AI. Check for mistakes.
@Oussama-Mouggal
Copy link
Author

@copilot open a new pull request to apply changes based on the comments in this thread

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Module-Onboarding The name of the module. Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. 📅 Sprint 2 Assigned during Sprint 2 of this module

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant