Skip to content

乗換案内の対象駅を表示用次駅に揃えて接近中の駅名と乗換路線の不一致を解消 - #6360

Merged
TinyKitten merged 1 commit into
devfrom
claude/tts-station-name-mismatch-5371nz
Jul 5, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/tts-station-name-mismatch-5371nz

Conversation

@TinyKitten

Copy link
Copy Markdown
Member

概要

TTS の「まもなく」(ARRIVING) 案内で、駅名は useDisplayNextStation(接近中は GPS 基準の接近駅)を読み上げる一方、乗換路線は useTransferLines 経由で useNextStation(路線順の次駅)を参照しており、到着判定の取りこぼしで stationState が古くなると「まもなく A です。(B 駅の乗換路線)はお乗り換えです」という不整合が起き得た。乗換案内の対象駅を表示用次駅に揃えて解消する。

変更の種類

  • バグ修正
  • 新機能
  • リファクタリング
  • ドキュメント
  • CI/CD
  • その他

変更内容

  • useTransferLines の未到着時の対象駅を useNextStation() から useDisplayNextStation() に変更し、ヘッダー・TTS が「まもなく」で示す駅と乗換案内の対象駅を一致させた
  • 同種のズレは次々駅案内で既に useAfterNextStation が useDisplayNextStation 起点に修正済みで、useTransferLines だけが残っていた
  • TTS に加えて、接近中の乗換ボード表示(Transfers / LineBoardLED 等)も同じ駅の乗換路線を表示するようになる
  • useTransferLines.test.tsx のモックを useDisplayNextStation に差し替え、接近中は表示用次駅を対象にする意図をテスト名とコメントで明文化

テスト

  • npm run lint が通ること
  • npm test が通ること
  • npm run typecheck が通ること

npm test は 185 suites / 1958 tests 全通過。

関連Issue

スクリーンショット(任意)


Generated by Claude Code

@TinyKitten TinyKitten self-assigned this Jul 5, 2026
@coderabbitai

coderabbitai Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

You’ve reached a temporary PR review limit under our Fair Usage Limits Policy.

Your recent review volume is higher than typical usage, so adaptive limits are currently applied.

Next review available in: 39 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 @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

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 configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 43c8bdc0-c1b2-41aa-8745-3bbdf24faf70

📥 Commits

Reviewing files that changed from the base of the PR and between a6f6cba and ff760ea.

📒 Files selected for processing (2)
  • src/hooks/useTransferLines.test.tsx
  • src/hooks/useTransferLines.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/tts-station-name-mismatch-5371nz

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

@github-actions github-actions Bot added the react label Jul 5, 2026
@TinyKitten

Copy link
Copy Markdown
Member Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Jul 5, 2026 •

Copy link
Copy Markdown
Contributor
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@TinyKitten
TinyKitten merged commit ba36501 into dev Jul 5, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the claude/tts-station-name-mismatch-5371nz branch July 5, 2026 11:56
@TinyKitten TinyKitten mentioned this pull request Jul 5, 2026
5 of 9 tasks
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.

2 participants