PromucFlow_constructor/app/client/src/utils
ashit-rath c281600ea7
chore: refactor create jsobject under modules (#29555)
## Description
Refactor to create js objects for modules

#### PR fixes following issue(s)
PR for https://github.com/appsmithorg/appsmith-ee/pull/3095

#### 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
- Chore (housekeeping or task changes that don't impact user perception)

## 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

- **Refactor**
- Updated import paths for `JSCollectionData` and related types across
various files to reflect a change in the file structure or module
resolution strategy.
- Exported `initialState` and `handlers` from `jsActionsReducer` to
align with updated code organization.

- **New Features**
- Added a new entry `JSModules` to the `entitySections` object in
`editorContextReducer.ts` to enhance editor context management.

- **Bug Fixes**
- Adjusted the `createDummyJSCollectionActions` function to include
`additionalParams` and `variables` for improved action creation and
initialization.

- **Documentation**
  - No visible changes to end-user documentation in this pull request.

- **Style**
  - No style-related changes affecting end-users in this pull request.

- **Tests**
  - No test-related changes affecting end-users in this pull request.

- **Chores**
  - No chore-related changes affecting end-users in this pull request.

- **Revert**
  - No reverts affecting end-users in this pull request.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2023-12-13 16:16:27 +05:30
..
autocomplete fix: Adjust autocomplete results ranking for function arguments (#28632) 2023-11-10 14:18:42 +05:30
autoHeight chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
CallbackHandler chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
editor chore: add highlight calculation logic for layouts. (#27980) 2023-10-19 16:27:40 -04:00
FilterInternalProperties chore: refactor create jsobject under modules (#29555) 2023-12-13 16:16:27 +05:30
formControl fix: Update connection mode DropDown by Segmented Control (#23730) 2023-05-29 16:45:52 +05:30
hooks chore: Add an extra feature flag to control App sidebar rollout (#28876) 2023-11-15 16:49:41 +05:30
migrations feat: dsl migration with server (#28518) 2023-11-30 18:03:33 +05:30
NavigationSelector chore: refactor create jsobject under modules (#29555) 2023-12-13 16:16:27 +05:30
ProductRamps chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
validation feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
AnalyticsUtil.tsx chore: Prevent logging error analytics on first page load (#29019) 2023-11-22 09:48:12 +01:00
ApiPaneUtils.test.ts fix: Action Selector menu goes out of viewport (#16878) 2022-09-23 10:46:26 +05:30
ApiPaneUtils.tsx fix: Improve evaluated url experience (#24301) 2023-06-13 15:49:46 +01:00
AppsmithConsole.ts feat: Error Navigation (#21753) 2023-04-10 18:29:14 +05:30
AppsmithUtils.test.ts chore: Address misc one click binding feedbacks (#24735) 2023-06-29 19:23:25 +05:30
AppsmithUtils.tsx chore: refactor create jsobject under modules (#29555) 2023-12-13 16:16:27 +05:30
AppUtils.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
bootIntercom.ts fix: send empty license key to intercom for CE (#23149) 2023-05-15 16:48:34 +05:30
boxHelpers.test.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
boxHelpers.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
BrandingUtils.ts fix: Active color of primary buttons broken after ADS 2.0 migration (#26958) 2023-09-21 15:37:41 +05:30
canvasStructureHelpers.test.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
canvasStructureHelpers.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
configTree.ts chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
DatasourceSagaUtils.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
dayJsUtils.ts fix: Layout Conversion bugs for auto Layout (#22565) 2023-05-03 04:26:52 +00:00
decorators.ts chore: Custom widget (alpha) (#27571) 2023-11-14 10:03:37 +05:30
DSLMigrations.ts feat: dsl migration with server (#28518) 2023-11-30 18:03:33 +05:30
DynamicBindingUtils.test.ts fix: combineDynamicBindings function (#22600) 2023-04-26 23:58:17 +05:30
DynamicBindingUtils.ts feat: Improve error message for typeError (#27795) 2023-10-22 07:46:31 +01:00
editorContextUtils.ts feat: open ai feature request (#28295) 2023-11-03 11:20:34 +07:00
formhelpers.test.ts Make prettier changes (#2337) 2020-12-24 10:02:25 +05:30
formhelpers.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
GenerateCrudUtil.ts [Feature] Generate template page from datasource (#5513) 2021-07-29 13:43:10 +05:30
generators.tsx chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
getCodeMirrorNamespace.ts feat: Bundle optimization and first load improvements (#21667) 2023-05-11 10:56:03 +05:30
getPathAndValueFromActionDiffObject.ts fix: fixing missing where key (#9215) 2021-11-25 18:48:40 +05:30
getQueryParamsObject.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
helpers.test.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
helpers.tsx feat: show appsmith partnership program callout on invite (#27274) 2023-09-20 10:20:26 +05:30
history.ts chore: Refactoring sidebar on app editor to support the same on package editor (#29212) 2023-11-30 14:56:24 +05:30
importUppy.ts perf: reduce the bundle size, vol. 2 (#24969) 2023-07-17 00:19:41 +05:30
JSPaneUtils.test.ts feat: Remove async/sync differentiation from Appsmith (#25399) 2023-08-05 06:38:53 +01:00
JSPaneUtils.tsx chore: refactor create jsobject under modules (#29555) 2023-12-13 16:16:27 +05:30
klona.test.ts fix: Refactoring to replace all usages of isEqual method from lodash with equal method from fast-deep-equal/es6 (#16439) 2022-09-02 14:46:30 +05:30
layoutPropertiesUtils.ts chore: Create layout system structure for Anvil and AnvilFlexComponent. (#27178) 2023-10-02 15:41:05 -04:00
lazyLottie.ts feat: signposting update (#24389) 2023-06-22 18:35:01 +05:30
localStorage.test.ts fix: welcome tour ending on page refresh (#16079) 2022-09-02 18:45:48 +05:30
localStorage.tsx feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
MessageUtil.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
metaWidgetState.ts feat: util to serve images locally or via remote url (#22080) 2023-04-10 12:32:31 +05:30
PerformanceTracker.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
PropertyControlFactory.tsx chore: Custom widget (alpha) (#27571) 2023-11-14 10:03:37 +05:30
PropertyControlRegistry.tsx chore: [one click binding] allow switching between js mode and non js mode on property control (#24355) 2023-06-16 14:46:56 +05:30
ReducerUtils.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
reflowHookUtils.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
replayHelpers.test.js chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
replayHelpers.tsx feat: debugger api pane navigation (#25771) 2023-08-10 19:25:06 +05:30
resizeObserver.ts fix: CodeEditor issues on resizing (#26082) 2023-08-23 11:25:19 +05:30
storage.ts feat: replace blank canvas with starter templates. (#28284) 2023-10-30 11:15:05 +05:30
SuccessfulBindingsMap.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
testDSLs.ts feat: [epic] appsmith design system version 2 deduplication (#22030) 2023-05-20 00:07:06 +05:30
testPropertyPaneConfig.test.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
treeUtils.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
TypeHelpers.ts fix: fixed broken file downloads for urls containing "(" or ")" (#21752) 2023-04-03 23:23:10 +05:30
URLUtils.ts fix: fixed URL validation to not restrict navigateTo URLs to limited protocols (#27399) 2023-09-21 07:02:37 +05:30
UseComposeRef.ts feat: multi-line input and auto-resize textarea (#19141) 2023-01-17 18:46:35 +05:30
WidgetBlueprintUtils.ts feat: Add widget responsiveness and conversion algorithm (#21386) 2023-04-07 09:51:35 -04:00
widgetEvalUtils.ts chore: query module evaluation (#27660) 2023-09-29 16:12:14 +05:30
WidgetFeatures.test.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
WidgetFeatures.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
WidgetLoadingStateUtils.test.ts chore: query module evaluation (#27660) 2023-09-29 16:12:14 +05:30
WidgetLoadingStateUtils.ts chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
WidgetMigrationUtils.test.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
WidgetMigrationUtils.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
WidgetPropsUtils.test.tsx feat: dsl migration with server (#28518) 2023-11-30 18:03:33 +05:30
WidgetPropsUtils.tsx feat: dsl migration with server (#28518) 2023-11-30 18:03:33 +05:30
WidgetQueryGeneratorRegistry.test.ts chore: [one click binding] Create a registry to maintain the list of the widget query generators (#21764) 2023-03-28 20:03:29 +05:30
WidgetQueryGeneratorRegistry.ts feat: Table one click binding for MongoDB and Postgres (#23629) 2023-06-01 22:56:05 +05:30
widgetRenderUtils.test.ts chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
widgetRenderUtils.tsx chore: separated tree type into common file to be extended on EE (#27812) 2023-10-10 18:02:17 +05:30
WidgetSizeUtils.test.ts chore: upgrade to prettier v2 + enforce import types (#21013)Co-authored-by: Satish Gandham <hello@satishgandham.com> Co-authored-by: Satish Gandham <satish.iitg@gmail.com> 2023-03-16 17:11:47 +05:30
WidgetSizeUtils.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
WorkerUtil.test.ts Add web api types 2023-06-14 17:29:15 +05:30
WorkerUtil.ts chore: sentry issue fix #29551 (#29552) 2023-12-13 12:15:04 +05:30