dboehmer / coocook

👨‍🍳🦉 Web application for collecting recipes and making food plans
https://coocook.org/
Other
11 stars 2 forks source link

Warn user when editing items with offset in dish editor #109

Open moseschmiedel opened 4 years ago

moseschmiedel commented 4 years ago

Currently we don't use the offset property of items. But if we want to use them, we need to warn the user, that he changes an item, when editing a dish and its ingredient values, for which he set an offset before, so that he can go and change the rounding of his edited values in the purchase list.

Implement this in:

dboehmer commented 3 years ago

Idea: when showing the warning, provide a link to the purchase list with the item IDs in the URL. Then highlight these items in the purchase list editor.

moseschmiedel commented 3 years ago

Idea: when showing the warning, provide a link to the purchase list with the item IDs in the URL. Then highlight these items in the purchase list editor.

I don't know how easy this will be to implement. We probably need another UI for this, because what happens when the user changes 2 ingredients that have an item with offset, if they are on the same purchase list we could possibly find a solution with our current UI and redirect to this one purchase list and just highlight both items, but what if the items are on different purchase list? I think we should wait with this feature until we overhauled our current UI. We could still display a warning that specific ingredients with associated items that have an offset were changed, but for the link we would need to build a big workaround.

dboehmer commented 3 years ago

We could just display multiple links. Wouldn’t be sleek but I think not providing any detail might be even more frustrating in large projects.

Well, this was only an idea.