openfoodfacts / openfoodfacts-server

Open Food Facts database, API server and web interface - 🐪🦋 Perl, CSS and JS coders welcome 😊 For helping in Python, see Robotoff or taxonomy-editor
http://openfoodfacts.github.io/openfoodfacts-server/
GNU Affero General Public License v3.0
652 stars 381 forks source link

Streamline web saving product pages #658

Open aleene opened 7 years ago

aleene commented 7 years ago

It would be nice to streamline the webpages when saving a product.

Currently we get to see a save status page after saving. It would be nice to see the saved product right away. Add a status message on the saved product page to make clear the product has been saved.

teolemon commented 7 years ago

I had opened a bug to try triggering a chain edit by showing a list of uncomplete products. But your suggestion seems reasonable as well.

hangy commented 7 years ago

Probably related to #4, which I started working on at https://github.com/openfoodfacts/openfoodfacts-server/tree/issue/4-product-after-edit - suggestions welcome. 🎊

CloCkWeRX commented 4 years ago

Could we do a minimal version of this, perhaps just using a javascript redirect after a few moments on the success page? Its not the best pattern, but its quick and dirty; and would save a lot of effort

image

setTimeout(function() {window.location.href = '/product/5000221506867?saved';}, 1000);
VaiTon commented 4 years ago

Could we do a minimal version of this, perhaps just using a javascript redirect after a few moments on the success page? Its not the best pattern, but its quick and dirty; and would save a lot of effort

image

setTimeout(function() {window.location.href = '/product/5000221506867?saved';}, 1000);

I would opt for reidirecting the user directly to the saved page.

CloCkWeRX commented 4 years ago

Yeah, happy with that too; just means having to implement flash notifications, a bit of XSS injection proofing if we rely on URL params, etc vs a 1 liner.