Notifications
I noticed that the Notifications functionality which exists (sort of) in the free JumpStart template is absent from the paid product. Seeing as I'd very much like to implement notifications, any advice is appreciated.
Speaking of: is there any documentation for the Notifications mechanism in the free template? It seems a bit half-baked, and I say that with love.
Speaking of: is there any documentation for the Notifications mechanism in the free template? It seems a bit half-baked, and I say that with love.
There are no notifications in the free template. We have a branch that started them, but I don't think we're going to use it. It's just too simple since notifications get really complicated these days (when you're rolling up similar notifications, can un/subscribe to different notification types, etc)
We've been exploring using the activity_notification gem for Jumpstart Pro and it looks like it might work really well. Just need to finish up some testing with it before we roll it out though.
We've been exploring using the activity_notification gem for Jumpstart Pro and it looks like it might work really well. Just need to finish up some testing with it before we roll it out though.
Trying to parse what this all does is very confusing. And when I look at @codeByScott's PR it seems like I'm supposed to be creating folders inside of the app/views/notifications folder that in turn contain views. However, there are no examples and when I try to match up what's in the admin with the code, the head-scratching comes early. :)
I don't mean to be a pain. The solution looks genuinely interesting to me even if it won't scale. Maybe this is a dumb rabbit hole to go down but I'm compelled to understand this before it's discarded.
It's pretty simple.
Every notification has a recipient who sees the notification. An Actor who took the action that created the notification. There's an "action" which is what the Actor did to something. And the notifiable is the thing that was acted upon.
For example: Bob liked your post.
Bob is the actor.
Post model is the notifiable.
"like" is the action.
Your user account is the recipient (since the liked happened to your post)
You wouldn't create them in the admin obviously, you'd call the Notification.post I mentioned above.
Since every notification has different wording and things, we organize the views by the model name and action: https://github.com/excid3/jumpstart/blob/master/app/views/notifications/index.html.erb#L5
For example:
Every notification has a recipient who sees the notification. An Actor who took the action that created the notification. There's an "action" which is what the Actor did to something. And the notifiable is the thing that was acted upon.
For example: Bob liked your post.
Bob is the actor.
Post model is the notifiable.
"like" is the action.
Your user account is the recipient (since the liked happened to your post)
You wouldn't create them in the admin obviously, you'd call the Notification.post I mentioned above.
Since every notification has different wording and things, we organize the views by the model name and action: https://github.com/excid3/jumpstart/blob/master/app/views/notifications/index.html.erb#L5
For example:
# app/views/notifications/posts/like.html.erb <%= actor.name %> liked your <%= link_to notifiable.class.to_s.downcase, notifiable %>
Would spit out "Bob liked your post" with a link around "post" to the notifiable.
I'm sure we'll be throwing this stuff out, but that's how it works.
We've been exploring using the activity_notification gem for Jumpstart Pro and it looks like it might work really well. Just need to finish up some testing with it before we roll it out though.
hi there! the search lead me here, sorry to barge in on the topic...
Also, are you planning to have your notifications work on Pro.....maybe as an early Xmas gift? 🎁🎄
Since we're using Tailwind, I'm sure it'll require some custom styling.
Plus I think they use jQuery for the Javascript and I'd like to port that to Stimulus. I'm not even sure what they're using jQuery for, but I would imagine it won't be too hard to convert.
I'd love to have this working by Christmas. I think it's doable and probably higher priority than most other features right now.
Plus I think they use jQuery for the Javascript and I'd like to port that to Stimulus. I'm not even sure what they're using jQuery for, but I would imagine it won't be too hard to convert.
I'd love to have this working by Christmas. I think it's doable and probably higher priority than most other features right now.
I posted this on GoRails the other day also.
I don't mean to pester, but it would be nice to know if a generic notifications system is being added so I don't have to undo everything I did so far if it is.
Thank you for all your hard work
Chris Oliver
! This is a perfect addition to JSR and much needed. I already updated my project to take advantage of it :)
Now that notifications have been added, are there other features that you're looking to incorporate? Asking out of curiosity. JSR has proven to be an invaluable asset and I'm interested in the roadmap of the product.
Now that notifications have been added, are there other features that you're looking to incorporate? Asking out of curiosity. JSR has proven to be an invaluable asset and I'm interested in the roadmap of the product.
Notifications
You’re not receiving notifications from this thread.