patternfly / patternfly/patternfly-react
DatePicker - multiple validators should render separate helper texts
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 862
- フォーク
- 392
- 平均マージ
- 4日 8時間
- マージ済み PR(30日)
- 9
説明
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?
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
まず、DatePickerのエントリーポイントと、現在のHelperTextのレンダリングおよびvalidatorの処理を確認します。複数のvalidatorエラー文字列がどのように表現されているかを確認し、その後、返されたエラー文字列ごとに個別のHelperText項目が1つずつ表示される完成後の動作にして、DatePickerの動作を検証します。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- react, typescript
- 領域
- frontend
- issue の種類
- 機能追加
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 活発さ
- 停滞
- 明瞭さ
- おおむね明確
- 初心者へのやさしさ
- 35/100