Repository navigation
fix: Don't show empty footer in data table - #412
Conversation
Signed-off-by: Ilya Boyandin <[email protected]>
Signed-off-by: Ilya Boyandin <[email protected]>
Signed-off-by: Ilya Boyandin <[email protected]>
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review infoConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughRemoves the virtualized data-table implementation and its react-virtual dependency, gates the paginated table footer behind a new flag, and updates public exports to add paginated/auxiliary components while removing virtualized exports. Changes
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@packages/data-table/src/DataTablePaginated.tsx`:
- Line 145: The footer visibility logic in the DataTablePaginated component
currently only checks pagination and numRows, which hides the footer when only
footerActions exist and still shows it for non-finite numRows; update the
shouldShowFooter calculation to also consider footerActions and only treat
numRows as valid when it's a finite number (e.g., include footerActions in the
OR and replace the simple numRows !== undefined check with a Number.isFinite/
isFinite check against numRows) so the footer renders when footerActions are
provided and only when numRows is a finite count.
ℹ️ Review info
Configuration used: defaults
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
pnpm-lock.yamlis excluded by!**/pnpm-lock.yaml
📒 Files selected for processing (4)
packages/data-table/package.jsonpackages/data-table/src/DataTablePaginated.tsxpackages/data-table/src/DataTableVirtualized.tsxpackages/data-table/src/index.ts
💤 Files with no reviewable changes (1)
- packages/data-table/src/DataTableVirtualized.tsx
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
Also removed deprecated DataTableVirtualized
Summary by CodeRabbit
Chores
Bug Fixes
Refactor
New Features