Skip to content

駅検索で同じグループでも名前が異なる場合は別の駅として扱うように修正 - #5317

Merged
TinyKitten merged 1 commit into
devfrom
fix/name-search
Feb 17, 2026
Merged

TinyKitten merged 1 commit into
devfrom
fix/name-search

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Feb 17, 2026 •

Copy link
Copy Markdown
Member

Co-Authored-By: Claude Opus 4.6 [email protected]

Summary by CodeRabbit

バグ修正

  • ステーション検索モーダルにおける駅の重複排除処理を改善しました。同一グループに属する複数の駅がより正確に処理されるようになります。

@TinyKitten TinyKitten self-assigned this Feb 17, 2026
@github-actions github-actions Bot added the react label Feb 17, 2026
@coderabbitai

coderabbitai Bot commented Feb 17, 2026 •

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉


📝 Walkthrough

ウォークスルー

駅の一意キー生成ロジックを変更し、getStationUniqueKey関数でgroupIdが存在する場合に駅名を含めるようにしました。キーがString(station.groupId)から${station.groupId}|${station.name}に変更され、groupIdでグループ化する際の重複排除方法が改善されました。

変更内容

コホート / ファイル(s) 概要
駅の一意キー生成
src/components/StationSearchModal.tsx
getStationUniqueKey関数でgroupId存在時の返り値をgroupIdと駅名の組み合わせに変更し、より精密な重複排除を実装。

推定レビュー工数

🎯 2 (Simple) | ⏱️ ~8 minutes

関連する可能性のあるPR

提案されるラベル

react

詩

🐰✨ グループIDだけじゃ足りなくて
駅の名前も一緒に添えて
重複をスッキリ解決!
同じ名前も別々に輝く
より正確な検索へ🚂🎉

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed PR タイトルは変更内容を正確に反映しており、同じグループ内でも異なる名前の駅を別として扱う変更を明確に説明しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch fix/name-search

Comment @coderabbitai help to get the list of available commands and usage tips.

@TinyKitten
TinyKitten merged commit a316130 into dev Feb 17, 2026
5 checks passed
@TinyKitten
TinyKitten deleted the fix/name-search branch February 17, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant