PromucFlow_constructor/app/client/src
Jacques Ikot 641e4192a6
feat: remove isFocus from meta state in InputWidgetV2 (#36843)
## Description

**Problem**
A redundant evaluation cycle is run every time a user focuses on an
InputWidget component and the isFocused meta state is updated

**Root Cause**
`isFocus` property of InputWidgetV2 is a meta property and updated
through `this.updateWidgetMetaProperty`, thereby changes to these
property triggers an evaluation cycle run

**Solution**
Implement the `isFocus` property as a local state of the InputWidgetV2
component


Fixes #36446

## Automation

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

### 🔍 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/11362334893>
> Commit: 80e9089681456b7b3547cc4781abf719c561d27d
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11362334893&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Widget, @tag.Input`
> Spec:
> <hr>Wed, 16 Oct 2024 10:22:00 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

- **New Features**
- Enhanced focus management for the InputWidget, allowing for improved
internal state handling.
- Multi-line text input now supports submitting with keyboard shortcuts
for a more streamlined user experience.

- **Bug Fixes**
- Resolved issues with widget metadata by excluding the `isFocused`
property from the meta properties.
- Improved internal state management for input changes, reducing
reliance on external properties.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-16 16:01:07 +05:30
..
actions fix: remove redundant eval trigger (#36764) 2024-10-10 16:32:53 +05:30
api chore: Adding the GraphQLEditorForm for the modularised flow (#36633) 2024-10-02 13:59:46 +05:30
assets chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
ce chore: Prep work for adding Mixpanel session recording (#36895) 2024-10-16 13:49:09 +05:30
components fix: Updating the permission check for run button in response pane (#36893) 2024-10-16 12:49:37 +05:30
constants chore: removed old flags for airgap instances (#36609) 2024-10-07 15:26:25 +05:30
Datasource/components chore: reconnect ds detached from datasource editor part 1 (#35907) 2024-09-02 11:26:34 +05:30
ee chore: move chat widget to EE repo (#36845) 2024-10-14 13:10:28 +03:00
enterprise fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
entities feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
globalStyles fix: Sync EE items into CE (#34373) 2024-06-24 09:36:38 +00:00
icons chore:delete unused files (#36368) 2024-09-19 16:01:03 +03:00
IDE feat: editable ide tabs (#36665) 2024-10-14 11:05:38 +03:00
layoutSystems chore: move wds widgets to modules (#36511) 2024-09-24 18:04:02 +02:00
mockResponses
mocks chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
modules/ui-builder/ui/wds chore: move chat widget to EE repo (#36845) 2024-10-14 13:10:28 +03:00
navigation chore: [Plugin Action Editor] Combine Plugin Editor UI state (#36651) 2024-10-08 16:12:27 +05:30
pages fix: Updating the permission check for run button in response pane (#36893) 2024-10-16 12:49:37 +05:30
PluginActionEditor chore: Docs in Plugin Action Toolbar (#36881) 2024-10-16 09:22:46 +05:30
plugins/Linting chore: add telemetry for current linter (#36417) 2024-09-20 11:59:08 +08:00
polyfills chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
reducers fix: remove redundant eval trigger (#36764) 2024-10-10 16:32:53 +05:30
reflow chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
sagas chore: cache dependencyMap computation on client (#35965) 2024-10-15 21:05:39 +05:30
selectors feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
templates
theme
transformers chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UITelemetry chore: cache dependencyMap computation on client (#35965) 2024-10-15 21:05:39 +05:30
usagePulse chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
utils feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
WidgetProvider chore: move wds widgets to modules (#36511) 2024-09-24 18:04:02 +02:00
WidgetQueryGenerators chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgets feat: remove isFocus from meta state in InputWidgetV2 (#36843) 2024-10-16 16:01:07 +05:30
workers chore: cache dependencyMap computation on client (#35965) 2024-10-15 21:05:39 +05:30
App.css
AppErrorBoundry.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
config.d.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
Globals.d.ts fix: Sync EE items into CE (#34373) 2024-06-24 09:36:38 +00:00
index.css chore: Remove google fonts imported from googleapis (#35392) 2024-08-07 08:49:04 +05:30
index.tsx chore: heartbeat code removed (#36837) 2024-10-15 13:31:22 +05:30
LandingScreen.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
preload-route-chunks.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
react-app-env.d.ts
RouteChangeListener.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
serviceWorker.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
store.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
wdyr.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00