feat(orchestrator): reduce NFS Module Federation sync size - #4024
feat(orchestrator): reduce NFS Module Federation sync size#4024lokanandaprabhu wants to merge 2 commits into
Conversation
Lazy-load heavy dependencies to reduce sync bundle size: - Replace OrchestratorIcon (MUI SvgIcon) with inline SVG in alpha.tsx - Extract widget rendering into FormDecoratorContent and dynamically import it in FormWidgetsApi, moving the ~860 KB RJSF widget graph from sync to async Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Changed Packages
|
PR Summary by QodoLazy-load form widget graph and inline icon to shrink Module Federation sync bundles
AI Description
Diagram
High-Level Assessment
Files changed (5)
|
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Preparing PR labels... |
|
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #4024 +/- ##
=======================================
Coverage 57.80% 57.81%
=======================================
Files 2393 2393
Lines 95919 95934 +15
Branches 26776 26761 -15
=======================================
+ Hits 55448 55463 +15
Misses 38935 38935
Partials 1536 1536
*This pull request uses carry forward flags. Click here to find out more. Continue to review full report in Codecov by Harness.
🚀 New features to boost your workflow:
|
|
/cc @debsmita1 |
|
Tested on
Bundle impact (orchestrator-form-widgets
|
| * limitations under the License. | ||
| */ | ||
|
|
||
| import React from 'react'; |
| * limitations under the License. | ||
| */ | ||
|
|
||
| import React from 'react'; |
| title: 'Orchestrator', | ||
| icon: <OrchestratorIcon />, | ||
| icon: ( | ||
| <svg |
There was a problem hiding this comment.
Use the OrchestratorIcon import, just replace the OrchestratorIcon content with this one




Summary
OrchestratorIcon(MUISvgIcon) with inline SVG inalpha.tsxto remove MUI component infrastructure from the sync bundleFormDecoratorContent.tsxand dynamicallyimport()it inFormWidgetsApi, moving the ~860 KB RJSF widget graph from sync to async — loaded only when a workflow form is openedBundle Impact
./alpha(NFS).(OFS)./alpha(NFS)Test plan
🤖 Generated with Claude Code