PromucFlow_constructor/app/client
Rahul Barwal eb899929bf
fix: simplify table reset logic in TableWidgetV2 (#40486)
## Description
<ins>Problem</ins>

The table state wasn't being reset automatically, causing issues with
individual page numbers and data properties.

<ins>Root cause</ins>

Using manual page number handling led to unexpected outcomes due to not
having an automatic reset mechanism for the table state when infinite
scroll was enabled or disabled.

<ins>Solution</ins>
To mitigate this issue, we have utilized in-built evaluations and the
reset widget method to properly reset the widget.

Fixes: #40452 

## Automation

/ok-to-test tags="@tag.Widget"

### 🔍 Cypress test results
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/14747978041>
> Commit: 32f17cca1ab2c8c735fd9a10d359ae5a95e9f6c9
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=14747978041&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Widget`
> Spec:
> <hr>Wed, 30 Apr 2025 07:28:01 UTC
<!-- end of auto-generated comment: Cypress test results  -->


## Communication
Should the DevRel and Marketing teams inform users about this change?
- [ ] Yes
- [ ] No


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Refactor**
- Simplified the table reset process for infinite scroll by streamlining
internal logic, resulting in a more efficient reset experience for
users. No visible changes to the interface or features.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-04-30 15:04:03 +05:30
..
.husky test: fix failing Rich text editor (#40479) 2025-04-29 23:38:22 +05:30
.yarn
config fix: sourcemaps (#39301) 2025-02-16 20:05:50 +03:00
cypress fix: update visibility condition for infinite scroll in TableWidgetV2 (#40474) 2025-04-30 10:14:35 +05:30
docker/templates chore: add grafana faro sdk (CE) (#38301) 2024-12-26 10:37:41 +05:30
generators
packages chore: bump vite from 6.2.2 to 6.2.6 in /app/client (#40229) 2025-04-28 11:09:55 +00:00
public chore: add maximum-scale to avoid zoom on inputs in iOS (#40171) 2025-04-08 19:16:31 +05:30
scripts chore: Eject CRA (#39264) 2025-02-14 14:24:41 +05:30
src fix: simplify table reset logic in TableWidgetV2 (#40486) 2025-04-30 15:04:03 +05:30
test chore: Removing feature flag for app IDE new entity explorer (#39912) 2025-04-03 12:07:24 +05:30
typings
.babelrc chore: Eject CRA (#39264) 2025-02-14 14:24:41 +05:30
.dockerignore
.editorconfig
.eslintrc.base.json
.eslintrc.js
.fork-ts-checkerrc
.gitignore
.lintstagedrc.json
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml
build.sh fix: sourcemaps (#39301) 2025-02-16 20:05:50 +03:00
cypress_ci_custom.config.ts
cypress_ci_hosted.config.ts
cypress_ci.config.ts
cypress-add-tags.js
cypress.config.ts
download-assets.js
jest.config.js chore: add grafana faro sdk (CE) (#38301) 2024-12-26 10:37:41 +05:30
knip.json chore: Eject CRA (#39264) 2025-02-14 14:24:41 +05:30
package.json chore: downgrade tinymce from 7.7.1 to 6.8.3 in package.json (#40465) 2025-04-29 10:24:01 +05:30
README.md
README.old.md
start-caddy.sh
start-https.sh chore: convert consolidated api etag to a weak one (#38939) 2025-01-31 16:35:20 +05:30
tailwind.config.js
tsconfig.json
tsconfig.path.json
vercel.json
yarn.lock chore: downgrade tinymce from 7.7.1 to 6.8.3 in package.json (#40465) 2025-04-29 10:24:01 +05:30

Appsmith Client

This project was bootstrapped with Create React App.

For details on setting up your development machine, please refer to the Setup Guide