Skip to content

✨ Add admin user show page with detail view and delete action#1238

Merged
0x46616c6b merged 1 commit intomainfrom
feature/admin-user-show-page
Apr 13, 2026
Merged

✨ Add admin user show page with detail view and delete action#1238
0x46616c6b merged 1 commit intomainfrom
feature/admin-user-show-page

Conversation

@0x46616c6b
Copy link
Copy Markdown
Member

@0x46616c6b 0x46616c6b commented Apr 10, 2026

Summary

Adds a dedicated show page for users in the admin panel (/admin/users/{id}), providing a structured overview of user details, security status, and related data — similar to the existing domain show page.

Features

  • Warning banners for compromised passwords and password change requirements
  • Info bars organized into Security, Activity, and Configuration sections with details like 2FA status, MailCrypt, recovery token, roles, quota, SMTP limits, last login, creation date, and invited-by reference
  • Related data grid with counts and links to Aliases, Vouchers, and OpenPGP Keys
  • Delete button with confirmation modal directly on the show page
  • Show icon added to the user index page actions column
  • Back-to-user link replaces the removed info bar on the edit form page
  • Full EN/DE translations with gender-inclusive German language
  • 7 Behat scenarios covering admin access, domain admin access control, warning banners, and delete-via-modal
Bildschirmfoto am 2026-04-10 um 20 09 14 Bildschirmfoto am 2026-04-10 um 20 08 56

Technical Details

  • UserManager::getUserStats() aggregates counts from AliasRepository, VoucherRepository, OpenPgpKeyRepository, and UserNotificationRepository
  • DomainVoter already supports view on User entities — no new voter needed
  • Handles deleted users, null smtpQuotaLimits, and domain admin cross-domain 404 behavior

The changes and the PR were generated by OpenCode.

Add a dedicated show page for users in the admin panel, displaying
security info, activity, configuration, and related data (aliases,
vouchers, OpenPGP keys) in a structured layout with warning banners
for compromised passwords and password change requirements.

- Add UserManager::getUserStats() with repository dependencies
- Add UserController::show() action at /admin/users/{id}
- Create show.html.twig with info bars, related data grid, delete modal
- Update form.html.twig with back-to-user link instead of info bar
- Add show icon to user index page actions
- Add EN/DE translations for all show page keys
- Add 7 Behat scenarios covering access control and content assertions

Co-Authored-By: OpenCode <noreply@opencode.ai>
@0x46616c6b 0x46616c6b force-pushed the feature/admin-user-show-page branch from b6a9c3a to aaccb36 Compare April 10, 2026 18:42
@sonarqubecloud
Copy link
Copy Markdown

@0x46616c6b 0x46616c6b marked this pull request as ready for review April 10, 2026 18:48
@0x46616c6b 0x46616c6b merged commit d7784d1 into main Apr 13, 2026
10 checks passed
@0x46616c6b 0x46616c6b deleted the feature/admin-user-show-page branch April 13, 2026 07:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant