mjftw / react-bitbucket-pull-request-board

React and Redux based project to show the status and activity of all your Bitbucket pull requests in an info board.
MIT License
1 stars 1 forks source link

Add desktop notifications #31

Open mjftw opened 4 years ago

mjftw commented 4 years ago

A desktop notification whenever a pull request update is detected would be really nice! If we can have the notification say what changed as well then even better.

This could likely be achieved by adding a componentDidUpdate lifecycle hook, and getting that to dispatch an action to send a notification whose content is derived from the difference in current props and new props. This would be added to the PullRequestInfo component.

We'd also want the ability to enable/disable this, so another option in the sidebar (like the live data toggle) would work.

https://www.npmjs.com/package/react-desktop-notification