Skip to content

Add test results ID 635-712#172

Merged
nishimotz merged 23 commits into
masterfrom
issue-167-add-results-581-674
Mar 11, 2026
Merged

Add test results ID 635-712#172
nishimotz merged 23 commits into
masterfrom
issue-167-add-results-581-674

Conversation

@nishimotz

@nishimotz nishimotz commented Dec 3, 2025

Copy link
Copy Markdown
Collaborator

概要

Issue #167 の続きとして、テスト結果を追加

  • ID 635から674まで(閲覧環境の解答欄なし)
  • ID 675から712まで(閲覧環境の解答欄あり)

変更内容

  • テスト結果を追加
  • マルチラインデータの書式を統一(|-形式)
  • nullの互換性を改善(空フィールドに統一)
  • 閲覧環境に関する過去データの機械的なバックフィル
  • Astro 移行を取り込み済み

関連

@nishimotz nishimotz self-assigned this Dec 3, 2025
@nishimotz nishimotz changed the title Add test results ID 581-674 and unify multiline data format (Issue #167) Add test results ID 635-674 and unify multiline data format (Issue #167) Dec 10, 2025
@nishimotz nishimotz mentioned this pull request Jan 7, 2026
@nishimotz nishimotz force-pushed the issue-167-add-results-581-674 branch from 11b44e6 to 5900ef7 Compare January 14, 2026 01:38
@nishimotz nishimotz changed the title Add test results ID 635-674 and unify multiline data format (Issue #167) Add test results ID 635- Jan 14, 2026

@mehm8128 mehm8128 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

読んでみて、ちょっと気になったところをコメントしてみました。
動作自体は問題なく動作していそうなのと、早めにマージできていた方がASテスト結果のレビューが楽になりそうなので、対応していただけるところは対応していただき次第、マージしてしまうといいかもしれません。

Comment thread src/lib/utils.ts Outdated
if (criteria[criterionId]) {
return criterionId;
}
const normalizedId = criterionId.replace(/\s*(\((参考)\)|(参考))$/u, '');

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

半角括弧と全角括弧の「参考」を空文字で置換したいだけであれば、グルーピングに使われている括弧が1つ不要かもしれません。

Suggested change
const normalizedId = criterionId.replace(/\s*(\(()\)|)$/u, '');
const normalizedId = criterionId.replace(/\s*(\(\)|)$/u, '');

Comment thread src/pages/results/[id].astro Outdated

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

リファクタできそうという点で、念の為コメントさせていただきます。
contents.lengthで分岐していますが、<th>についているscope属性がrowrowgroupかという点を除けば他は同じように見えたので、mapでループしている方に統一すれば、そのままlengthが1の場合にも対応できて共通化できそうです(つまり、201~261行目を消して、必要に応じてscope属性を条件分岐するだけで正しく動きそうということです)。

Comment thread src/content/tests/tests.yaml Outdated
criteria:
- 1.3.1
- 4.1.2
criteria: []

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

一部、元々データが入っていたけど空配列になってしまっているcriteriaがあるようなのですが、これは問題ありませんか?

Comment thread src/pages/results/[id].astro Outdated
Comment on lines +195 to +201
{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>
)}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

将来的にでも、resultsを取得するタイミングでenvironment_typeを配列に変換しておけると、1つの場合も複数の場合も空の場合も全部string[]型で扱うことができて楽かもしれません。

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)
@nishimotz

Copy link
Copy Markdown
Collaborator Author

いただいたレビューの提案を反映しました。

@mehm8128

Copy link
Copy Markdown
Member

ありがとうございます、問題ないと思いました。

… 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.
@nishimotz nishimotz changed the title Add test results ID 635- Add test results ID 635-712 Mar 11, 2026
@nishimotz nishimotz merged commit 291de46 into master Mar 11, 2026
5 checks passed
@nishimotz nishimotz deleted the issue-167-add-results-581-674 branch March 11, 2026 05:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants