Commit Graph

57 Commits

Author SHA1 Message Date
harukin-expo-dev-env
1d57f2a5c6 fix: 通知折りたたみ時も走行区間を表示
- contentTextにbody全行を全角スペース区切りで表示(折りたたみ時も見える)
- pollTrainPositionの変化なしスキップを除去(常に通知を更新)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 02:54:24 +00:00
harukin-expo-dev-env
d3e4b173c7 fix: StationNumber: null のスポットによるクラッシュを修正
- CarouselBox: key と keyExtractor を null セーフに
- StationPagination: data が空の場合の early return と optional chaining
- FixedStationBox / FixedTrainBox / ListViewItem: StationNumber?.slice() に修正

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 02:11:17 +00:00
harukin-expo-dev-env
dc3d250466 fix: 次駅表示をDirection非依存に修正(JS/Kotlin両方)
- JS側: currentPosition[0]ではなくstopStationIDList上のmax(idx0,idx1)で進行方向の駅を判定
- Kotlin側: pollRunnable復活、allStationsのダイヤ順でmaxOf(idx0,idx1)で向かう駅を判定
- Kotlin at-station: 停車中は現在駅を表示(JS側と統一)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-24 01:39:31 +00:00
harukin-expo-dev-env
3f6b3cfcfb fix: API呼び出しにタイムアウトを追加し、エラーハンドリングを改善 2026-03-24 00:19:19 +00:00
harukin-expo-dev-env
2cd5142262 fix: バックグラウンドでのデータ取得を継続し、列車追跡の終了条件をフォアグラウンドに依存させるよう修正 2026-03-23 15:52:23 +00:00
harukin-expo-dev-env
fb89a2b334 fix: Live Activity関連の不要なコードを削除し、トレイン情報の構築を最適化 2026-03-23 14:54:56 +00:00
harukin-expo-dev-env
a66af59438 fix: Live Activityの定期的な更新を追加し、selectedTrainの再計算を60秒ごとに実施 2026-03-23 11:45:08 +00:00
harukin-expo-dev-env
04d0f50b99 fix: Live Activityの自動開始条件をselectedTrainに依存させるように修正 2026-03-23 11:33:36 +00:00
harukin-expo-dev-env
91470b5db8 fix: LiveActivityButtonを削除し、FixedStationおよびFixedTrainコンポーネントでの自動Live Activity開始を実装 2026-03-23 11:25:29 +00:00
harukin-expo-dev-env
ffcc6ff660 fix: 列車通知機能に路線色を追加し、進捗スタイルのセグメントに対応 2026-03-23 10:55:14 +00:00
harukin-expo-dev-env
681b12b622 fix: 通知機能のエラーハンドリングを改善し、Androidの通知権限を要求する処理を追加 2026-03-23 09:37:15 +00:00
harukin-expo-dev-env
13f2c4de7a feat: 駅固定モード バックグラウンド更新 + 通知書式改善
- 駅固定モードでもForeground Serviceのバックグラウンドポーリングを有効化
- pollStationTrains(): APIから遅延情報を取得し通知を自動更新
- テキスト書式を「00:00 特急 ○○号 ○○行 定刻」に変更
- StationTrainInfo に typeColor フィールド追加
- StationLockNotificationBuilder: 種別名にBackgroundColorSpan適用
- ExpoLiveActivityModule: 駅固定もMap引数方式に変更
- trainsJson/stationName をServiceに保存してバックグラウンドで使用

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-23 06:31:05 +00:00
harukin-expo-dev-env
9271629aa9 fix: ProgressStyle復元 + 進捗位置更新の修正
- ProgressStyle (Point/Segment) を復元して描画
- 停車駅のみPointを配置(通過駅はセグメントのみ)
- currentStationIndex の部分一致フォールバック追加
- currentPosition 依存を除去し train.Pos から直接計算
- bodyフォーマッタで currentStation の '~' 区間を正しく分離

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-23 05:44:30 +00:00
harukin-expo-dev-env
86a4428861 feat: 通知進捗バー再設計 - 全駅対応の進捗表示
- 進捗バー: 小●=通過駅, 大●=停車駅, 🚃=現在地
- タイトル: ○○号 ○○行き
- サブタイトル: 次は ●● / △△~△△間走行中
- StationEntry (name, isStop) で全駅リスト(通過含む)を通知に渡す
- TrainFollowNotificationBuilder: allStationsJson対応のProgressStyle
- LiveActivityForegroundService: バックグラウンドポーリングでも全駅インデックス計算
- FixedTrainBox/LiveActivityButton: allStations, currentStationIndex を計算・送信

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-03-23 05:01:55 +00:00
harukin-expo-dev-env
0a2333a201 feat: add Android notification permission handling and improve error logging for live notifications 2026-03-22 23:06:56 +00:00
harukin-expo-dev-env
39a5b33e77 feat: add station progress tracking and notification updates for train follow feature 2026-03-22 17:09:19 +00:00
harukin-expo-dev-env
777b5c8acb feat: add live activity notifications for train tracking and station locking
- Implemented ExpoLiveActivity module for Android to manage live notifications.
- Added foreground service for train tracking and station locking notifications.
- Updated app permissions to include POST_NOTIFICATIONS.
- Enhanced FixedStation and FixedTrain components to support live notifications.
- Introduced new notification builders for train and station activities.
- Updated useCurrentTrain and useNotifications hooks to manage live notification state.
- Added notification channel for live tracking in Android.
2026-03-22 16:15:48 +00:00
harukin-expo-dev-env
91cad9c2c8 Refactor code structure for improved readability and maintainability 2026-03-20 07:14:58 +00:00
harukin-expo-dev-env
10df37d0a2 feat: Expo SDK 52→53 upgrade + full dark mode support
- Upgrade Expo SDK 52→53 (React 18→19, RN 0.76→0.79)
- Remove deprecated packages (native-base, react-native-elements)
- Migrate to @rneui/themed 5.0.0 + modular vector icons
- Fix breaking changes: defaultProps, BackHandler, notifications, key props
- Add Babel plugin for font scaling (replaces Text.defaultProps)
- Configure expo-font for native font preloading
- Add complete dark mode theme system (lib/theme/)
  - AppThemeProvider + useThemeColors hook
  - Light/dark/fixed color token definitions
  - Migrate ~60 files across all screens to use theme colors
