lemeryfertitta / Climbdex

Search engine for training board climbs
https://climbdex.com
MIT License
42 stars 10 forks source link

Mirror filtering #23

Closed lemeryfertitta closed 6 months ago

lemeryfertitta commented 6 months ago

Implements #21. Thanks to @Theruz for the report and also the initial implementation idea in https://github.com/lemeryfertitta/Climbdex/pull/22. Both were very helpful in creating this PR.

I wanted to go a slightly different approach that didn't require doing much extra work in the search endpoint, which is already the most complex and slowest part of the app. Instead, this approach puts the burden of building the mirror on the filter page, and passes a mirrored hold string to the search params.