Repository navigation
新宿・代々木など他路線レコードが最寄り駅の場合に大江戸線の方面が選べなくなる不具合をgroupIdフォールバックで修正 - #6362
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Kkb6NJLeyzqsMd9QpJi47N
|
Warning Review limit reachedYou’ve reached a temporary PR review limit under our Fair Usage Limits Policy. Next review available in: 42 minutes Your organization has reached its usage spending cap. Adjust your spending cap in the billing tab. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
@coderabbitai review |
✅ Action performedReview finished.
|
概要
新宿駅・代々木駅などで都営大江戸線を選択した際、行先選択モーダルに方面ボタンが1つも表示されず方向が選べなくなる不具合を修正します。
#6349 (95de837) で
useBoundsの大江戸線分岐の現在駅位置特定が groupId 一致 → id 一致に変更されましたが、行先選択モーダルには選択した路線(大江戸線)の駅リストが渡される一方、現在駅は最寄り駅として検出されたレコードのままです。新宿・代々木ではこれが JR など他路線の駅レコードになるため、その id は大江戸線の駅リストに存在せずfindIndexが -1 → bounds が[[], []](空)になっていました。都庁前のような大江戸線単独駅では id が一致するため発症しません。変更の種類
変更内容
src/hooks/useBounds.ts: 大江戸線分岐で現在駅をまず id 一致で駅リストから探し(都庁前の外回り/内回り区別は維持)、見つからない場合のみ groupId 一致で大江戸線側の駅に読み替えるフォールバックを追加。src/hooks/useBounds.test.tsx: JR新宿レコードが現在駅の場合に inbound(大門・両国)/ outbound(都庁前外回り・光が丘)が正しく返ることを検証する回帰テストを追加。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ることnpm testは 185 スイート / 1959 件すべてパス(新規回帰テスト1件を含む)。関連Issue
スクリーンショット(任意)
Generated by Claude Code