patternfly / patternfly/patternfly-react
DatePicker - multiple validators should render separate helper texts
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 862
- Fork
- 392
- Merge trung bình
- 4 ngày 8 giờ
- Pull request đã merge (30 ngày)
- 9
Mô tả
Is this a new component or an extension of an existing one?
DatePicker
Describe the feature
Currently DatePicker renders only a single HelperText for errors, regardless of how many validators may be passed in. If multiple validators return a error string, each string is added to a single string state with an escaped newline between them, resulting in a single helper text item (with the intent being each validator string will be separated by a new line, but it doesn't seem like that is happening for me, i.e. it all gets rendered as a single line).
Instead we should create a new HelperText item for each validator that returns an error string so as to be less confusing if multiple errors are being rendered.
CC @andrew-ronaldson is this the intended behavior, or is there something else in mind for multiple validators returning error text?
Are there visuals for this feature? If applicable, please include examples for each state and for varying widths
Include screenshots or links to Marvel or other mockups.
Any other information?
Hướng dẫn đóng góp
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.
Hướng nghiên cứu
Bắt đầu bằng cách xác định entry point của DatePicker cũng như cách render HelperText hiện tại và cách xử lý validator. Xác nhận nhiều chuỗi lỗi của validator được biểu diễn như thế nào, sau đó triển khai để hành vi hoàn chỉnh có một mục HelperText riêng cho mỗi chuỗi lỗi được trả về và xác minh hành vi của DatePicker.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100