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

bug: Tracks Not Sorted Correctly When Changing Categories or Sorting Options on Landing Page #676

Open
Amit-K-007 opened this issue Oct 5, 2024 · 0 comments · May be fixed by #677
Open
Labels
bug Something isn't working needs-triage

Comments

@Amit-K-007
Copy link

Description:

On the Landing page, course tracks are displayed with options to filter by category and sort by various parameters. However, there are several issues with how the tracks are sorted when categories or sorting options are changed.

Steps to Reproduce:

  1. Open the homepage where the courses are listed.
  2. By default, tracks are displayed in "newest first" order.
  3. Change the category from the filter options.
    Issue: The tracks do not maintain the "newest first" order after changing the category (latest tracks should appear first by default).
  4. Select a sorting option, such as "descending". The tracks are sorted correctly in descending order.
  5. Change the category again.
    Issue: The tracks appear in random order, and the same sorting option is still selected in the dropdown (here, "descending").
  6. Attempt to re-select the "descending" sorting option.
    Issue: The "descending" option cannot be re-selected unless another sorting option is chosen first.

Expected Behavior:

  • When the category is changed, the latest tracks should appear first.
  • If a sort option is selected, changing the category should reset the selected sort option, and tracks should be sorted in "newest first" order by default.

Bug Demo:

issue.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage
Projects
None yet
1 participant