Commit graph

11 commits

Author SHA1 Message Date
09009fee4c
feat: improve logging and event filtering
- Add HTTP debug logging to TraccarHttpClient (URL, error body)
- Route HTTP client logs through app event log system
- Fix syncBufferedLocations to properly report partial failures
- Add DEBUG event type with separate filter chip
- Rename ALL filter to NORMAL, add VERBOSE (shows DEBUG, FILTERED, SPEED_CALC)
- Add color/icon for INFO, NETWORK_CHANGE, DEBUG, SPEED_CALC events
- Make log message text selectable
2026-05-04 09:43:01 +07:00
60d051ee7b
feat: add clear logs with confirmation dialog and fix DB dispatchers
- Add clearLogs method to BridgeModule with proper coroutine scope
- Fix fetchLogs and clearLogs using Thread+runBlocking which caused app close
- Change serviceScope from Dispatchers.Main to Dispatchers.IO
- Add error logging in fetchLogs for better diagnostics
- Add clear logs button with confirmation dialog in StatusScreen
2026-05-04 08:38:25 +07:00
1b3440e2fe
chore: format code 2026-05-04 08:28:05 +07:00
50b60e31b7
chore: code format
Co-authored-by: Copilot <copilot@github.com>
2026-05-01 11:39:40 +07:00
93d5534755
chore: fix deprecated APIs and unused imports 2026-04-30 16:26:56 +07:00
a7a6a6a82d
fix: event log filter bar below app bar, two-line log entries 2026-04-30 16:01:00 +07:00
c781fc5079
fix: improve button layout and event log readability 2026-04-30 15:56:16 +07:00
02040081ce
feat: revamp UI with dark terminal aesthetic 2026-04-30 15:46:53 +07:00
bbd51d1c35
fix: critical bugs preventing location reporting to server
- Send config to native before starting tracking (SharedPreferences sync)
- Register ConnectivityReceiver for network state detection
- Fix Settings number fields using TextEditingControllers
- Cancel stream subscription on widget dispose (memory leak)
- Replace WorkManager with AlarmManager for heartbeat
- Add log cleanup for logs older than 24 hours
- Change HTTP method from GET to POST

These fixes resolve the 'device always offline' issue where:
1. Config was not being sent to native service
2. ConnectivityReceiver was never registered
3. Settings number fields were not saving
4. Heartbeat never fired due to WorkManager process isolation
5. Server expected POST not GET
2026-04-30 15:38:24 +07:00
07bae466cf
fix: address analysis issues - remove unused import, fix deprecated APIs, update test 2026-04-30 11:40:56 +07:00
01cf56f998
feat: add StatusScreen for event log viewing 2026-04-30 11:22:13 +07:00