Skip to content

feat(web): sidebar filters sorted by usage, top 50 shown - #210

Merged
ionos-landgraf-vin merged 2 commits into
mainfrom
feat/sidebar-filter-counts
Oct 27, 2026
Merged

ionos-landgraf-vin merged 2 commits into
mainfrom
feat/sidebar-filter-counts

Conversation

@ionos-landgraf-vin

Copy link
Copy Markdown
Collaborator

Summary

  • Filter values (e.g. ApplicationComponent tags) now carry a usage count and are sorted most used first.
  • Filters with more than 50 values show the top 50; the rest is behind a "… N more" / "show less" toggle (Kinds and Pages sidebars).
  • API change: GET /api/v1/kinds/:kind/filters returns values as [{ value, count }] instead of strings (OpenAPI spec updated).

Test plan

  • bundle exec rake test, rubocop
  • Open ApplicationComponent in the sidebar and check order, counts and the toggle

🤖 Generated with Claude Code

ionos-landgraf-vin and others added 2 commits October 27, 2026 11:47
Filter values carry the number of resources using them and are sorted
most used first. A filter with more than 50 values shows the top 50;
the rest is behind a "more" toggle. GET /api/v1/kinds/:kind/filters
returns values as {value, count}.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
ubuntu-latest is now 26.04, for which ruby/setup-ruby has no Ruby 3.4.8 build.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@ionos-landgraf-vin
ionos-landgraf-vin merged commit b3612b5 into main Oct 27, 2026
8 checks passed
@ionos-landgraf-vin
ionos-landgraf-vin deleted the feat/sidebar-filter-counts branch October 27, 2026 11:07
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