-
-
Notifications
You must be signed in to change notification settings - Fork 268
London | May-2025 | Gideon Defar | form control #726
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
Conversation
✅ Deploy Preview for cyf-onboarding-module ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code is free of error and implementation is pretty solid!
-
Could you improve the Lighthouse Accessibility score (as reported by the browser's Lighthouse dev tool) to 100?
-
Could you update the brief description in the "Changelist" section to clearly summarize what this PR is about?
-
A PR branch should include only the changes relevant to the specific task or feature it addresses. You can see all the modified files in the current branch in the "Files changed" tab of this PR:
https://github.com/CodeYourFuture/Module-Onboarding/pull/726/files
As the files in the "Wireframe" folder are not related to the Form-Control exercise, can you revert the changes made in those files in order to make this branch clean?
Note: It looks like this branch was created from your Wireframe branch instead of from main
, which has caused changes from the Wireframe branch to appear here as well.
To revert the changes made to certain files, you can replace them with the versions from your main
branch
(The files in the main
branch remain unmodified since you forked them from CYF.)
Here’s how to do it:
- Download the original versions of the files from your main branch on GitHub.
- On your computer (in VSCode), switch to the branch where you want to revert the changes. (feature/from-control
)
- Replace the modified files with the downloaded versions from the main
branch.
- Commit the changes and push the commit to GitHub.
Form-Controls/index.html
Outdated
<input | ||
type="text" | ||
id="name" | ||
name="name" | ||
required | ||
minlength="2" | ||
placeholder="Enter your full name" | ||
/> |
There was a problem hiding this comment.
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., " "). Could you enforce a stricter validation rule using the pattern
attribute to disallow any name that contains only space characters?
Here is an alternate approach you can try to fix your branch: This instructions assume you had created a branch named In your case,
0. Open the cloned "Module-Onboarding" repo in VSCode1. Open a terminal in VSCode2. Switch to the branch you want to rebase (
|
b3af46b
to
d845fd4
Compare
Dear CJ Yuan,
Thanks for your email and comments on my PRs. I did new commits on the
project according to your suggestion, so could you review it again Please.
Regards,
Gideon Defar
…On Fri, Jun 13, 2025 at 12:27 PM CJ Yuan ***@***.***> wrote:
*cjyuan* left a comment (CodeYourFuture/Module-Onboarding#726)
<#726 (comment)>
Here is an alternate approach you can try to fix your branch:
This instructions assume you had created a branch named B2 from a branch
named B1 instead of from main, and you wanted to rebase B2 from B1 to main
.
In your case,
- B2 is feature/from-control (you misspelled "form" in the branch
name).
- B1 is feature/wireframe
0. Open the cloned "Module-Onboarding" repo in VSCode 1. Open a terminal
in VSCode 2. Switch to the branch you want to rebase (B2)
git switch B2
Note: You can check which branch is the current branch via the command git
branch (to list all branches with current branch highlighted)
3. Rebase B2 from B1 onto main
git rebase --onto main B1 B2
For more details about this command, see
https://www.atlassian.com/git/tutorials/rewriting-history/git-rebase#:~:text=interactive%20rebase%20display-,Advanced%20rebase%20application,-The%20command%20line
4. Update (and Overwrite) your files in branch B2 at Github
While you are in branch B2 and you have verified that it has been
successfully rebased, execute the following command:
git push --force origin
—
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BR4RMV4BJF4CP4JLBIFL2JD3DKYS5AVCNFSM6AAAAAB7FYRI4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZQGA4DMNJVGM>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Changes look good. All issues (except fixing the branch) have been addressed. You should still try fixing this branch. |
Thanks for the feedback! What about now? Could you review it one more time
please.
…On Fri, Jun 13, 2025 at 6:15 PM CJ Yuan ***@***.***> wrote:
*cjyuan* left a comment (CodeYourFuture/Module-Onboarding#726)
<#726 (comment)>
Changes look good. All issues (except fixing the branch) have been
addressed.
You should still try fixing this branch.
—
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BR4RMV5BQCDHTSMJEN72FCD3DMBLPAVCNFSM6AAAAAB7FYRI4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZRGAYDIMBRHA>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
What do you mean by "one more time"? |
I mean I made same mistake again and again even though I followed the
instructions and the steps to rebase the branch and it might take your time
to review same issue multiple times. that's why.
…On Fri, Jun 13, 2025, 8:48 PM CJ Yuan ***@***.***> wrote:
*cjyuan* left a comment (CodeYourFuture/Module-Onboarding#726)
<#726 (comment)>
What do you mean by "one more time"?
—
Reply to this email directly, view it on GitHub
<#726 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/BR4RMV22GUFCFHZIKSQ6USD3DMTHFAVCNFSM6AAAAAB7FYRI4GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDSNZRGQ4DQMRZGI>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
You can ask a volunteer on Saturday in an in-person workshop to help you resolve the issue. Your branch issue won't affect the "Complete" status on this PR. |
Learners, PR Template
Self checklist
Changelist
Added form validation for customer name to prevent empty or whitespace-only inputs.
Ensured email addresses follow a valid format using HTML5 input type.
Limited t-shirt color selection to 3 predefined options (Red, Blue, Black).
Restricted t-shirt size selection to 6 fixed sizes (XS, S, M, L, XL, XXL).
I have used HTML only. I have not used any CSS or JavaScript.
Questions
Ask any questions you have for your reviewer.