Skip to content

All Themes incorrectly remains selected with active tag and does not clear filter on click #270

@shubham6822

Description

@shubham6822

Describe the bug
When a tag filter (e.g., ?tags=minimal) is applied on the community page, the UI incorrectly shows “All Themes” as selected along with the active tag.

Additionally, clicking on “All Themes” does not remove the active tag filter from the URL, so the page remains filtered even though the user expects it to reset.

To Reproduce
Steps to reproduce the behavior:

  1. Go to: https://tweakcn.com/community?tags=minimal
  2. Observe the sidebar:
    • “minimal” tag is correctly selected
    • BUT “All Themes” is also shown as selected (incorrect)
  3. Click on “All Themes”
  4. Notice:
    • URL still contains ?tags=minimal
    • Filter is not removed
    • Themes remain filtered instead of showing all

Expected behavior
• When a tag is active:
• Only that tag should appear selected
• “All Themes” should NOT be selected
• When clicking “All Themes”:
• The tags query parameter should be removed
• URL should become: https://tweakcn.com/community
• All themes should be displayed (no filtering)

Screenshots
Image

Desktop (please complete the following information):

  • OS: macOS
  • Browser: Chrome
  • Version: 146

Smartphone (please complete the following information):

  • Device: N/A
  • OS: N/A
  • Browser N/A
  • Version N/A

Additional context
This seems like a UI state sync issue with query parameters:
• “All Themes” selection is not conditionally disabled when a tag is active
• Clicking “All Themes” does not clear the tags query param from the URL

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions