# PR: GitHub連携サイドバーの遷移/実行分離 と ADR-0007 完全移行方針への更新#288
Conversation
# PR: GitHub連携サイドバーの遷移/実行分離 と ADR-0007 完全移行方針への更新
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (4)
📝 WalkthroughWalkthroughThis PR updates ADR 0007 to document the confirmed adoption of OpenAPI→TypeScript type generation with full frontend DTO migration, specifying the Phase 0–3 roadmap and detailed risk assessment. It also refactors the GitHub連携 sidebar feature to separate navigation from API invocation: the sidebar item becomes a pure link, while the run request moves to a sub-panel button. ChangesADR 0007: OpenAPI TypeScript Codegen Decision
GitHub Link Sidebar Navigation Refactoring
🎯 2 (Simple) | ⏱️ ~12 minutes
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
概要
2 つの独立した変更を含む。
buttonから、画面遷移に徹するNavLinkへ変更。連携の実行はサブパネル内の「連携実行」ボタンに分離した。1. GitHub連携サイドバーの責務分離
背景・課題
従来はサイドバーの「GitHub連携」項目クリックがそのまま連携 API(
/api/github-link/run)をトリガーしていた。単に画面を見たいだけの遷移でも毎回連携リクエストが飛ぶため、不要なリクエストの温床になっていた。変更内容
frontend/src/components/AuthenticatedLayout.tsxbutton(triggerGitHubLink呼び出し)→NavLink(/github_linkへ遷移のみ)に変更。useLocationの手動比較からNavLinkのisActiveに置き換え(useLocationimport 削除)。テスト
frontend/e2e/github-link.spec.tsrunCalled === falseを assert)。frontend/e2e/navigation.spec.ts2. ADR-0007 の方針更新
OpenAPI → TypeScript 型生成について、当初の「Phase 1 パイロットの結果を見て採用判断」「FE 独自名は alias で温存する折衷案」から、手書き DTO 型を全廃し生成物へ完全移行する方針へ更新した。リリース前で呼び出し側 rename コストが低いことが判断根拠。
主な追記:
CareerResumeResponse→ResumeResponse等、呼び出し側ごと BE 名へ rename する。response_model未設定エンドポイント(実測 40 中 14)の棚卸し・schema 化・付与を完全移行の前提として内包。-Input/-Output分裂・optional/required の解釈ズレ・新規 schema 命名規約の論点を追加。Proposed据え置き(Phase 0 + Phase 1 がmake cigreen かつ CI ドリフト検知が機能した時点でAcceptedに昇格)。確認事項
make cinpm run test:e2e(サイドバー/ナビゲーション変更のため必須)Summary by CodeRabbit
Improvements
Tests
Documentation