feat: 位置履歴自動記録とPush通知システムの実装#18
Merged
at-ok merged 1 commit intoNov 19, 2025
Merged
Conversation
## 実装内容 ### データベース - location_historyテーブルの作成(マイグレーション) - PostGIS対応の地理的インデックス - 速度・方向・精度フィールドの追加 - 位置履歴統計計算関数(get_location_stats) - リプレイ用パス取得関数(get_location_path) ### 位置履歴自動記録 - useLocationフックの拡張 - 速度自動計算(Haversine距離公式) - 方向自動計算(方位角計算) - 位置更新時の自動履歴保存 - enableHistoryオプションでオン/オフ切り替え ### Push通知システム - useNotificationsカスタムフック作成 - Web Push API統合 - 通知権限管理 - 8種類の通知タイプ定義 - バイブレーションパターンのカスタマイズ - Service Worker通知ハンドラ実装 - 8種類の通知テンプレート機能 ### Service Worker - Push通知イベントハンドラ - 通知クリックイベントハンドラ - バックグラウンド同期準備 - キャッシュ戦略の改善 ### テスト - useNotificationsの包括的テスト(16テスト) - useLocationテストの更新(Supabase統合) - 全86テスト成功(100%) ## 影響範囲 - hooks/useLocation.ts: 位置履歴記録機能追加 - hooks/useNotifications.tsx: 新規作成 - public/sw.js: Push通知対応 - supabase/migrations/: location_historyテーブル追加 - PROGRESS.md: Phase 5の記録追加
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
実装内容
データベース
位置履歴自動記録
Push通知システム
Service Worker
テスト
影響範囲