Skip to content

feat(apollo-wind): enable React Compiler#257

Draft
SreedharAvvari wants to merge 1 commit intomainfrom
feat/apollo-wind-react-compiler
Draft

feat(apollo-wind): enable React Compiler#257
SreedharAvvari wants to merge 1 commit intomainfrom
feat/apollo-wind-react-compiler

Conversation

@SreedharAvvari
Copy link
Contributor

@SreedharAvvari SreedharAvvari commented Feb 24, 2026

Summary

  • Add babel-plugin-react-compiler to the Rslib build pipeline for @uipath/apollo-wind
  • Fix 2 ref mutation violations in MetadataForm and FormDesigner that would cause the compiler to bail out
  • Enable full compilation mode — 69/70 React components (98.6%) are now compiler-optimized
  • Add React Compiler to Storybook's Vite config so react-scan profiling reflects real compiled performance

Changes

Commit What
add react compiler in annotation mode Install deps, configure pluginBabel with compilationMode: 'annotation'
move ref assignments to useEffect Fix valuesRef.current and contextRef.current render-phase mutations in MetadataForm
convert mutable useMemo to useRef Fix currentTypeRef mutable object pattern in FormDesigner
enable react compiler for all components Switch from annotation mode to full compilation
enable react compiler in storybook Add @vitejs/plugin-react with compiler to Storybook's Vite config

Verification

  • 920/920 tests pass (zero failures)
  • 69/70 React components compiled (1 example file skipped due to JSX in default params)
  • Build: 91 files, 176.1 KB gzipped ESM
  • Lint: 259 files checked, zero issues
  • Zero "use no memo" opt-outs needed

Storybook template

image

Consumption in flow-workbench

image

Copilot AI review requested due to automatic review settings February 24, 2026 09:45
@github-actions
Copy link

github-actions bot commented Feb 24, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (PT)
apollo-canvas 🟢 Ready Preview, Logs Feb 26, 2026, 01:41:24 AM
apollo-ui-react 🟢 Ready Preview, Logs Feb 26, 2026, 01:40:07 AM
apollo-vertex 🟢 Ready Preview, Logs Feb 26, 2026, 01:39:06 AM
apollo-wind 🟢 Ready Preview, Logs Feb 26, 2026, 01:39:11 AM

@github-actions
Copy link

github-actions bot commented Feb 24, 2026

Dependency Review

The following issues were found:
  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ⚠️ 1 package(s) with unknown licenses.
See the Details below.

License Issues

packages/apollo-wind/package.json

