Feature Validate AddBooking
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- javascript, react
Hướng nghiên cứu
Bắt đầu bằng cách tìm biểu mẫu AddBooking được giới thiệu trong issue #24 và chạy ứng dụng để kiểm tra luồng Submit của biểu mẫu. Thêm validation cho các trường được nêu tên nhưng vẫn giữ lại văn bản đã nhập, hiển thị lỗi màu đỏ ở trên cùng đối với dữ liệu nhập không hợp lệ và xác nhận rằng các giá trị hợp lệ xuất hiện ở phía dưới như được mô tả trong test.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Depends on #24
Instructions:
Add validation to some fields from #24 : the first name and last name must not be empty, the email must contain exactly 1 @ symbol, and at least one . symbol after the @; the room ID must be a number between 0 and 100. If the fields do not contain correct information when the 'Submit' button is pressed, display a red error message at the top of the page, but do not clear the text already in the field.
Test:
An invalid input displays an error message after the 'Submit' button is pressed (e.g. an email like react@com is invalid). A valid input shows the correct values at the bottom of the page.
Reflection:
Validating user input is an important part of any application. Without checking the input, you might see unexpected errors when working with the data later.
What do you think would happen if you were asked to remove a booking for room number '81', but the user had typed 'eightyOne' or 'EIGHTY ONE'?
- Ngôn ngữ chính
- JavaScript
- Star
- 1
- Fork
- 28
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của CodeYourFuture/React-Module-Project
-
Feature Error Message Đang mở♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Loading Message Đang mở🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Search State Đang mở🐂 Size Medium 📅 Week 3 🧩 Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Active Row Đang mở🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
Feature Bookings state Đang mở🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 68/100
Tất cả issue của CodeYourFuture/React-Module-Project
Issue tương tự
-
bug confirmed issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
open-webui/open-webui#30750 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Mend: dependency security vulnerability untriaged
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100