summaryrefslogtreecommitdiff
path: root/player-android/android/app/src/debug
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-22 16:21:11 +0300
committerPaul Buetow <paul@buetow.org>2026-05-22 16:21:11 +0300
commitb4a200fa07a5c659661a2a695c6cfe57c70e3ab1 (patch)
tree6ba75f6b86fd9916abbeeda58c1e0f47a9832937 /player-android/android/app/src/debug
parentee99ef26a45cbcf7595bf77bc315644d59473f30 (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/app/src/debug')
0 files changed, 0 insertions, 0 deletions