Repository navigation
直近で発車した駅を接近判定の対象から除外して発車直後の「まもなく当該駅」誤表示を防ぐ - #6138
Merged
Merged
Conversation
Contributor
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
Changes発車駅除外ロジックと検証
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Suggested labels
Poem
🚥 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)
Comment |
This was referenced Jun 9, 2026
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.
概要
GPS現在地基準で接近駅を算出する
useApproachingStationで、直近に発車した(到着済みの現在)駅が接近候補に残っていたため、発車直後にまだ当該駅の接近圏内にいる間「まもなく(発車した駅)」と誤表示されていた問題を修正します。例: 浅草線で泉岳寺方面選択時、五反田を発車した直後に「まもなく五反田」と表示されていたものを、正しく次の停車駅「まもなく高輪台」と表示します。変更の種類
変更内容
useApproachingStationの接近候補(停車駅)から、直近で発車した現在駅(stationState.station)をid/groupIdで除外stationの値が古い場合でも安全)。既存の「最寄り停車駅を通過したら次駅へ」距離比較による自己修復も従来どおり機能するuseApproachingStation.test.tsxに「直近で発車した駅は接近判定の対象から除外する」ケースを追加テスト
npm run lintが通ることnpm testが通ること(164 suites / 1778 tests 全パス)npm run typecheckが通ること関連Issue
スクリーンショット(任意)
Generated by Claude Code
Summary by CodeRabbit
バグ修正
テスト