CATcher-org / CATcher

CATcher is a software application used for peer-testing of software projects.
https://catcher-org.github.io/CATcher/
MIT License
71 stars 66 forks source link

Faulty list view when back navigating #1227

Closed AlagappanRa closed 4 months ago

AlagappanRa commented 7 months ago

Describe the bug The bug occurs when navigating back from initial list view to the original list view.

To Reproduce For the dev team, if you can access this page, https://catcher-org.github.io/CATcher/phaseTeamResponse to try the bug with the populated list

  1. Have more than 20 bugs reported but less than 41 bugs
  2. Set page view to be 20 items per page
  3. Navigate to page 2 and click on issue number 36.
  4. Navigate back by either using 4.1. The back arrow key button on Chrome Browser 4.2. CATcher v3.5.2 (Team's Response Phase) button at the top left of the issue 36 webpage

Expected behavior Ideally expect that I return to page 2 of the list view where i launched issue 36 from.
Currently, I am brought all the way back to page 1, where the first 20 bugs are located.

Screenshots Initial page view set to 20. image

Navigated to page 2. image

Clicked on issue 36 in order of the list id, 1-based indexing. image

Pressed the back button and I arrive at this: image

Desktop:

HollaG commented 7 months ago

Would like to add that the sort direction of the list is also not maintained. For example, if the list was sorted by Severity, and then you clicked into an issue, and then pressed the back button, the sort direction is reset to the default (sorted by ID), instead of sorted by Severity.

Arif-Khalid commented 4 months ago

@CATcher-org/active-devs Is it okay if I work on this issue?