PromucFlow_constructor/app/client
Keyur Paralkar f47b1c896d
fix: change to lodash wrapper (#24610)
## Description
This issue is happening because we are getting lodash library as
`undefined` when we pass it to` derived.value` function here. This is
happening because of the following reason:
* [Bundle optimisation
PR](https://github.com/appsmithorg/appsmith/pull/21667) introduces a new
plugin called: `babel-plugin-lodash`. It helps in transforming the
imports.
* But this plugin doesn't work on the following pattern: `import _ from
"lodash"`. Here it replaces `_` with `undefined`
[ This
file](3bc50d9632/app/client/src/workers/common/JSLibrary/lodash-wrapper.js (L1))
explains the exact scenario that we are facing.
There is also [an open
bug](https://github.com/lodash/babel-plugin-lodash/issues/235) for this
issue on the `babel-plugin-lodash` repository.

This PR imports lodash from the lodash-wrapper instead of directly
importing as follows: `import _ from "lodash"`
>
#### PR fixes following issue(s)
Fixes #23671

#### Type of change
- Bug fix (non-breaking change which fixes an issue)

## Testing
>
#### How Has This Been Tested?

- [x] Manual
- [ ] Jest
- [x] Cypress
- should check that value entered in currency field appears in the
actual field
>
>
#### 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
- [x] My code follows the style guidelines of this project
- [x] 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
2023-06-19 22:35:32 +05:30
..
.husky
.yarn chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
cypress fix: change to lodash wrapper (#24610) 2023-06-19 22:35:32 +05:30
docker chore: Remove login and signup related env variables from client (#22891) 2023-05-16 14:34:48 +05:30
generators chore: Add missing autocomplete definition declarations (#23726) 2023-06-02 16:22:27 +05:30
packages feat: WDS colors bgAccentSubtle* (light mode) (#24631) 2023-06-19 18:43:51 +03:00
perf
public chore: Move zippy setup after the script injection. (#23978) 2023-06-02 14:00:56 +05:30
src fix: change to lodash wrapper (#24610) 2023-06-19 22:35:32 +05:30
test feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
typings fix: display name validation (client) (#22938) 2023-05-04 18:29:57 +05:30
.babelrc feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
.dockerignore
.editorconfig
.eslintrc.base.json fix(eslint): fix direct remixicon imports in packages/design-system/* (#24010) 2023-06-09 12:44:58 +03:00
.eslintrc.js fix(eslint): fix direct remixicon imports in packages/design-system/* (#24010) 2023-06-09 12:44:58 +03:00
.gitignore chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
.lintstagedrc
.nvmrc
.prettierignore
.prettierrc
.sentryclirc
.yarnrc.yml chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
build.sh chore: separation of client build steps (#24506) 2023-06-16 09:03:56 +03:00
craco.build.config.js perf: merge all icons into three major chunks (#24382) 2023-06-16 11:38:08 +05:30
craco.common.config.js perf: merge all icons into three major chunks (#24382) 2023-06-16 11:38:08 +05:30
craco.dev.config.js chore : disable react overlay for warnings/error in dev mode (#23620) 2023-05-23 14:54:41 +05:30
cypress_ci-toremove.json feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
cypress_ci.config.ts test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
cypress.config.ts test: Cypress | Local config file syntax fix (#24500) 2023-06-15 20:02:20 +05:30
Dockerfile
download-assets.js
jest.config.js feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +05:30
package.json test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +05:30
README.md
README.old.md
start-https.sh chore: Fail when backend has a trailing slash (#23437) 2023-05-17 13:56:23 +05:30
tailwind.config.js feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
tsconfig.json chore: move local dependency to packages (#23395) 2023-05-22 15:55:46 +03:00
tsconfig.path.json
vercel.json
yarn.lock test: Cypress | Cy 12 upgrade + Flaky fixes (#23852) 2023-06-15 18:51:11 +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