Data table virtualization#306
Merged
RUKAYAT-CODER merged 3 commits intoApr 28, 2026
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #258
PR Title
✨ feat: Add Data Table Virtualization with Sticky Headers and Resizable Columns (Close #258)
Description
This PR implements virtualization for large TeachLink data tables, enabling smooth rendering for datasets with 10k+ rows. The feature integrates a lightweight virtualization library, supports variable row heights, sticky headers, and column resizing to improve performance and usability.
Problem Statement
Tables with 1000+ rows become slow and unresponsive. The current table rendering strategy does not scale for large datasets, causing poor UX on dashboards and analytics views.
Solution Overview
react-windowfor list virtualizationChanges Made
New/Updated Components
src/components/DataTable.tsxsrc/components/VirtualList.tsxreact-windowand custom measurement logicDependencies
react-windowor similar virtualization libraryPerformance Improvements
Accessibility and UX
Acceptance Criteria
react-windowFiles Changed
Primary
src/components/DataTable.tsxsrc/components/VirtualList.tsxPossible supporting changes
src/components/TableHeader.tsx(if header logic is extracted)src/components/TableRow.tsx(if row rendering is modularized)src/lib/tableUtils.tsorsrc/utils/tableUtils.ts(for resize/virtualization helpers)package.json(+react-windowdependency)Usage Example
Basic Virtualized Table
Column Resizing
Testing
Manual QA
Suggested Tests
DataTablerenders column headers correctlyIntegration Notes
Environment
No new environment variables are required.
Packaging
Add
react-windowtopackage.jsonand run:Migration
Review Checklist
react-windowor approved virtualization librarySummary
This PR introduces a scalable table rendering approach for TeachLink, ensuring large datasets are handled efficiently and that table layouts remain responsive and usable. The change improves performance and UX for dashboards, analytics pages, and any view that displays thousands of rows.