# PR: GitHub連携サイドバーの遷移/実行分離 と ADR-0007 完全移行方針への更新#287
Merged
Conversation
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
概要
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(サイドバー/ナビゲーション変更のため必須)