Fix up all the CodeRabbit's review point among the repo #13
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.42) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 331 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.347
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #13"
general
weight: 0.35
logica0419
This pull request enhances error handling and internationalization for the Penpot integration and the Key Visual component. The most significant changes include improved error messages and security checks in the Penpot API wrapper, as well as the addition of locale-aware accessible labels for the Key Visual, making the UI more accessible and testable in multiple languages.
Penpot API improvements:
Improved error messages in
runComposeto include command, exit code, and output details for easier debugging (design/scripts/lib/docker.ts).Refactored authentication header logic into a dedicated
authHeadersmethod for better code reuse and clarity (design/scripts/lib/penpot.ts) [[1]](diffhunk://#diff-ce6d3159c2d83359b543ed6ffce2f33af06248b0b405b02520c89b2837dc1a70R35-R43) [[2]](diffhunk://#diff-ce6d3159c2d83359b543ed6ffce2f33af06248b0b405b02520c89b2837dc1a70R112-R123).Added a security check to ensure asset downloads are from the correct origin and changed redirect handling to be stricter for downloads (
design/scripts/lib/penpot.ts).Key Visual component internationalization and accessibility:
Added
localeprop toKeyVisualandKeyVisualFramecomponents, and used it to provide locale-specific accessible labels viaaria-label(src/components/2027/home/key-visual/index.astro,KeyVisualFrame.astro,home/index.astro) [[1]](diffhunk://#diff-1d9b513484daf262fbf82170456a931080d6fbceda4f26f723129e5325b53867L33-R33) [[2]](diffhunk://#diff-759230e0279aed7003780149e30ce03e183869ddb6524a6246a0a31618079868R2-R17) [[3]](diffhunk://#diff-a8bc513ef5c82911005ec82f50ad96468bacc6048fbf950ff0f87cbebc30a3f4R2-R8) [[4]](diffhunk://#diff-a8bc513ef5c82911005ec82f50ad96468bacc6048fbf950ff0f87cbebc30a3f4R19-R34) [[5]](diffhunk://#diff-a8bc513ef5c82911005ec82f50ad96468bacc6048fbf950ff0f87cbebc30a3f4L38-R61).Updated Storybook stories to allow interactive selection of
localefor testing (index.stories.tsx) [[1]](diffhunk://#diff-6a57bfe9c6810a74cb8c6f0b080d6b37f2694cb8c02791bb3e70ce412837302dR1) [[2]](diffhunk://#diff-6a57bfe9c6810a74cb8c6f0b080d6b37f2694cb8c02791bb3e70ce412837302dR21-R26).<!-- This is an auto-generated comment: release notes by coderabbit.ai -->
Summary by CodeRabbit
新機能
キービジュアルのアクセシビリティラベルが、選択した言語(英語・日本語)に応じて表示されるようになりました。
キービジュアルの表示言語を切り替えて確認できるようになりました。
デザインファイルをプロジェクト名とファイル名から直接検索できるようになりました。
バグ修正
デザインファイル取得時の認証処理を改善しました。
ファイル取得エラーに、終了コードや実行結果の詳細が表示されるようになりました。
外部サイトへの不正なリダイレクトを防止しました。
コマンド実行時やエラー表示でパスワードが秘匿されるようになりました。
* 接続先URLの検証を強化しました。
<!-- end of auto-generated comment: release notes by coderabbit.ai -->