Skip to content

feat: Virtualized docs list, auto scroll to active item on refresh#2082

Merged
caiters merged 11 commits intomainfrom
virtual-docs-list
Feb 6, 2024
Merged

feat: Virtualized docs list, auto scroll to active item on refresh#2082
caiters merged 11 commits intomainfrom
virtual-docs-list

Conversation

@caiters
Copy link
Contributor

@caiters caiters commented Feb 3, 2024

Three main things being added here

  • virtualizing the list of items in the docs list using tanstack react virtualizer
  • when user refreshes the page, if the active item is not visible in the docs list, list will be scrolled until the active item is visible
  • added a button so if you scroll away from the currently active item and want to return to it, it will be easy to do so

==

Video showing page refresh results in active item being visible, and the "scroll to" button when it is scrolled out of frame:

Screen.Recording.2024-02-02.at.4.36.51.PM.mov

@caiters caiters requested review from mykalmax and vchan February 3, 2024 00:43
@CLAassistant
Copy link

CLAassistant commented Feb 3, 2024

CLA assistant check
All committers have signed the CLA.

@caiters caiters requested a review from mykalmax February 6, 2024 04:40
@caiters caiters merged commit 26a9d93 into main Feb 6, 2024
@caiters caiters deleted the virtual-docs-list branch February 6, 2024 19:42
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.

3 participants