-
-
Notifications
You must be signed in to change notification settings - Fork 19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[UserNotification] Add more configuration options #176
[UserNotification] Add more configuration options #176
Conversation
Hey ✋, it's been a while! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome back 😄 👋
I like the proposed changes! Just one thing that should be configurable => display of the menu always vs. only if messages exist.
The rest is feedback on code style. I know that we kinda disagree on certain code styles, but I hope you can live with my wishes. Not your main project, so you don't have to see it every day 😁
Waiting for information in #176 (comment) |
I agree, that the current approach is messy. The event and interface/model changes should be mostly reverted IMO and re-done. Not sure if I am able to explain my idea here properly, but I'll try:
Using this approach would allow to use the current "simple" notification and also the more complex one, that you want/need. And it should not be a BC. |
OK so:
Done
To be safe, I've added both interfaces in parameter.
Instead, all undefined properties from the old interface have default values from twig. |
At the end, we have two interfaces
BUT if they overwrite the The only drawbacks are on our side (TablerBundle). |
Co-authored-by: Kevin Papst <[email protected]>
And now I almost missed the CI Linting failures. Can you run |
Done 👍 |
Thanks 😄 |
Description
The current NotificationEvent is not complete enough to allow devs to do what they want.
Updated it as Tabler
1.0.0-beta20
style.When there is an Event without any Notification:
Without any subscriber:
How it is today
Types of changes
Checklist