Skip to content

Conversation

@severo
Copy link
Contributor

@severo severo commented Jan 1, 2026

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR refactors the row range management in the virtual scrolling table by moving the overscan logic from the Scroller component to the RowsAndColumnsProvider and introducing explicit naming for three distinct row ranges:

  • Moves overscan parameter from Scroller to RowsAndColumnsProvider
  • Introduces three explicitly named row ranges: visibleRowsRange, fetchedRowsRange, and renderedRowsRange
  • Updates all components to use the new explicit range names

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
src/providers/RowsAndColumnsProvider.tsx Adds overscan parameter and computes three explicit row ranges (visible, fetched, rendered); updates fetch logic to use fetchedRowsRange
src/contexts/RowsAndColumnsContext.ts Updates interface to expose three explicit row ranges instead of a single range with padding; improves documentation with inline comments
src/components/HighTable/Wrapper.tsx Passes overscan to RowsAndColumnsProvider instead of Scroller; removes unused ScrollerProps import
src/components/HighTable/Slice.tsx Updates to use fetchedRowsRange and renderedRowsRange from context; recalculates padding rows based on the difference between fetched and rendered ranges
src/components/HighTable/Scroller.tsx Removes overscan parameter and logic; computes only the visible row range without overscan; updates to use new range names from context

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@severo severo merged commit 972f110 into master Jan 1, 2026
5 checks passed
@severo severo deleted the extract-overscan branch January 1, 2026 14:33
severo added a commit that referenced this pull request Jan 1, 2026
severo added a commit that referenced this pull request Jan 2, 2026
severo added a commit that referenced this pull request Jan 2, 2026
…mplemented (#364)

* add stories

* update comments

* update README (should have been in #367)

* [refactor] prepare for two scrolling modes: native/virtual

* update state only if start or end changed

* [refactor] split scrollHeight into tableHeight and canvasHeight

* set virtual mode (not implemented) if height is over 8M pixels

* move constants.ts to helpers/

* [refactor] create ScrollModeProvider and add 'virtual' mode, not implemented

* apply relevant copilot comments
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.

2 participants