PackageVersionLicenseIssue Type
react-compiler-runtime^1.0.0NullUnknown License
Allowed Licenses: AFL-1.1, AFL-1.2, AFL-2.0, AFL-2.1, AMPAS, APAFML, Adobe-2006, Afmparse, ADSL, AMDPLPA, ANTLR-PD, Apache-1.0, Apache-1.1, Apache-2.0, AML, Artistic-1.0, Artistic-1.0-Perl, Artistic-1.0-cl8, Artistic-2.0, AAL, Bahyph, Barr, Beerware, BSL-1.0, Borceux, BSD-1-Clause, BSD-2-Clause, BSD-2-Clause-FreeBSD, BSD-2-Clause-NetBSD, BSD-3-Clause, BSD-3-Clause-Clear, BSD-3-Clause-No-Nuclear-License-2014, BSD-3-Clause-No-Nuclear-Warranty, BSD-4-Clause, BSD-Source-Code, BSD-3-Clause-Attribution, 0BSD, BSD-2-Clause-Patent, BSD-4-Clause-UC, bzip2-1.0.5, bzip2-1.0.6, CECILL-B, ClArtistic, MIT-CMU, CNRI-Jython, CNRI-Python, CNRI-Python-GPL-Compatible, Condor-1.1, CC0-1.0, Crossword, CrystalStacker, Cube, curl, diffmark, WTFPL, DOC, DSDP, ECL-1.0, ECL-2.0, eGenix, EFL-1.0, EFL-2.0, MIT-advertising, MIT-enna, Entessa, Fair, MIT-feh, FTL, Giftware, HPND, IBM-pibs, ICU, ImageMagick, IJG, Info-ZIP, Intel, ISC, JasPer-2.0, LPPL-1.3c, BSD-3-Clause-LBNL, Leptonica, Libpng, libtiff, Linux-OpenIB, LPL-1.02, LPL-1.0, MTLL, MS-PL, MirOS, MITNFA, MIT, MIT-0, mpich2, Multics, Mup, NASA-1.3, Naumen, NBPL-1.0, Net-SNMP, NetCDF, Newsletr, NLPL, NRL, NTP, OGTSL, OLDAP-2.2.2, OLDAP-1.1, OLDAP-1.2, OLDAP-1.3, OLDAP-1.4, OLDAP-2.0, OLDAP-2.0.1, OLDAP-2.1, OLDAP-2.2, OLDAP-2.2.1, OLDAP-2.3, OLDAP-2.4, OLDAP-2.5, OLDAP-2.6, OLDAP-2.7, OLDAP-2.8, OML, OpenSSL, PHP-3.0, PHP-3.01, Plexus, PostgreSQL, psutils, Python-2.0, Qhull, Rdisc, RSA-MD, Ruby, Saxpath, SWL, SGI-B-2.0, Spencer-86, Spencer-94, Spencer-99, SMLNJ, TCL, TCP-wrappers, TU-Berlin-1.0, TU-Berlin-2.0, Unlicense, Unicode-DFS-2015, Unicode-DFS-2016, UPL-1.0, NCSA, VSL-1.0, W3C-20150513, W3C-19980720, W3C, Wsuipa, Xnet, X11, Xerox, XFree86-1.1, xinetd, xpp, Zed, Zend-2.0, Zlib, zlib-acknowledgement, ZPL-1.1, ZPL-2.0, ZPL-2.1, BlueOak-1.0.0, BSD-2-Clause-Views, JSON

OpenSSF Scorecard

PackageVersionScoreDetails
npm/@rsbuild/plugin-babel ^1.0.6 UnknownUnknown
npm/@vitejs/plugin-react ^4.7.0 UnknownUnknown
npm/babel-plugin-react-compiler 1.0.0 🟢 6.5
Details
CheckScoreReason
Code-Review🟢 9Found 27/30 approved changesets -- score normalized to 9
Maintained🟢 1030 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
CII-Best-Practices⚠️ 2badge detected: InProgress
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
License🟢 10license file detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Signed-Releases⚠️ -1no releases found
Binary-Artifacts🟢 9binaries present in source code
Pinned-Dependencies⚠️ 1dependency not pinned by hash detected -- score normalized to 1
Branch-Protection⚠️ 0branch protection not enabled on development/release branches
Fuzzing⚠️ 0project is not fuzzed
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
npm/react-compiler-runtime ^1.0.0 UnknownUnknown
npm/babel-plugin-react-compiler 1.0.0 🟢 6.5
Details
CheckScoreReason
Code-Review🟢 9Found 27/30 approved changesets -- score normalized to 9
Maintained🟢 1030 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
CII-Best-Practices⚠️ 2badge detected: InProgress
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
License🟢 10license file detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Signed-Releases⚠️ -1no releases found
Binary-Artifacts🟢 9binaries present in source code
Pinned-Dependencies⚠️ 1dependency not pinned by hash detected -- score normalized to 1
Branch-Protection⚠️ 0branch protection not enabled on development/release branches
Fuzzing⚠️ 0project is not fuzzed
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0
npm/react-compiler-runtime 1.0.0 🟢 6.5
Details
CheckScoreReason
Code-Review🟢 9Found 27/30 approved changesets -- score normalized to 9
Maintained🟢 1030 commit(s) and 3 issue activity found in the last 90 days -- score normalized to 10
Security-Policy🟢 10security policy file detected
CII-Best-Practices⚠️ 2badge detected: InProgress
Packaging⚠️ -1packaging workflow not detected
Dangerous-Workflow🟢 10no dangerous workflow patterns detected
License🟢 10license file detected
Token-Permissions🟢 10GitHub workflow tokens follow principle of least privilege
Signed-Releases⚠️ -1no releases found
Binary-Artifacts🟢 9binaries present in source code
Pinned-Dependencies⚠️ 1dependency not pinned by hash detected -- score normalized to 1
Branch-Protection⚠️ 0branch protection not enabled on development/release branches
Fuzzing⚠️ 0project is not fuzzed
SAST⚠️ 0SAST tool is not run on all commits -- score normalized to 0

