Filter by multiple tags#412
Conversation
|
@moteanup24 is attempting to deploy a commit to the OpenSats Team on Vercel. A member of the Team first needs to authorize it. |
|
Awesome! I'll do my best to have a look later today. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
I don't think that's necessary to be honest. We'll mostly use these paths to deep-link into stuff from blog posts. There's no need for a user-facing UI imho. |
|
Two levels deep (two tags) should be good enough for now. You should be able to do all permutations on the fly using the existing tags. |
|
@dergigi I think I got all the routes two levels deep. Note that I've explicitly excluded paths where the same tag is repeated. Noted on the UI issue. I haven't removed any functionality but let me know if you'd like me to. |
Excellent! Looks good & works well, so that's fantastic.
Yes, please remove it. The behaviour is quite weird otherwise. As a user, I'd expect that a click on a tag will always filter by that tag. But now some weird magic is happening that isn't easy to understand, no matter if it's indicated by "Tags: x, y" or not. Again, the main goal of this is that the routes work and we can deep-link to more specific lists of blog posts, which we wanted to do many times over but never could (for example: /lts/nostr & /lts/bitcoin & /lts/core, but also /donations/operations and stuff like that). |
7e18d98 to
9c9b3ba
Compare
|
OK! done :) |
dergigi
left a comment
There was a problem hiding this comment.
Looks good to me!
Let's ship it ![]()
* restucture /tags directory; create dynamic routes for /tags/tag/tag2 * filter posts for up to two tags; prettify * clean up comments, rename variables e.g. x/y to path * add all combinations of tag1/tag2 routes * remove dual tag UI functionality
@dergigi I've created paths such as /tags/tag1/tag2 like so:
(/tags/opensats/funding is the only working route right now as a test case)
I've set it up such that users can select up to two tags by successively clicking on the tags they want to filter on. After selecting two tags, a third tag selection resets the previously selected tags.
Still working to flesh out the routes subject to any comments!