Skip to content

LineTypeがSubwayの場合にEMAスムージングを無効化する - #5661

Merged
TinyKitten merged 3 commits into
devfrom
claude/review-sgd-algorithm-R2vYX
Mar 24, 2026
Merged

TinyKitten merged 3 commits into
devfrom
claude/review-sgd-algorithm-R2vYX

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Mar 24, 2026 •

Copy link
Copy Markdown
Member

https://claude.ai/code/session_01JU67LRYTFiwHjDt9jXMQCb

Summary by CodeRabbit

リリースノート

  • バグ修正
    • 地下鉄ラインでの位置情報トラッキング処理を最適化し、より正確な位置情報取得を実現しました。

@github-actions github-actions Bot added the react label Mar 24, 2026
@coderabbitai

coderabbitai Bot commented Mar 24, 2026 •

Copy link
Copy Markdown
Contributor

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: 855f357a-8d9a-4ff1-ade7-5c2c84cb5b27

📥 Commits

Reviewing files that changed from the base of the PR and between 71a826d and 75a9ffb.

⛔ Files ignored due to path filters (1)
  • package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (1)
  • src/store/atoms/location.ts

📝 Walkthrough

ウォークスルー

setLocation関数が地球交通のlineTypeをstationState経由でグローバルstoreから読み込み、lineType === LineType.Subwayの場合にskipSmoothingを導出するよう修正されました。前回の位置情報が存在する場合、EMA座標スムージングロジックはskipSmoothingがfalseの場合のみ実行されます。

変更内容

コホート / ファイル(s) 概要
位置情報スムージング条件分岐
src/store/atoms/location.ts
setLocation関数にスムージング条件を追加。stationStateから現在の路線型を読み込み、地下鉄路線の場合はEMAスムージングをスキップする条件分岐を実装。初期ケース(前回位置情報なし)の動作は変わらず、制御フローのみ更新。

推定コードレビュー難易度

🎯 2 (Simple) | ⏱️ ~12 minutes

ポエム

🐰✨ 地下鉄のレール、スムーズに走らず、
スキップして進む、新しい道筋。
ストアから引く線の種、
EMAよさらば、賢い迂回路。
位置情報、軽く、速く、
ウサギも駅も、今日も元気!🚊

🚥 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タイトルは「LineTypeがSubwayの場合にEMAスムージングを無効化する」で、変更内容の主要な目的を明確に表現している。
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
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/review-sgd-algorithm-R2vYX

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

@TinyKitten
TinyKitten merged commit 22720f1 into dev Mar 24, 2026
6 checks passed
@TinyKitten
TinyKitten deleted the claude/review-sgd-algorithm-R2vYX branch March 24, 2026 10:49
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