Scanned Files

  • packages/apollo-wind/package.json
  • pnpm-lock.yaml

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Enables the React Compiler for @uipath/apollo-wind by wiring babel-plugin-react-compiler into the library (Rslib/Rsbuild) build pipeline and Storybook’s Vite pipeline, plus refactorings intended to remove render-phase mutations that cause compiler bailouts.

Changes:

  • Add React Compiler Babel plugin to @uipath/apollo-wind Rslib build via @rsbuild/plugin-babel.
  • Refactor MetadataForm and FormDesigner to avoid render-phase ref mutations (compiler compatibility).
  • Enable React Compiler in Storybook Vite config for more representative react-scan profiling.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
pnpm-lock.yaml Locks new build/tooling deps (React Compiler plugin, Rsbuild Babel plugin, Vite React plugin).
packages/apollo-wind/src/components/forms/metadata-form.tsx Moves ref updates into effects to avoid render-phase mutations.
packages/apollo-wind/src/components/forms/form-designer.tsx Replaces mutable useMemo object pattern with useRef + effect sync.
packages/apollo-wind/rslib.config.ts Adds @rsbuild/plugin-babel and injects babel-plugin-react-compiler.
packages/apollo-wind/package.json Adds devDependencies needed for compiler in build + Storybook.
packages/apollo-wind/.storybook/main.ts Adds React Compiler plugin to Storybook’s Vite config.
Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@SreedharAvvari SreedharAvvari force-pushed the feat/apollo-wind-react-compiler branch from 4530021 to c26bf43 Compare February 24, 2026 10:08
@SreedharAvvari SreedharAvvari added the dev-packages Adds dev package publishing on pushes to this PR label Feb 24, 2026
@github-actions
Copy link

github-actions bot commented Feb 24, 2026

📦 Dev Packages

Package Status Updated (PT)
@uipath/apollo-wind@0.10.0-pr257.277e9cd 🟢 Published Feb 26, 2026, 01:39:52 AM

@SreedharAvvari SreedharAvvari force-pushed the feat/apollo-wind-react-compiler branch from c26bf43 to 6c59238 Compare February 24, 2026 10:27
Copilot AI review requested due to automatic review settings February 24, 2026 10:27
@SreedharAvvari SreedharAvvari force-pushed the feat/apollo-wind-react-compiler branch from 6c59238 to 8ea14be Compare February 24, 2026 10:30
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated 3 comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

@SreedharAvvari SreedharAvvari force-pushed the feat/apollo-wind-react-compiler branch from 8ea14be to f606fe6 Compare February 24, 2026 11:50
@SreedharAvvari SreedharAvvari marked this pull request as draft February 24, 2026 11:52
Copilot AI review requested due to automatic review settings February 26, 2026 09:36
@SreedharAvvari SreedharAvvari force-pushed the feat/apollo-wind-react-compiler branch from f606fe6 to 12c9d5e Compare February 26, 2026 09:36
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 6 changed files in this pull request and generated no new comments.

Files not reviewed (1)
  • pnpm-lock.yaml: Language not supported

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dev-packages Adds dev package publishing on pushes to this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants