After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 779532 - emptying the shopping list should leave the page
emptying the shopping list should leave the page
Status: RESOLVED FIXED
Product: recipes
Classification: Other
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: Recipes maintainer(s)
Recipes maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2017-03-03 13:25 UTC by Matthias Clasen
Modified: 2017-03-04 17:39 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Checks for the condition of empty shopping list and if true, goes back to home page (1.52 KB, patch)
2017-03-04 05:59 UTC, Ekta Nandwani
none Details | Review
Don't show an empty shopping list (1.64 KB, patch)
2017-03-04 16:06 UTC, Ekta Nandwani
accepted-commit_now Details | Review

Description Matthias Clasen 2017-03-03 13:25:41 UTC
the 'clear list' button removes all recipes from the shopping list and goes back to the landing page.

removing the recipes one-by-one by using remove in their menu, on the other hand, leaves you on the shopping list page, with a somewhat awkward empty state. I think we should go back to the overview in that case too.
Comment 1 Ekta Nandwani 2017-03-04 05:59:28 UTC
Created attachment 347186 [details] [review]
Checks for the condition of empty shopping list and if true, goes back to home page
Comment 2 Matthias Clasen 2017-03-04 14:22:14 UTC
Review of attachment 347186 [details] [review]:

Good work. The code looks fine and works great in my brief testing.
But lets improve the commit message a bit. I would keep the subject
line shorter and use what you have there now as the body.
Also, leave out the [PATCH] marker.

Like:

Subject: Don't show an empty shopping list

Leave the shopping page and go back to the home page
when the last recipe is removed from the shopping list.
This matches the behavior of the "Clear List" button.
Comment 3 Ekta Nandwani 2017-03-04 14:57:49 UTC
(In reply to Matthias Clasen from comment #2)
> Review of attachment 347186 [details] [review] [review]:
> 
> Good work. The code looks fine and works great in my brief testing.
> But lets improve the commit message a bit. I would keep the subject
> line shorter and use what you have there now as the body.
> Also, leave out the [PATCH] marker.
> 
> Like:
> 
> Subject: Don't show an empty shopping list
> 
> Leave the shopping page and go back to the home page
> when the last recipe is removed from the shopping list.
> This matches the behavior of the "Clear List" button.

Thanks Mr. Clasen. I'll rebase it and attach a patch with better commit message.
Comment 4 Ekta Nandwani 2017-03-04 16:06:38 UTC
Created attachment 347216 [details] [review]
Don't show an empty shopping list
Comment 5 Matthias Clasen 2017-03-04 17:00:37 UTC
Review of attachment 347216 [details] [review]:

Very good. I'll merge this now