Skip to content

DevOverlayの速度表示もrawLocationの生の測位値から取得するよう変更 - #6119

Merged
TinyKitten merged 1 commit into
devfrom
claude/devoverlay-raw-location-data-Zxx5O
Jun 3, 2026
Merged

TinyKitten merged 1 commit into
devfrom
claude/devoverlay-raw-location-data-Zxx5O

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jun 3, 2026 •

Copy link
Copy Markdown
Member

概要

DevOverlay(開発者向け診断オーバーレイ)の速度表示を、EMA スムージング・速度フィルタ後の locationAtom ではなく、フィルタ前の生の測位値である rawLocationAtom から取得するように変更しました。これまで生データだったのは精度(accuracy)のみで、速度(CURRENT SPEED)は補正後の値を表示していたため、診断用途に合わせて速度も生の値を常に表示するようにします。

変更の種類

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

変更内容

  • DevOverlay.tsx の速度参照元を locationAtom から rawLocationAtom に変更(rawLocationAtom は handleTrackingLocation がフィルタ前に記録する生の LocationObject で、速度を含む)。
  • 速度・精度ともに生の測位値から読む旨にコメントを更新。
  • 不要になった locationAtom の import を削除。
  • DevOverlay.test.tsx の速度系テストを rawLocation 駆動に更新し、既定の rawLocation に speed を追加。

テスト

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

npx jest src/components/DevOverlay.test.tsx(31 件成功)、npm run typecheck(エラーなし)、biome ci(対象2ファイル・指摘なし)を実行済み。

関連Issue

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


Generated by Claude Code

Summary by CodeRabbit

リリースノート

  • Bug Fixes

    • 速度・精度表示のデータ参照元を変更し、より直接的なセンサーデータを使用するように改善しました。
  • Tests

    • 表示機能のテストケースをデータ参照元の変更に対応させました。

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

coderabbitai Bot commented Jun 3, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 638d711a-0d30-409d-902c-95e976cc2733

📥 Commits

Reviewing files that changed from the base of the PR and between 5062a62 and b647ac1.

📒 Files selected for processing (2)
  • src/components/DevOverlay.test.tsx
  • src/components/DevOverlay.tsx

📝 Walkthrough

Walkthrough

DevOverlay コンポーネントが速度表示に使用するアトムの参照元をフィルタ済み locationAtom から生データの rawLocationAtom に変更。対応するテストケースを更新し、入力データの置き場所を合わせた。

Changes

速度表示の参照元切り替え

Layer / File(s) Summary
コンポーネント実装の原子切り替え
src/components/DevOverlay.tsx
locationAtom の import を削除し、rawLocationAtom から速度を直接取得。rawLocationAtom が生の測位情報で精度・棄却・補正の影響を含む旨をコメントで明確化。
テストケースの参照元対応
src/components/DevOverlay.test.tsx
setupAtomValues の既定値とコメントを更新。速度が null・負・ゼロ・小数値の各テストケースで入力を location.coords.speed から rawLocation.coords.speed に切り替え。

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • TrainLCD/MobileApp#6103: 同じく DevOverlay の速度・精度参照元を locationAtom から rawLocationAtom に切り替える主要 PR。

Suggested labels

react

Poem

🐰 Raw か Filtered か、迷いし速度よ
rawLocation へと流れ着きぬ
テストも追いて、その先へ
生の値、正確に、駆け行くまで

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed PR タイトルは「DevOverlayの速度表示もrawLocationの生の測位値から取得するよう変更」で、変更の主要な目的を正確に要約しており、変更内容と完全に一致しています。
Description check ✅ Passed PR 説明は必須セクション(概要、変更の種類、変更内容、テスト)をすべて完備し、詳細で具体的な内容を含んでいます。テストチェックリストもすべて実行済みであることを記載しています。
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/devoverlay-raw-location-data-Zxx5O

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

@TinyKitten
TinyKitten merged commit 4c578fb into dev Jun 3, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the claude/devoverlay-raw-location-data-Zxx5O branch June 3, 2026 23:19
@TinyKitten TinyKitten mentioned this pull request Jun 3, 2026
4 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