[COMPASS-7370] Scrollbar position reset when switching tabs Created: 22/Oct/23  Updated: 30/Jan/24  Resolved: 02/Jan/24

Status: Closed
Project: Compass
Component/s: Tabs, UI / UX
Affects Version/s: 1.40.4
Fix Version/s: 1.42.0

Type: New Feature Priority: Major - P3
Reporter: Yuval Weizman Assignee: Sergey Petushkov
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS: Windows
node.js / npm versions: 18.12.0


Issue Links:
Duplicate
is duplicated by COMPASS-7516 View resets whenever the tabs gets ch... Closed
Epic Link: COMPASS-7020
Story Points: 5
Documentation Changes: Not Needed

 Description   

Problem Statement/Rationale

When switching between tabs the scrolling position is reset to the top

Steps to Reproduce

Open tab 1 and query some documents.

Open tab 2 and query some documents.

When in tab 2 scroll down a bit thru the documents

Switch to tab 1

Switch to tab 2

KO! Scrollbar is at the top and not where you left it

Expected Results

Scrollbar should maintain its position when switching tabs.

Actual Results

Scrollbar position is reset to the top

 



 Comments   
Comment by Githook User [ 30/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 09/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 08/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Yuval Weizman [ 02/Jan/24 ]

Thank You.

Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 02/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by Githook User [ 01/Jan/24 ]

Author:

{'name': 'Sergey Petushkov', 'email': 'petushkov.sergey@gmail.com', 'username': 'gribnoysup'}

Message: fix(compass-crud): persist and restore documents list scroll top position COMPASS-7370 (#5287)

  • chore(crud): refactor class component to functional component
  • chore(compass-workspaces): add useTabState hook
  • feat(crud): persist and restore scroll position in documents list using useTabState
Comment by PM Bot [ 22/Oct/23 ]

Hello yuval@cupixel.com, thank you for reaching out to us! The team will review your issue and get back to you soon as soon as possible.

Please review your issue to ensure you've included your environment details and have attached relevant logs (with any sensitive data redacted), so that we're best able to provide you a timely and thorough response. Thanks again!

Generated at Wed Feb 07 22:46:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.