PromucFlow_constructor/app/client/src/entities
Favour Ohanekwu 95fa2328a8
fix: reset widget to default value after setter method (#29151)
## Description
This PR ensures that widgets are reset to their default value after the
`setValue` setter method is used to set its value

#### PR fixes following issue(s)
Fixes #27119 

#### Media
> A video or a GIF is preferred. when using Loom, don’t embed because it
looks like it’s a GIF. instead, just link to the video
>
>
#### Type of change
> Please delete options that are not relevant.
- Bug fix (non-breaking change which fixes an issue)
- New feature (non-breaking change which adds functionality)
- Breaking change (fix or feature that would cause existing
functionality to not work as expected)
- Chore (housekeeping or task changes that don't impact user perception)
- This change requires a documentation update
>
>
>
## Testing
>
#### How Has This Been Tested?
> Please describe the tests that you ran to verify your changes. Also
list any relevant details for your test configuration.
> Delete anything that is not relevant
- [ ] Manual
- [ ] JUnit
- [ ] Jest
- [ ] Cypress
>
>
#### Test Plan
> Add Testsmith test cases links that relate to this PR
>
>
#### Issues raised during DP testing
> Link issues raised during DP testing for better visiblity and tracking
(copy link from comments dropped on this PR)
>
>
>
## Checklist:
#### Dev activity
- [ ] My code follows the style guidelines of this project
- [ ] I have performed a self-review of my own code
- [ ] I have commented my code, particularly in hard-to-understand areas
- [ ] I have made corresponding changes to the documentation
- [ ] My changes generate no new warnings
- [ ] I have added tests that prove my fix is effective or that my
feature works
- [ ] New and existing unit tests pass locally with my changes
- [ ] PR is being merged under a feature flag


#### QA activity:
- [ ] [Speedbreak
features](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#speedbreakers-)
have been covered
- [ ] Test plan covers all impacted features and [areas of
interest](https://github.com/appsmithorg/TestSmith/wiki/Guidelines-for-test-plans#areas-of-interest-)
- [ ] Test plan has been peer reviewed by project stakeholders and other
QA members
- [ ] Manually tested functionality on DP
- [ ] We had an implementation alignment call with stakeholders post QA
Round 2
- [ ] Cypress test cases have been added and approved by SDET/manual QA
- [ ] Added `Test Plan Approved` label after Cypress tests were reviewed
- [ ] Added `Test Plan Approved` label after JUnit tests were reviewed


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

- **New Features**
- Implemented a new reset functionality for widgets, allowing users to
revert to default values after changes.
  - Enhanced widget meta updates with a new reset action.

- **Bug Fixes**
- Added test cases to ensure widget reset functionality works as
expected, even after asynchronous operations.

- **Refactor**
- Refactored evaluation logic to improve handling of widget meta updates
and resets.
  - Improved action execution logic for resetting widget properties.

- **Tests**
- Expanded end-to-end regression tests to cover new reset widget
functionality.

- **Documentation**
- Updated internal documentation to reflect new action types and
evaluation processes related to widget meta updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Druthi Polisetty <druthi@appsmith.com>
2023-12-08 11:16:31 +01:00
..
Action chore: split for module instance evaluation on ee (#29027) 2023-11-22 15:02:44 +05:30
AppCollab chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
AppsmithConsole fix: widget icon in debugger (#29141) 2023-11-28 10:22:43 +05:30
AppTheming chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
Datasource fix: schema preview data ui changed for sql, postgres, mongo (#28156) 2023-10-25 15:48:05 +05:30
DataTree fix: reset widget to default value after setter method (#29151) 2023-12-08 11:16:31 +01:00
DependencyMap chore: Remove PageList From DataTree (#28579) 2023-11-03 06:00:50 +05:30
Engine fix: fixing non blocking calls (#29170) 2023-11-29 14:18:50 +05:30
IDE chore: Refactoring sidebar on app editor to support the same on package editor (#29212) 2023-11-30 14:56:24 +05:30
JSCollection chore: jscollection typing changes (#29215) 2023-11-30 09:00:31 +05:30
Replay chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
Tour Update comments onboarding tour (#5903) 2021-07-16 14:01:26 +05:30
URLRedirect chore: route builder refactor (#27905) 2023-10-12 11:01:22 +05:30
Widget feat: ECharts Phase 2 - Custom ECharts (#25980) 2023-08-30 14:28:26 +05:30
App.ts Minor fixes for comments on the modal widget (#6368) 2021-08-06 14:47:56 +05:30
GitSync.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00