Skip to content

Filter explore results by tag - #184

Merged
misabegovic merged 3 commits into
mainfrom
harness/111-explore-tag-filter
Oct 8, 2026
Merged

misabegovic merged 3 commits into
mainfrom
harness/111-explore-tag-filter

Conversation

@misabegovic

@misabegovic misabegovic commented Oct 8, 2026 •

Copy link
Copy Markdown
Owner

Explore can now be narrowed to one tag, so someone looking for a kind of place sees only places with that tag and the experiences, plans and moments that visit them.

Until now a tag helped only through full text search, which finds the word anywhere but cannot limit results to places carrying the tag. A tag select now sits beside the city select and works the same way: it carries over to load more and clears with the other filters.

It is safe to ship as it is. Nothing is stored or migrated, the tags come from the places already in the database, and with no tag chosen the results are exactly what they are today.

The feature inventory and the open issues list the tag filter as shipped, so the product pages match the code.

- Add Browse.by_tag: locations carry tags, and a tag's experiences,
  plans and moments are the ones that reach a tagged location, so the
  scope mirrors by_city_name rather than adding a browses column
- Read a tag param on explore, carry it in filter_params so load-more
  reproduces it, and count it as an active filter for own moments
- Offer the curated tag sets in a filter-bar select, handled by the
  explore Stimulus controller like the city select, with bs/en keys

Tests: not run, this machine has no bundle or test database; ruby -c
clean on the changed Ruby files.
- Choosing a tag reloads explore with only the places carrying it, and the
  url names the tag; the controller tests covered the server, this covers
  the select's wiring in explore_controller.js
@misabegovic
misabegovic marked this pull request as ready for review October 8, 2026 08:38
@misabegovic
misabegovic merged commit 38dc3d6 into main Oct 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant