feat: enhance infinite scroll column merging in TableWidgetV2#40610
feat: enhance infinite scroll column merging in TableWidgetV2#40610rahulbarwal merged 1 commit intoreleasefrom
Conversation
This update introduces logic to merge new columns with existing ones when infinite scroll is enabled. This ensures that the table maintains consistent data display by preventing the loss of existing columns during data updates.
WalkthroughThe Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TableWidgetV2
participant DataSource
User->>TableWidgetV2: Enable infinite scroll or resize table
TableWidgetV2->>DataSource: Fetch new data page
TableWidgetV2->>TableWidgetV2: Call createTablePrimaryColumns
alt infiniteScrollEnabled
TableWidgetV2->>TableWidgetV2: Merge existing and new columns
else not infiniteScrollEnabled
TableWidgetV2->>TableWidgetV2: Replace columns if IDs differ
end
TableWidgetV2-->>User: Render table with consistent columns
Assessment against linked issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
Tip ⚡️ Faster reviews with caching
Enjoy the performance boost—your workflow just got faster. 📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (1)
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (4)
✨ Finishing Touches
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. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
Documentation and Community
|
Description
Problem
Existing columns could be lost during data updates when infinite scroll was enabled, leading to inconsistent table display.
Root cause
New column data from paginated responses was replacing the existing column state instead of merging with it.
Solution
This PR handles enhancing the column merging logic in infinite scroll mode by combining new columns with existing ones, ensuring consistent and complete column display across paginated data updates.
Fixes #40457
or
Fixes
Issue URLWarning
If no issue exists, please create an issue first, and check with the maintainers if the issue is valid.
Automation
/ok-to-test tags="@tag.Table"
🔍 Cypress test results
Tip
🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
Workflow run: https://github.com/appsmithorg/appsmith/actions/runs/14905173364
Commit: cb86d0f
Cypress dashboard.
Tags:
@tag.TableSpec:
Thu, 08 May 2025 11:53:39 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit