Describe the bug
The navigation bar at the top of the visual display in the app contains chiclets that are intended to display counts of the number of starred recipes, planned recipes, and shopping list ingredients.
The problem here is that all of them seem to be working incorrectly, most likely due to a change that has affected all three:
The chiclet for starred recipes does not appear to display at all.
The meal planner chiclet appears, but with a static value of zero that does not increment as expected when items are added to the meal calendar.
The shopping list chiclet appears and displays the correct ingredient count on the right-hand-side of the collected-items-ratio, but the left-hand-side of the ratio remains at zero even when shopping list items are checked-off the list (for example, with a shopping list of ten items, it continues to display as 0/10 no matter how many shopping list items are checked to indicate that they've been found/purchased).
To Reproduce
Steps to reproduce the behavior:
Go to the homepage and perform a search.
Star a recipe from the results.
Add one of the recipe results' ingredients to the meal planner.
Switch to the meal planner tab, and drag the planned meal onto the calendar for a future date.
Switch to the shopping list tab, and check off a few items from the shopping list.
Observe that there is no chiclet on the Starred navigation item, a chiclet with 0 on the Meal Planner navigation item, and a chiclet with 0/x on the Shopping List navigation item.
Expected behavior
The Starred navigation item should display a chiclet with the count of starred recipes.
The Meal Planner navigation item should display a chiclet with the count of future planned meals.
The Shopping List navigation item should display a ratio of the number of checked (selected) checkboxes in the shopping list to the total number of items in the shopping list.
Starred: there appears to be (and have been) no chiclet here; that was a figment of my imagination. We should probably add one, though.
Meal Planner: a JavaScript callback error is occurring; that'll almost certainly be the cause of the lack of update to the chiclet indicator.
Shopping List: we don't have a relevant chiclet update event handler on the basket database table that is used to store selected/checked shopping list items -- we should call the populateNotifications function whenever that table is updated.
Describe the bug The navigation bar at the top of the visual display in the app contains chiclets that are intended to display counts of the number of starred recipes, planned recipes, and shopping list ingredients.
The problem here is that all of them seem to be working incorrectly, most likely due to a change that has affected all three:
0/10
no matter how many shopping list items are checked to indicate that they've been found/purchased).To Reproduce Steps to reproduce the behavior:
Starred
navigation item, a chiclet with0
on theMeal Planner
navigation item, and a chiclet with0/x
on theShopping List
navigation item.Expected behavior
Starred
navigation item should display a chiclet with the count of starred recipes.Meal Planner
navigation item should display a chiclet with the count of future planned meals.Shopping List
navigation item should display a ratio of the number of checked (selected
) checkboxes in the shopping list to the total number of items in the shopping list.Screenshots