Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Correct Tracks Sorting When Changing Categories or Sorting Options on Landing Page #677

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Amit-K-007
Copy link

Description:

This PR addresses the issue where tracks were not maintaining the correct order when categories or sort options were changed on the Landing page.

Solution:

  • Introduced new states key and value for the sorting dropdown, ensuring that it resets to its default state whenever the category is changed. This allows the dropdown to be refreshed and display "Sort by" as the default.
  • Ensured that after the tracks are filtered based on the selected category, they are always sorted by "newest first" by default. This provides a consistent experience when changing categories, as users expect to see the latest tracks first.
  • Fixed the issue where the sorting dropdown would become unresponsive to re-selection of the same option. Now, users can re-select the same sorting option after a category change without needing to switch to another option first.

Solution Demo:

solution.mp4

Resolves:

Resolves: #676

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.

bug: Tracks Not Sorted Correctly When Changing Categories or Sorting Options on Landing Page
1 participant