RateTheLandlord / rtl-frontend

https://ratethelandlord.org
GNU General Public License v3.0
13 stars 5 forks source link

States/City/Postal/Zip should be filtering based on what is fitlered already #142

Closed kellenwiltshire closed 2 months ago

kellenwiltshire commented 3 months ago

If Canada is selected, than only Canadian Provinces, Cities, and Postals should be shown.

If Canada and Ontario is selected, then only Cities and Postals in Ontario, Canada should be shown.

Etc.

stephenmartin2951 commented 3 months ago

I can take a look at this

stephenmartin2951 commented 2 months ago

@kellenwiltshire We want this to update once a state/country/etc is selected, right? Not wait for the Update Filter button to be pressed?

kellenwiltshire commented 2 months ago

Hmm this is a good thought... I guess we may want it to be more dhlynamic like that yeah.

kellenwiltshire commented 2 months ago

Not necessarily update the reviews themselves, but we can update the filters with refetching with UseSWR perhaps.

stephenmartin2951 commented 2 months ago

Yeah I wasn't thinking the reviews themselves, but would be cool if the filter options refreshed dynamically like that. Thanks for the tip with UseSWR I've been trying to think of how I could do it.