♻️ Replace Sonata UserNotification admin with native settings view#1121
Merged
0x46616c6b merged 1 commit intomainfrom Mar 7, 2026
Merged
♻️ Replace Sonata UserNotification admin with native settings view#11210x46616c6b merged 1 commit intomainfrom
0x46616c6b merged 1 commit intomainfrom
Conversation
…1086) Replace the Sonata Admin implementation for UserNotification with a native read-only list view under /settings/user-notifications/, consistent with the existing settings page patterns (DomainController, ReservedNameController, WebhookDeliveryController). - Add UserNotificationController with paginated index action - Add UserNotificationManager service with filter support (email, type) - Add repository methods countByFilters() and findPaginatedByFilters() - Add template extending base_settings.html.twig with sidebar navigation - Add navigation entry for user notifications - Add EN/DE translations for all new keys - Add Behat feature tests (4 scenarios) and PHPUnit tests (4 tests) - Remove UserNotificationAdmin Sonata class - Remove Sonata service definition from services.yaml - Remove Sonata security roles from security.yaml Closes #1086 Co-Authored-By: OpenCode <noreply@opencode.ai>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Replaces the Sonata Admin implementation for
UserNotificationwith a native read-only list view under/settings/user-notifications/, consistent with the existing settings page patterns. This is part of the ongoing effort to migrate away from Sonata Admin.Closes #1086
Changes
UserNotificationController): SingleindexGET action with pagination, email search, and type filterUserNotificationManager):findPaginated(page, email, type)returningPaginatedResultDTOcountByFilters()andfindPaginatedByFilters()onUserNotificationRepositorybase_settings.html.twigwith sidebar navigation, inline filters (type dropdown + email search), table, and inline paginationheroicons:bell-alerticonUserNotificationAdminclass, removed service definition fromservices.yaml, removed 3 role groups (5 leaf roles) fromsecurity.yamlVerification
settings_user_notification.feature(4 scenarios): all passadmin.feature(21 scenarios): all passThe changes and the PR were generated by OpenCode.