In-App Notifications
Hello,
Is it possible to have In-App notification in trestle admin?
I wanted to have something like a bell icon, so it can show new notifications to the logged-in user (like in facebook). I guess I have to customize the header, is it possible?
If there is an easier way to have in-app notifications in trestle please let me know.
There is currently no out-of-the-box solution for notifications, but should certainly be possible to implement now (and is on my road map to build out, although not in the near future).
I'd recommend checking out how trestle-auth uses the view.header hook to render a custom partial: https://github.com/TrestleAdmin/trestle-auth/blob/master/config/initializers/trestle.rb#L6-L8
In similar fashion you can use the javascripts hook to include your own JavaScript to handle anything else, such as live updates via ActionCable.