← Back to Pull requests

Fix up all the CodeRabbit's review point among the repo #13

Closed
unknown closed this pull request without merging on Sep 02, 2026 21:35 UTC
View on GitHub
unknown unknown commented on Sep 02, 2026 20:11 UTC
Author

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 runCompose to include command, exit code, and output details for easier debugging (design/scripts/lib/docker.ts).
Refactored authentication header logic into a dedicated authHeaders method 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 locale prop to KeyVisual and KeyVisualFrame components, and used it to provide locale-specific accessible labels via aria-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 locale for 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 -->

Diff: 331 lines (+248 / -83) across 4 files Reviewer: logica0419 Review duration: 84m
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
0.42
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
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
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 42.1% (MEDIUM) · Higher = larger blast radius
42.1%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 16.6% · Safe to merge
16.6%