Add test results ID 635-712#172
Conversation
11b44e6 to
5900ef7
Compare
mehm8128
left a comment
There was a problem hiding this comment.
読んでみて、ちょっと気になったところをコメントしてみました。
動作自体は問題なく動作していそうなのと、早めにマージできていた方がASテスト結果のレビューが楽になりそうなので、対応していただけるところは対応していただき次第、マージしてしまうといいかもしれません。
| if (criteria[criterionId]) { | ||
| return criterionId; | ||
| } | ||
| const normalizedId = criterionId.replace(/\s*(\((参考)\)|(参考))$/u, ''); |
There was a problem hiding this comment.
半角括弧と全角括弧の「参考」を空文字で置換したいだけであれば、グルーピングに使われている括弧が1つ不要かもしれません。
| const normalizedId = criterionId.replace(/\s*(\((参考)\)|(参考))$/u, ''); | |
| const normalizedId = criterionId.replace(/\s*(\(参考\)|(参考))$/u, ''); |
There was a problem hiding this comment.
リファクタできそうという点で、念の為コメントさせていただきます。
contents.lengthで分岐していますが、<th>についているscope属性がrowかrowgroupかという点を除けば他は同じように見えたので、mapでループしている方に統一すれば、そのままlengthが1の場合にも対応できて共通化できそうです(つまり、201~261行目を消して、必要に応じてscope属性を条件分岐するだけで正しく動きそうということです)。
| criteria: | ||
| - 1.3.1 | ||
| - 4.1.2 | ||
| criteria: [] |
There was a problem hiding this comment.
一部、元々データが入っていたけど空配列になってしまっているcriteriaがあるようなのですが、これは問題ありませんか?
| {Array.isArray(result.environment_type) | ||
| ? result.environment_type.map((item: string) => ( | ||
| <li style={listItemStyle}>{item}</li> | ||
| )) | ||
| : result.environment_type && ( | ||
| <li style={listItemStyle}>{result.environment_type}</li> | ||
| )} |
There was a problem hiding this comment.
将来的にでも、resultsを取得するタイミングでenvironment_typeを配列に変換しておけると、1つの場合も複数の場合も空の場合も全部string[]型で扱うことができて楽かもしれません。
ID 561以降のテスト結果で、閲覧環境が空欄のところを補完
ID561以降の視覚閲覧環境のテスト結果のレビューをし、コメントを記載
…lize environment_type - utils.ts: remove unnecessary capture group in getCriterionLookupId regex (comment 1) - results/[id].astro: unify contents.length branch into single map with scope row/rowgroup (comment 2) - results/[id].astro: normalize environment_type to string[] when loading results (comment 4)
|
いただいたレビューの提案を反映しました。 |
|
ありがとうございます、問題ないと思いました。 |
… results.yaml for clarity
…fo into issue-167-add-results-581-674
… and reviewer comments. Changed environment_type from 音声閲覧環境 to 視覚閲覧環境 in results.yaml and added relevant reviewer comments for clarity.
…環境 and add reviewer comments for results IDs 707-712.
…, and 707-712, and enhance reviewer comments with proper formatting.
概要
Issue #167 の続きとして、テスト結果を追加
変更内容
|-形式)nullの互換性を改善(空フィールドに統一)関連