OpenEugene / little-help-book-web

Human service resource guide powered by White Bird Clinic
MIT License
6 stars 4 forks source link

Navigation breadcrumbs #96

Closed ArthurSmid closed 3 years ago

ArthurSmid commented 4 years ago

Thursday September 10th during our co-working, the team had been getting the navigation menu items for Category and Subcategory, whatever someone selects, to remain if someone then decides to change a city. We did get it to work but then this evening I noticed it's not working.

Clicking around you'll spot it. But to articulate the issue, first by going to a Subcategory page, from the index.html someone can click through to the Phone subcategory and it's default city is Eugene / Springfield. Then in the city nav menu, when they click All in cities, to see Phone services available throughout the county, the data refreshes to show All categories and All subcategories. In general—and to mention this specific category and subcategory only as a way to illustrate the issue—is there a way to maintain the category as Basic Needs and the subcategory as Phone, but to change the city and refresh data for any of the cities and display the Phone services available for whichever item in the City menu they've selected?

This breadcrumb reset to All also happens on the Category page and it's the same issue there too, for example, I'm on the category page for Food with the city as Dorena and subcategory as Meals. Then if I select another city, say Lowell, when it refreshes the data, it shows All categories and All subcategories for the City of Lowell.

ArthurSmid commented 3 years ago

Option 1: changing categories and subcategories narrows down the city list

Option 2: all cities are always present (current state on the site)

NOTE: If you pick a city, service, and category, and then switch to a different city that has the service and category, it should remember the service and category in the breadcrumbs.

The problem case is when you switch to a city that doesn't have the service or category.

Two options: -- That shouldn't even be possible because the city list gets narrowed down to only those that have the category / services. -- Or, it should behave as it currently does (loses the cat and services in the breadcrumbs)