scaffolding hermes flow and audit logging

This commit is contained in:
2026-04-09 18:54:10 +02:00
parent e401b6dbab
commit cf5316a2c1
59 changed files with 1830 additions and 593 deletions
+22
View File
@@ -1,5 +1,27 @@
# Project Template: Native Betting Study App
This is the canonical working plan for the project. Use this file for progress notes, next steps, and status updates.
## Current Status
### Done So Far
- Android was renamed from the old study app into `com.hermes.app`, with the app entry, theme, repository, media, and feature screens rewritten around the backend-backed Hermes flow.
- Android no longer relies on the sample fixture; it boots from backend session and round data, uses `/health.server_time` for clock sync, buffers analytics, and flushes them to the backend.
- Android localization is in place for English and Swedish, including the remaining locale toggle labels and session language display.
- Backend now exposes `server_time` from `/health`, publishes the matching OpenAPI contract, and records audit events for session, bet, event, market, odds, and settlement actions.
- Backend smoke coverage was added for `server_time` and audit logging.
- iOS now follows the backend-backed flow, syncs clock from `/health`, flushes analytics, and uses localized language labels instead of hardcoded `EN` and `SV`.
- iOS source was updated for the backend-backed session and round flow, including the real preview cue points and localized session strings.
- Android debug build passes with `./gradlew :app:assembleDebug`.
- Backend tests pass with `cargo test`.
### Still Open
- Continue through the remaining plan phases and finish any leftover localization and polish work.
- Add iOS build validation once an Xcode project is available in `mobile/ios-app`.
- Keep expanding tests around session, odds, settlement, and analytics behavior.
## 1. Purpose
Build a native mobile prototype for iOS and Android for a research