Skip to content

Conversation

Corepex
Copy link
Contributor

@Corepex Corepex commented Sep 24, 2025

Changes in this pull request

Resolves #1578
Related to: pimcore/studio-backend-bundle#1402

Additional info

This pull request refactors the notification sending modal by extracting the notification form logic into a dedicated, reusable NotificationForm component. This improves code organization and maintainability, and introduces a new UserSelect component for recipient selection.

Component extraction and code organization:

  • Created a new NotificationForm component in notification-form.tsx, moving all form fields and logic out of the modal file for better separation of concerns.
  • Updated send-notification-modal.tsx to use the new NotificationForm component, removing inline form field definitions and related imports. [1] [2]

New reusable components:

  • Added a new UserSelect component in user-select.tsx that fetches recipient data and displays it in a select dropdown, improving reusability and encapsulation of recipient selection logic.

These changes make the notification modal easier to maintain and extend in the future.

@Corepex Corepex self-assigned this Sep 24, 2025
Copy link

Copy link
Contributor

@xIrusux xIrusux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm :)

@Corepex Corepex merged commit de87cbd into 1.x Sep 29, 2025
1 check passed
@Corepex Corepex deleted the 1578-notifications-respect-permission-for-recipients branch September 29, 2025 09:03
@github-actions github-actions bot locked and limited conversation to collaborators Sep 29, 2025
@markus-moser markus-moser added this to the next milestone Sep 30, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Notifications] respect permission for recipients

3 participants