The discussion revolves around a Chrome extension for Discourse that displays unread notification counts. alefattorini introduces the extension, which shows unread notifications and can be installed from the Chrome Web Store. trandatnh requests screenshots and asks if it conflicts with existing features, to which alep clarifies it does not conflict with desktop notifications. Stefan suggests an alternative, more advanced extension. alep shares the source code and extension link. thomaspurchas finds it cool and considers using it. sam criticizes the extension for aggressive polling, causing high processing time. alep apologizes and explains the update, now using MessageBus to reduce load. alep announces version 0.2, which includes a popup for notifications and updated documentation. david15894 supports the idea, and alefattorini invites further feedback and issues on GitHub.
Hi folks,
my friend Alessandro has just made this extremely useful extension for our community
Displays the number of unread notifications of your Discourse account, same notifications of Discourse balloon also with tab closed
You can also click the icon to open the Discourse site.
He can shortly work on it and made a generic customizable extension on your Discourse installation
Do you like it?
No it does not conflict with desktop notification, because as @alefattorini said, it shows only the number of notifications. I had thought to implement desktop notifications in a future version, when I did know your work on it. Probably it could be useful only when the tab is closed, to not show duplicated notifications.
I think this is pretty cool, and might be an interesting thing to add to my community. You say that your friend is going to do more work on this, any chance he could open source it?
Sorry for the mistake @sam, the counter and update methods were raw… I’ve reimplemented the extension to use MessageBus. It does only an initial json request to session/current.json to obtain che current user id (the response it’s about 1.5 KB) to use with MessageBus.subscribe /notification/userId (each response with data is about 800 B in my case). I’ve not found another method: exists ? You can verify the code here.
Is the cpu load fixed ?
Is there some documentation about subscriptions that can be done in MessageBus ?
Now the extension v0.2 shows notifications list with a popup clicking the icon: here some info. @sam is available the documentation about rest api ? How is it going with the processing time ?