Skip to content

ITP-MAY-25- LONDON | KEBROM-GEBRETINSAY | Module-Onboarding - FORM-CONTROL #694

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

kbtesfu
Copy link

@kbtesfu kbtesfu commented Jun 4, 2025

Learners, PR Template

Self checklist

  • I have committed my files one by one, on purpose, and for a reason
  • I have titled my PR with REGION | COHORT_NAME | FIRST_NAME LAST_NAME | PROJ_NAME
  • I have tested my changes
  • My changes follow the style guide
  • My changes meet the requirements of this task

Changelist

The purpose of PR is facilitating code review and collaboration among developers. It allows team members to discuss proposed changes, ensuring code quality and adherence to project standards. Additionally, PRs serve as documentation of modifications and enable automated testing to prevent bugs in the codebase

Questions

Ask any questions you have for your reviewer.

Copy link

netlify bot commented Jun 4, 2025

Deploy Preview for cyf-onboarding-module ready!

Name Link
🔨 Latest commit 9b66684
🔍 Latest deploy log https://app.netlify.com/projects/cyf-onboarding-module/deploys/68405f590e967100081c6efd
😎 Deploy Preview https://deploy-preview-694--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: 91 (🟢 up 5 from production)
PWA: -
View the detailed breakdown and full score reports

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

@kbtesfu kbtesfu requested review from cjyuan and A-O-Emmanuel June 4, 2025 15:00
@kbtesfu kbtesfu added the Needs Review Participant to add when requesting review label Jun 4, 2025
@kbtesfu
Copy link
Author

kbtesfu commented Jun 4, 2025

I had indentation error in the previous branch of form control. I have tried to fix it.

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.

Code is error-free and well indented, form implementation is solid.

I only have a few questions which I left as inline comments with the the code.

<form action="/submit-order" method="POST">

<label for="fname">First Name:</label><br />
<input type="text" id="fname" name="fname" required pattern="[A-Za-z\s]+"
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you plan to accept a name that contains only a single space character?

Copy link
Author

Choose a reason for hiding this comment

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

Not only a single space. The pattern allows single or multiple space character.

Copy link
Contributor

Choose a reason for hiding this comment

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

Why do you want to recognise a name containing only space characters as valid name?

Copy link
Author

Choose a reason for hiding this comment

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

Because name with only space characters is valid under the pattern.

Copy link
Author

Choose a reason for hiding this comment

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

and also the pattern accepts any combination of letters and whitespace,

@cjyuan cjyuan added Reviewed Volunteer to add when completing a review Complete Volunteer to add when work is complete and review comments have been addressed and removed Needs Review Participant to add when requesting review Reviewed Volunteer to add when completing a review labels Jun 4, 2025
@cjyuan
Copy link
Contributor

cjyuan commented Jun 4, 2025

Your implementation is very solid. Good job.

Copy link

@A-O-Emmanuel A-O-Emmanuel left a comment

Choose a reason for hiding this comment

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

I think this is okay

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 review comments have been addressed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants