connected-web / product-monitor

A HTML/JavaScript template for monitoring a product by encouraging product developers to gather all the information about the status of a product, including live monitoring, statistics, endpoints, and test results into one place.
8 stars 3 forks source link

Component to check and notify if updated product-monitor server is available on NPM #24

Closed Markavian closed 9 years ago

Markavian commented 9 years ago

Using the NPM api (https://docs.npmjs.com/api/npm) it should be possible to compare the local package.json against the public product-monitor NPM entry to see if an update is available.

It should also be possible to perform a local update to the server and restart, making sure users of product monitor get the latest features and can stay up to date.

subsidel commented 9 years ago

This feature should be opt-in.

Markavian commented 9 years ago

Will make sure that its opt-in - I was planning to have an icon button at the top right that appeared when a new version was available. I guess users could choose to dismiss this. I could also have a settings option to disable the feature.

johnbeech commented 9 years ago

This is what the feature looks like present when run directly from the product-monitor product: image

Not tested it in a dependent project yet.

johnbeech commented 9 years ago

And this is what it looks like if you update in to the future... image

Markavian commented 9 years ago

Issue: this process takes several seconds on most machines, and hitting the endpoint before it has initially cached causes the process to fork. Suggest a fast fail return, with a cache managed by the endpoint.