fix: update visibility condition for infinite scroll in TableWidgetV2#40474
Conversation
Updated the 'hidden' property in the TableWidgetV2 configuration to account for both the INFINITE_SCROLL_ENABLED feature flag and the serverSidePaginationEnabled prop, ensuring proper visibility control based on these conditions.
WalkthroughThe change updates the visibility logic for the "infiniteScrollEnabled" property in the TableWidgetV2's property configuration. Now, the toggle for infinite scroll is hidden if either the corresponding feature flag is disabled or if server-side pagination is not enabled in the widget's properties. This introduces an additional dependency on the server-side pagination setting for displaying the infinite scroll option. Corresponding Cypress tests were updated to enable server-side pagination alongside infinite scroll to align with the new visibility logic. Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant TableWidgetV2 Property Config
participant FeatureFlag
participant WidgetProps
User->>TableWidgetV2 Property Config: Opens property pane
TableWidgetV2 Property Config->>FeatureFlag: Check INFINITE_SCROLL_ENABLED
TableWidgetV2 Property Config->>WidgetProps: Check serverSidePaginationEnabled
alt Feature flag disabled or server-side pagination disabled
TableWidgetV2 Property Config-->>User: Hide infiniteScrollEnabled toggle
else
TableWidgetV2 Property Config-->>User: Show infiniteScrollEnabled toggle
end
Assessment against linked issues
Poem
📜 Recent review detailsConfiguration used: .coderabbit.yaml 📒 Files selected for processing (3)
🚧 Files skipped from review as they are similar to previous changes (1)
🧰 Additional context used📓 Path-based instructions (1)`app/client/cypress/**/**.*`: Review the following e2e test code written using the Cypress test library. Ensure that: - Follow best practices for Cypress code and e2e automation. ...
⏰ Context from checks skipped due to timeout of 90000ms (8)
🔇 Additional comments (2)
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
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
|
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/14731051317. |
|
Deploy-Preview-URL: https://ce-40474.dp.appsmith.com |
Added the toggle for "Server side pagination" in the Cypress tests for both InfiniteScrollVariableHeightRows_spec and Table_InfiniteScroll_spec to ensure proper testing of the feature alongside infinite scrolling functionality.
|
/build-deploy-preview skip-tests=true |
|
Deploying Your Preview: https://github.com/appsmithorg/appsmith/actions/runs/14733362081. |
|
Deploy-Preview-URL: https://ce-40474.dp.appsmith.com |
Description
Updated the 'hidden' property in the TableWidgetV2 configuration to account for both the INFINITE_SCROLL_ENABLED feature flag and the serverSidePaginationEnabled prop, ensuring proper visibility control based on these conditions.
Fixes #40409
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/14733305658
Commit: cba8275
Cypress dashboard.
Tags:
@tag.TableSpec:
Tue, 29 Apr 2025 16:01:26 UTC
Communication
Should the DevRel and Marketing teams inform users about this change?
Summary by CodeRabbit