Repository navigation
泉岳寺で京急本線のナンバリングが表示されないバグを修正 - #5830
Merged
Merged
Conversation
Co-Authored-By: Claude Opus 4.7 (1M context) <[email protected]>
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 (3)
📝 WalkthroughWalkthrough駅番号と色の選択ロジックを改善し、ターゲット駅の番号がルート内のラインシンボルとマッチするものを計算。定数セットに京急マークシェイプを追加。ラインマーク取得時のフォールバック処理を改善。 Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
TinyKitten
added a commit
that referenced
this pull request
Apr 17, 2026
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>
4 of 9 tasks
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.
概要
泉岳寺駅の路線一覧で京急本線のナンバリングアイコンだけが表示されない不具合を修正。
useGetLineMarkが駅のstationNumbersに当該路線のシンボルを含まないケースでsignShapeがundefinedになり、TransferLineMarkの{mark.signShape && <NumberingIcon/>}ガードに引っかかってアイコンが描画されていなかった。変更の種類
変更内容
src/hooks/useGetLineMark.ts:numberingIndex === -1(駅のstationNumbersに該当路線のシンボルが無い)場合、路線自身のlineSymbols[0]のsymbol/shapeにフォールバックするよう変更。これで京急本線のように駅側でナンバリングが欠落している路線でも、路線ロゴ(signPath)が描画されるようになる。src/components/CommonCard.tsx:targetStationNumber/targetStationColorをstationNumbers[0]決め打ちではなく、line.lineSymbolsに一致するstationNumberをfindで引くように変更。泉岳寺のようにstationNumbersに別路線(都営浅草線の A07)しか入っていない場合、京急本線のカードへ誤ったナンバーや色が流れ込むのを防ぐ。src/constants/numbering.ts:ROUND_SHAPESにMARK_SHAPE.KEIKYUを追加。TransferLineMarkのisRadiusShape判定で京急形状を円形扱いにしてアウトラインを正しく描く。テスト
npm run lintが通ることnpm testが通ることnpm run typecheckが通ること関連Issue
スクリーンショット(任意)
Summary by CodeRabbit
バグ修正
新機能