diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-22 16:21:11 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-22 16:21:11 +0300 |
| commit | b4a200fa07a5c659661a2a695c6cfe57c70e3ab1 (patch) | |
| tree | 6ba75f6b86fd9916abbeeda58c1e0f47a9832937 /player-android/android | |
| parent | ee99ef26a45cbcf7595bf77bc315644d59473f30 (diff) | |
Implement AdminUsersScreen with create/delete user and admin gating (db)
- Add AdminUsersScreen with user list, create dialog, delete confirmation,
and optimistic UI (revert on error) for both create and delete operations.
- Add currentUserProvider (FutureProvider) to resolve the logged-in User
object from token storage + listUsers, used for self-delete gating and
Settings admin section visibility.
- Gate Admin section (Manage Users tile) in SettingsScreen behind
currentUserProvider → isAdmin, providing defence-in-depth alongside
server-side 403 enforcement.
- Add adminUserErrorMessage to error_mappers.dart with 400/403/409 handling.
- Add adminUsers route constant (AppRoutes.adminUsers) and GoRouter entry.
- Add 25 tests in admin_users_screen_test.dart and 3 admin-section tests
in settings_screen_test.dart (397 tests total pass).
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'player-android/android')
0 files changed, 0 insertions, 0 deletions
