diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-21 00:18:29 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-21 00:18:29 +0300 |
| commit | 893e2aca022e6e9d72019a80b866334a777f60cc (patch) | |
| tree | 9814363334da3f674b0079b8ce66e52589b8724b /player-android/android | |
| parent | 89ef249a43ce1edcd8a3e217542de8f31c1a4c15 (diff) | |
Add GET /api/v1/auth/count endpoint and first-run routing in Android app
Server: expose a public countUsers endpoint (GET /api/v1/auth/count)
so mobile clients can detect first-run (count=0) without a session.
Android: wire countUsers via DioPlayerApiClient, add firstRunProvider
(FutureProvider), update go_router redirect to drive /bootstrap vs /login
based on the count, rework LoginScreen to handle loading/error states, and
add widget tests for the new login screen and smoke-test updates.
Fix review issues: correct FutureProvider cache-lifetime comment in
first_run_provider.dart; add TestServer_CountUsers covering zero-users
and users-exist cases to handlers_test.go.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'player-android/android')
0 files changed, 0 insertions, 0 deletions
