Shift3 / boilerplate-client-react

The Bitwise standard starting point for new React web projects.
7 stars 10 forks source link

[Enhancement] User gets taken back to page 1 of tables after editing or viewing and agent or user #672

Open lreyes-qae opened 1 year ago

lreyes-qae commented 1 year ago

Environment

All Devices All OS All Browsers

Description

When an Admin edits or views an agent in the Agent List table or any role in the User List table that is in any page other than page 1, the user is directed back to page 1 instead of the last page they were on.

Expected Behavior

I would expect that if I edited or viewed an agent or user role, for example, in page 3, once I am done editing or viewing that agent or user role, I should be taken back to page 3 of the Agent List or User List table so that I don't have to find the place I left off on.

Steps to Reproduce Issue

  1. Login as Administrator
  2. In the Agent List page, navigate to any available page other than page 1
  3. Pick an agent and either view or edit that agent
  4. If viewing the agent, click on the "Back to Agent List" link. If editing the agent, click on the "Save" button after editing the agent.
  5. Notice the Admin User is taken back to page 1 of the Agent List table.
  6. The same repro steps can be taken in the User List table/page.

Screenshots

https://user-images.githubusercontent.com/93185140/202301673-4105b25a-8655-4d95-9ddd-3481e41f0f0e.mov

Note:

The same behavior was found when logged in as 'User' role in the Agent List table.