PromucFlow_constructor/app/client/src/utils
Vemparala Surya Vamsi b122c8195f
chore: decouple widget-config.json from main chunk (#36924)
## Description
We decoupled the widget-config.json file (177KB when zipped) from the
main bundle and implemented lazy loading during DSL migrations. This
optimisation reduces the size of the main chunk by 10%, which should
lead to better performance, specifically improving FCP and LCP, as the
main chunk's fetch and evaluation times are reduced

Fixes #`Issue Number`  
_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.All"

### 🔍 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/11384816747>
> Commit: ae14b3f40c4c1ef77250157e56aed97acae5cbaf
> <a
href="https://internal.appsmith.com/app/cypress-dashboard/rundetails-65890b3c81d7400d08fa9ee5?branch=master&workflowId=11384816747&attempt=2"
target="_blank">Cypress dashboard</a>.
> Tags: `@tag.All`
> Spec:
> <hr>Thu, 17 Oct 2024 15:04:34 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

## Summary by CodeRabbit

- **New Features**
- Enhanced migration logic for DSL widgets with asynchronous operations.
	- Improved performance with lazy loading of widget configurations.
	- Added optional properties to page response data structures.

- **Bug Fixes**
	- Resolved issues with dynamic binding path migrations.

- **Tests**
- Updated test cases to handle asynchronous operations for better
reliability and accuracy.

- **Chores**
- Improved type safety and error handling in widget factory utilities
and mock functions.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
2024-10-17 20:48:39 +05:30
..
autocomplete chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
autoHeight chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
CallbackHandler chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
editor chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
FilterInternalProperties chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
formControl chore:remove space b/w form and CTA onboarding page (#35985) 2024-10-09 09:57:44 +05:30
hooks chore: extract useCurrentAppState hook to reduce cyclic dependency (#36937) 2024-10-17 18:10:58 +05:30
migrations chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
NavigationSelector chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ProductRamps chore: delete unused code (#36461) 2024-09-23 13:52:00 +03:00
validation chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ApiPaneUtils.test.ts chore: Migrate sub components into Plugin Action Editor (#36844) 2024-10-16 18:29:10 +05:30
ApiPaneUtils.tsx chore: Migrate sub components into Plugin Action Editor (#36844) 2024-10-16 18:29:10 +05:30
AppsmithConsole.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
AppsmithUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
AppsmithUtils.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
AppUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
bootIntercom.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
boxHelpers.test.ts
boxHelpers.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
BrandingUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
buildingBlockUtils.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
canvasStructureHelpers.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
canvasStructureHelpers.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +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
CustomWidgetBuilderService.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
CustomWidgetBuilderService.ts fix: [custom widget] remove stale keys from dynamicTriggerPathList (#31586) 2024-03-20 14:31:03 +05:30
DatasourceSagaUtils.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
dayJsUtils.ts fix: Layout Conversion bugs for auto Layout (#22565) 2023-05-03 04:26:52 +00:00
DynamicBindingUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
DynamicBindingUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
editorContextUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
formhelpers.test.ts
formhelpers.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
GenerateCrudUtil.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
generators.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
getCodeMirrorNamespace.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
getPathAndValueFromActionDiffObject.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
getQueryParamsObject.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
helpers.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
helpers.tsx chore: Migrate sub components into Plugin Action Editor (#36844) 2024-10-16 18:29:10 +05:30
history.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
importUppy.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
JSPaneUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
JSPaneUtils.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
klona.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
lazyLottie.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
localStorage.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
localStorage.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
MessageUtil.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
metaWidgetState.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
PropertyControlFactory.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
PropertyControlRegistry.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
ReducerUtils.ts fix: change appsmith alias (#35349) 2024-08-06 17:52:22 +03:00
reflowHookUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
replayHelpers.test.js
replayHelpers.tsx chore: [Plugin Action Editor] Combine Plugin Editor UI state (#36651) 2024-10-08 16:12:27 +05:30
resizeObserver.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
storage.ts feat: adding branch persistence (#36622) 2024-10-14 19:04:16 +08:00
SuccessfulBindingsMap.ts chore: add consistent-type-definitions rule (#27907) 2023-10-11 10:35:24 +03:00
testPropertyPaneConfig.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
treeUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
TypeHelpers.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
URLUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
UseComposeRef.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetBlueprintUtils.ts chore: enable no-explicit-any rule (#35321) 2024-07-31 18:41:28 +03:00
widgetEvalUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetFeatures.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetFeatures.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetLoadingStateUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetLoadingStateUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetMigrationUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetMigrationUtils.ts chore: Move the widget config to widget class (#26073) 2023-09-06 17:45:04 +05:30
WidgetPropsUtils.test.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetPropsUtils.tsx chore: decouple widget-config.json from main chunk (#36924) 2024-10-17 20:48:39 +05:30
WidgetQueryGeneratorRegistry.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetQueryGeneratorRegistry.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgetRenderUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
widgetRenderUtils.tsx chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetSizeUtils.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WidgetSizeUtils.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WorkerUtil.test.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00
WorkerUtil.ts chore: add blank line eslint rule (#36369) 2024-09-18 19:35:28 +03:00