Skip to content

位置情報の許容最大精度を引き下げる - #6098

Merged
TinyKitten merged 1 commit into
devfrom
feature/decrease-max-permit-accuracy
Jun 2, 2026
Merged

TinyKitten merged 1 commit into
devfrom
feature/decrease-max-permit-accuracy

Conversation

@TinyKitten

@TinyKitten TinyKitten commented Jun 2, 2026 •

Copy link
Copy Markdown
Member

概要

位置情報の許容最大精度を 4000 から 1500 に引き下げました。

変更の種類

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

変更内容

  • MAX_PERMIT_ACCURACY を 1500 に変更し、許容する位置情報精度の上限を厳しくしました。
  • 位置精度が低い状態で現在地判定が進むリスクを抑えます。

テスト

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

実行結果:

  • npm run lint: passed (biome check ./src, 519 files)
  • npm test: Windows cmd では TZ=UTC の解釈で失敗したため、同等条件として set TZ=UTC&& npx jest を実行し、159 suites / 1725 tests passed
  • npm run typecheck: passed (tsc --noEmit)

関連Issue

なし

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

UI変更なし

Summary by CodeRabbit

リリースノート

  • バグ修正
    • バックグラウンド位置情報更新における精度基準を厳格化しました。これにより、より正確な位置データの取得が可能になります。

@coderabbitai

coderabbitai Bot commented Jun 2, 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: 1bc701dc-8205-4347-a400-0a19e0d1e236

📥 Commits

Reviewing files that changed from the base of the PR and between 7cfdb9c and 61d5cf3.

📒 Files selected for processing (1)
  • src/constants/location.ts

📝 Walkthrough

Walkthrough

バックグラウンド位置更新の精度上限値 MAX_PERMIT_ACCURACY を 4000 から 1500 に変更します。これにより許可される最大精度(許容誤差)の閾値がより厳しくなります。

Changes

位置情報精度定数の更新

レイヤー / ファイル 概要
精度閾値定数
src/constants/location.ts
MAX_PERMIT_ACCURACY 定数値が 4000 から 1500 に引き下げられ、バックグラウンド位置更新の許容精度がより厳しくなります。

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Poem

🐰 定数ひとつ、値を変えれば
位置の精度、より厳しく
4000 から 1500 へ
小さな変更、大きな差 ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed プルリクエストのタイトルは、変更の主要点である位置情報の許容最大精度の引き下げを明確に示しており、チェンジセットの主要な変更と完全に関連しています。
Description check ✅ Passed プルリクエストの説明は、テンプレートの全ての主要セクションを含み、変更内容・変更の種類・テスト実行結果を十分に記載しており、大部分が完成しています。
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 feature/decrease-max-permit-accuracy

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

@github-actions github-actions Bot added the react label Jun 2, 2026
@TinyKitten TinyKitten self-assigned this Jun 2, 2026
@TinyKitten
TinyKitten marked this pull request as ready for review June 2, 2026 12:19
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