summaryrefslogtreecommitdiff
path: root/player-android/lib/screens/admin_permissions_screen.dart
AgeCommit message (Collapse)Author
2026-05-22Fix review issues and add widget tests for admin screens (eb)Paul Buetow
- Fix typo _isTriggerring → _isTriggering in AdminRescanScreen - Replace index-based removeAt with identity-based removeWhere in AdminTrashScreen - Add .cast<T>() for list results from Future.wait in AdminPermissionsScreen - Add tap-outside safety comment in _confirmHardDelete - Fix broken dartdoc reference [RescanScreen] → [AdminRescanScreen] - Add widget tests for AdminRescanScreen, AdminTrashScreen, AdminPermissionsScreen Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-05-22Implement AdminPermissionsScreen, RescanScreen, and TrashScreen (eb)Paul Buetow
Add three admin-only screens with routes and navigation tiles: - AdminPermissionsScreen: permission matrix (users × sets) with optimistic grant/revoke checkboxes; admin rows shown as disabled (implicit access). - AdminRescanScreen: trigger library rescan, poll getScanProgress every 2s while running, cancel timer in dispose, show live file/set counters. - AdminTrashScreen: list soft-deleted media with restore + hard-delete (confirmation dialog); optimistic UI with revert-on-error for both actions. All three use generation counters for stale-async cancellation and guard async continuations on mounted. Added error mappers and route constants. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>