trestle icon indicating copy to clipboard operation
trestle copied to clipboard

In-App Notifications

Open moondos opened this issue 3 years ago • 1 comments

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.

moondos avatar Jan 31 '22 00:01 moondos

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.

spohlenz avatar Feb 01 '22 06:02 spohlenz