Skip to content

fix: showPagination logic for BE handled rows#1009

Merged
whoami-amrit merged 28 commits into
developfrom
feat/sec-vulnerability-table
Mar 12, 2026
Merged

fix: showPagination logic for BE handled rows#1009
whoami-amrit merged 28 commits into
developfrom
feat/sec-vulnerability-table

Conversation

@whoami-amrit

Copy link
Copy Markdown
Contributor
  • feat: add expandable rows support in table
  • feat: uat changes
  • fix: css selector
  • chore: add a comment
  • chore: notification icons
  • feat: expose expand row to CellComponent
  • fix: uat
  • fix: better table states
  • feat: expand/collapse using right/left arrow
  • feat: if onRowCilck provided handle enter press internally
  • fix: review 3Bcomments
  • chore: update common-lib
  • fix: showPagination calc in TableContent

Copilot AI review requested due to automatic review settings January 27, 2026 12:37

Copilot AI left a comment

Copy link
Copy Markdown

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 aims to fix the showPagination logic for backend-handled rows in the Table component. The change modifies the condition that determines when pagination controls should be displayed.

Changes:

  • Updated the showPagination calculation logic to properly handle backend pagination by checking totalRows when isBEPagination is true

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

Comment thread src/Shared/Components/Table/TableContent.tsx Outdated
AbhishekA1509
AbhishekA1509 previously approved these changes Jan 28, 2026

@AbhishekA1509 AbhishekA1509 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Can move this: ((isBEPagination && totalRows) || filteredRows?.length) into a variable with type number

AbhishekA1509
AbhishekA1509 previously approved these changes Jan 28, 2026
vivek-devtron
vivek-devtron previously approved these changes Jan 29, 2026
@whoami-amrit whoami-amrit merged commit a8b4f11 into develop Mar 12, 2026
6 checks passed
@whoami-amrit whoami-amrit deleted the feat/sec-vulnerability-table branch March 12, 2026 06:41
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.

6 participants