- Set userInterfaceStyle to "automatic" for system dark mode
2026-03-17 22:19:46 +00:00
harukin-expo-dev-env
676fbf7b64 feat: add nearest station tracking and display functionality 2026-03-14 13:55:05 +00:00
harukin-expo-dev-env
18979f2b24 第4弾 2025-12-05 08:13:40 +00:00
harukin-expo-dev-env
2ed8c17797 第三弾 2025-12-05 07:59:50 +00:00
harukin-expo-dev-env
4a964ea11c アプリUIの新型ドメインに移行 2025-11-29 13:09:47 +00:00
harukin-expo-dev-env
a6f2eb356b keyが不足している部分を対応 2025-11-05 03:20:13 +00:00
harukin-expo-dev-env
5800e0ae98 Androidで動きが不安定だったのを修正 2025-09-28 19:49:12 +00:00
harukin-expo-dev-env
83539d5df3 伊予大洲で表示に失敗していた問題を修正 2025-09-25 02:59:59 +00:00
harukin-expo-dev-env
8702b22cdd 通休編を自動挿入される通過にも適用されるように変更 2025-09-24 16:14:35 +00:00
harukin-expo-dev-env
3dbcc93448 追跡ができなくなったら解除するように変更 2025-09-24 13:05:55 +00:00
harukin-expo-dev-env
e05da6e2d3 不要なcnsleを削除 2025-09-24 11:30:12 +00:00
harukin-expo-dev-env
ba074a181c 特急停車駅の処理ミスを修正 2025-09-24 11:00:32 +00:00
harukin-expo-dev-env
525fbaa717 推定位置移動を作成、デザインを調整 2025-09-24 10:48:34 +00:00
harukin-expo-dev-env
7ab402d35f 伊予若宮信号所の処理を詳細化 2025-09-24 09:45:08 +00:00
harukin-expo-dev-env
c0a29fab0d エリア指定のミスを修正 2025-09-24 08:11:18 +00:00
harukin-expo-dev-env
f7e59cd75b 不要な内容の整理とコードの並び替え 2025-09-24 07:11:34 +00:00
harukin-expo-dev-env
83e45e1aa3 stringサイズ条件のミスを修正 2025-09-23 16:33:30 +00:00
harukin-expo-dev-env
2d6a67c793 拡大縮小ボタンの当たり判定を修正 2025-09-23 16:32:15 +00:00
harukin-expo-dev-env
1b26afb37b フィルタリング項目での駅名検索での前後関係を見るように変更 2025-09-19 05:21:06 +00:00
harukin-expo-dev-env
c8119e2373 各種調整 2025-09-19 04:34:26 +00:00
harukin-expo-dev-env
85fd66b728 fixedTrainBoxのレイアウト変更 2025-09-16 11:29:05 +00:00
harukin-expo-dev-env
2fe525d620 fix 2025-09-14 18:27:01 +00:00
harukin-expo-dev-env
acb1849544 FixedBoxを拡張可能に変更 2025-09-14 18:25:06 +00:00
harukin-expo-dev-env
3531a128ab テキストのサイズ調整 2025-09-14 10:02:06 +00:00
harukin-expo-dev-env
64de920dc6 keyErrorを追加で修正 2025-09-13 16:35:01 +00:00
harukin-expo-dev-env
4edfb951d4 細かい仕様調整 2025-09-13 14:02:56 +00:00
harukin-expo-dev-env
50b2cbb21c path修正 2025-09-12 19:05:18 +00:00
harukin-expo-dev-env
7bea2ac454 詳細な型設定の変更 2025-09-12 17:42:39 +00:00
harukin-expo-dev-env
338afb087a getCurrentTrainDataを移動 2025-09-11 16:25:03 +00:00
harukin-expo-dev-env
ad2d18e263 getTrainTypeの仕様変更に追従 2025-09-11 16:08:03 +00:00
harukin-expo-dev-env
9ab4c0a205 tsへファイル移動 2025-09-11 15:05:32 +00:00
harukin-expo-dev-env
c7487d38db 列車の現在地が追従するように変更 2025-09-09 14:28:34 +00:00