Skip to content

Dashboard: dynamic tag filters with counts + combined search#1543

Draft
meintechblog wants to merge 1 commit intolinuxserver:2.xfrom
meintechblog:feature/hulki-dynamic-tag-filters
Draft

Dashboard: dynamic tag filters with counts + combined search#1543
meintechblog wants to merge 1 commit intolinuxserver:2.xfrom
meintechblog:feature/hulki-dynamic-tag-filters

Conversation

@meintechblog
Copy link

Summary

This improves dashboard tile filtering UX by combining search + tag filters and adding dynamic tag button behavior.

What changed

  • Move search UI above tag buttons on dashboard.
  • Render tag buttons for both treat_tags_as=tags and treat_tags_as=categories.
  • Add category class marker to category wrappers for reliable category filtering.
  • Add dynamic tag button counts (TagName (n)) based on current tile-search context.
  • Combine search text and selected tag filtering in tile mode.
  • Improve filtered category rendering:
    • hide category titles while filtered,
    • hide category wrappers without matching children,
    • reset wrapper visibility each run to avoid multi-click stale-state issues.
  • Add usage-based tag ordering with localStorage persistence:
    • keep All fixed first,
    • order remaining tags by frequency in the last 100 clicks window.
  • Add defensive Sortable initialization guard to avoid JS runtime breaks when Sortable is unavailable.

Files touched

  • resources/views/welcome.blade.php
  • resources/views/partials/taglist.blade.php
  • resources/views/sortable.blade.php
  • resources/assets/js/app.js

Notes

  • No backend/database schema changes.
  • No route/controller changes.

Migration Note

Supersedes prior draft from hulki-bot account for account-alignment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Development

Successfully merging this pull request may close these issues.

1 participant