PromucFlow_constructor/app/client/src/components
Rahul Barwal 0c96ea330f
fix: Incorrect display of values in table computed value (#40664)
## Description
<ins>Problem</ins>

When editing the Computed Value field of a column in the Table widget, a
closing round bracket `)` is automatically removed from specific
expressions upon losing focus, leading to broken expressions and
incorrect widget behavior.

<ins>Root cause</ins>

Incorrect handling of double curly braces and nested parentheses in the
`computedValue` parsing logic.

<ins>Solution</ins>

This PR handles the correction of expression parsing in
`ComputeTablePropertyControlV2` by updating the extraction logic to
support nested parentheses correctly. It also includes a test to ensure
this functionality works as expected.

Fixes #40265
_or_  
Fixes `Issue URL`
> [!WARNING]  
> _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
<!-- This is an auto-generated comment: Cypress test results  -->
> [!TIP]
> 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉
> Workflow run:
<https://github.com/appsmithorg/appsmith/actions/runs/15061326484>
> Commit: 156df279926fc8e39f194d46e868d46c62a1b2bf
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=15061326484&attempt=1"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.Table`
> Spec:
> <hr>Fri, 16 May 2025 06:11:17 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

- **Bug Fixes**
- Improved handling of malformed expressions in table computed value
inputs, resulting in more consistent error output.
- Enhanced default computed value behavior to provide a fallback when
table data is empty, preventing errors.
- **Tests**
- Updated and expanded test cases for computed value extraction,
including new input variations and revised expectations for malformed
expressions.
- **Chores**
- Added a migration step to update older computed values for correct
display in widgets.
  - Incremented DSL version to include latest migration updates.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2025-06-02 14:56:28 +05:30
..
AnimatedGridLayout chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
BottomBar chore: move ai chat from help to bottom bar (#40175) 2025-04-09 10:02:53 +05:30
common chore: git pkg - mod fixes (#39255) 2025-02-18 13:33:31 +01:00
designSystems chore: git tag - add chevron menu to package editor (#39870) 2025-03-24 14:12:05 +05:30
editorComponents chore: Module editor Remove page tab from navigate to action selector (#40743) 2025-05-23 14:41:27 +05:30
featureWalkthrough chore: update import of AppState to DefaultReduxState (#40494) 2025-05-01 15:53:37 +05:30
formControls feat: Handling the case when reactive actions feature flag is turned off and the run behaviour is Automatic (#40709) 2025-05-21 13:57:24 +05:30
propertyControls fix: Incorrect display of values in table computed value (#40664) 2025-06-02 14:56:28 +05:30
utils chore: update import of AppState to DefaultReduxState (#40494) 2025-05-01 15:53:37 +05:30
BusinessTag.tsx chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
constants.ts fix: input alignment (#32452) 2024-04-05 15:02:07 +03:00
EnterpriseTag.tsx chore: rename ADS package (#35583) 2024-08-09 17:20:29 +03:00
SentryRoute.tsx chore: Move sentry to faro for client side (#40220) 2025-04-16 11:45:47 +05:30