Skip to content

North west | 26-ITP-Sept | Brian Yorachi | Sprint 1 | Form controls - #1516

Open
BrianY315 wants to merge 4 commits into
CodeYourFuture:mainfrom
BrianY315:feature/form-controls
Open

BrianY315 wants to merge 4 commits into
CodeYourFuture:mainfrom
BrianY315:feature/form-controls

Conversation

@BrianY315

Copy link
Copy Markdown

Self checklist

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

Needs review

CYF-1004

@netlify

netlify Bot commented Sep 13, 2026

Copy link
Copy Markdown

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit ccf9091
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/6aa6d4e6a5e68500083b1233
😎 Deploy Preview https://deploy-preview-1516--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
🤖 Make changes Run an agent on this branch

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

@github-actions

This comment has been minimized.

@BrianY315 BrianY315 changed the title Northwest | 26-ITP-Sept | Brian Yorachi | Sprint 1 | Form controls North west | 26-ITP-Sept | Brian Yorachi | Sprint 1 | Form controls Sep 13, 2026
@Liam310 Liam310 added Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels Sep 14, 2026
@valentina-starr1

Copy link
Copy Markdown

Great work on this,

The form implementation looks solid and addresses all requirements:

Correct input fields and semantic structure (Name, Email, Colour, Size).

Proper regex validation (.\S.\S.*) ensuring at least two non-space characters for the name.

Complete size dropdown list with all 6 required options (XS through XXL).

Strong accessibility setup with linked labels (for) and aria-describedby helper text.

This PR is approved and ready to merge.

@BrianY315

Copy link
Copy Markdown
Author

@valentina-starr1

I am having trouble doing a merge on this PR. I cannot see the merge button as I passed all criteria? any guidance would be welcome.

@cjyuan

cjyuan commented Sep 17, 2026

Copy link
Copy Markdown
Contributor
image
  1. Your PR description is not yet formatted correctly. Could you refer to some of these completed PRs to see how the PR description should look like, and then update your PR description accordingly?

To learn more about Markdown, see

  1. In ITP, the PR will only be reviewed; it won't be merged into CYF's repo.

@cjyuan cjyuan left a comment

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.

Code is well formatted and free of syntax error. Well done.

Could you address the inline comments?

Suggestion: Use AI to explore "How to address inline comments in a PR?" and then practice what you learn in this PR.

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 were supposed to implement the form in index.html.

Comment on lines +6 to +12
<style>
body {
font-family: Arial, sans-serif;
background: #f7f7f7;
padding: 40px;
line-height: 1.6;
}

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.

Could you move the internal CSS to an external fie? It is best practice to separate CSS from HTML.

Comment on lines +64 to +70
id="customer-name"
name="customer-name"
required
pattern=".*\S.*\S.*"
aria-describedby="nameHelp"
>
<small id="nameHelp">Name must contain at least two non‑space characters.</small>

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.

  • customer-name - This naming convention is called kebab-case.
  • nameHelp - This naming convention is called camelCase.

It's best practice to use a consistent naming convention throughout.

@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 Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants