You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[ ] Interpret requirements and check against a list of criteria
8
+
-[ ] Write a valid form
9
+
-[ ] Test with Devtools
10
+
-[ ] Refactor using Devtools
11
+
<!--{{<objectives>}}>-->
12
+
13
+
## Task
14
+
15
+
We are selling t-shirts. Write a form to collect the following data:
16
+
17
+
Our customers already have accounts, so we know their addresses and charging details already. We don't need to collect that data. We want to confirm they are the right person, then get them to choose a colour and size.
18
+
19
+
Writing that out as a series of questions to ask yourself:
20
+
21
+
1. What is the customer's name? I must collect this data, and validate it. But what is a valid name? I must decide something.
22
+
2. What is the customer's email? I must make sure the email is valid. Email addresses have a consistent pattern.
23
+
3. What colour should this t-shirt be? I must give 3 options. How will I make sure they don't pick other colours?
24
+
4. What size does the customer want? I must give the following 6 options: XS, S, M, L, XL, XXL
25
+
26
+
All fields are required.
27
+
Do not write a form action for this project.
28
+
29
+
## Developers must test their work.
30
+
31
+
Let's write out our testable criteria. Check each one off as you complete it.
32
+
33
+
-[ ] I have used HTML only.
34
+
-[x] I have not used any CSS or JavaScript.
35
+
36
+
### HTML
37
+
38
+
-[ ] My form is semantic html.
39
+
-[ ] All inputs have associated labels.
40
+
-[ ] My Lighthouse Accessibility score is 100.
41
+
-[ ] I require a valid name. I have defined a valid name as a text string of two characters or more.
42
+
-[ ] I require a valid email.
43
+
-[ ] I require one colour from a defined set of 3 colours.
44
+
-[ ] I require one size from a defined set of 6 sizes.
45
+
46
+
## Resources
47
+
48
+
-[MDN: Form controls](https://developer.mozilla.org/en-US/docs/Learn/Forms)
49
+
-[MDN: Form validation](https://developer.mozilla.org/en-US/docs/Learn/Forms/Form_validation)
Mentors and trainees all review code, and collaborate on improving code quality. We are all helping each other to talk, write, and think about code more clearly.
Mentors and participants all review code, and collaborate on improving code quality. We are all helping each other to talk, write, and think about code more clearly.
10
8
11
9
We are not reviewing code as if we were to merge this PR into production; we are opening a technical conversation for the purpose of insight and development.
12
10
@@ -24,12 +22,24 @@ We are not reviewing code as if we were to merge this PR into production; we are
24
22
25
23
3. Respect everyone's work and time:
26
24
27
-
**YES** "I think there's some more to do here. Thanks for sharing where you're up to."
25
+
**YES** "I think there's some more to do here. Thanks for sharing where you're up to. Can I help you complete this?"
28
26
**NO** "This is rubbish. Try harder."
29
27
30
-
## Labels
28
+
## Getting your pull request reviewed
29
+
30
+
We're using GitHub Labels in our Code Review process. In order for a volunteer to review a pull request, a participant will need to add a "Needs Review" label to it.
31
+
32
+
To add a label to a pull request:
33
+
34
+
- Open the pull request
35
+
- In the right sidebar, click Labels, then select the label you'd like to add - for example: "Needs Review"
36
+
37
+
Take a look at our code review process from beginning to end. Let us know if you have any questions or need help!
38
+

31
39
32
-
Reviewers, please add labels (provided) to the PR once you've reviewed. This helps to focus the trainee on the areas they should work on, and gives an overview for mentors on what the whole cohort needs to work on.
40
+
## Labels for feedback
41
+
42
+
Reviewers, please add labels (provided) to the PR once you've reviewed. This helps to focus the participant on the areas they should work on, and gives an overview for mentors on what the whole cohort needs to work on.
33
43
34
44
## Solutions
35
45
@@ -53,14 +63,4 @@ Use these resources to inform your code review, get unstuck, and improve your un
53
63
54
64
## Guides
55
65
56
-
Here's a detailed checklist of the sorts of things we should check code for:
0 commit comments