PromucFlow_constructor/app/client/src/PluginActionEditor
Hetu Nandu a93e87ba18
chore: [Plugin Action Form] Common Editor State (#36512)
## Description

Passes the correct states for the Common Editor form in the Plugin
Action Form.
- Uses a hook to pass the form states as already implemented
- Uses helper functions to get the header and params count from the said
state
- As a side effect I can remove these from the original implementation
since the invocation is now in the common `RequestTabs` components
- Updates the `changeActionCall` hook to only be called if the action
changes
   - Updates the tests to reflect this

EE PR to track tests:
https://github.com/appsmithorg/appsmith-ee/pull/5217


Parts of #36154 



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


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

## Release Notes

- **New Features**
- Introduced a custom hook for streamlined retrieval of action-related
values in forms.
  - Added utility functions for counting valid headers and parameters.

- **Improvements**
- Simplified component interfaces by removing unnecessary properties
related to headers and parameters.
  - Enhanced type safety for header and parameter properties.
  - Refined tab rendering logic for better user experience.

- **Bug Fixes**
- Adjusted logic to ensure actions are dispatched only on changes to
action IDs.

- **Documentation**
- Updated relevant documentation to reflect changes in component props
and functionalities.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-09-25 08:01:38 +00:00
..
components chore: [Plugin Action Form] Common Editor State (#36512) 2024-09-25 08:01:38 +00:00
hooks chore: Adding a new hook to set settingsConfig for an action based on IDE type (#36442) 2024-09-20 19:37:10 +05:30
index.ts chore: Init Plugin Action Response (#36485) 2024-09-25 13:14:26 +05:30
PluginActionContext.tsx chore: Init Plugin Action Response (#36485) 2024-09-25 13:14:26 +05:30
PluginActionEditor.tsx chore: Init Plugin Action Response (#36485) 2024-09-25 13:14:26 +05:30